ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » JAVA OUTPUT TO File Output

Post new topic  Reply to topic Goto page 1, 2  Next
 JAVA OUTPUT TO File Output « View previous topic :: View next topic » 
Author Message
gagan.maverick
PostPosted: Mon Apr 27, 2015 4:42 am    Post subject: JAVA OUTPUT TO File Output Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Hi , i Have unzipped my zip files using JCN and now i want to store them in a directory , in my server. i have used File output node but i am getting error AbstractFileOutputNode.java. The path in my server where i am trying to store the file is a unix /gsg/fgh/gag. I have mentioned the same path in File output node as well
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Apr 27, 2015 4:51 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Are you sure you know where you have unzipped the contents of the file?

Are you sure you know what the contents of the message you are sending to the FileOutput node looks like?

Have you examined the full error message, rather than just "error AbstractFileOutput.java"?
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Apr 27, 2015 5:09 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Always use a configurable service definition to control your file nodes.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Tue Apr 28, 2015 12:46 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Hi,
I have created a flow in which JCN is unzipping the zip file which has one xml and 2-3 pdf files. They are unzipped one by one and sent downstream there i have one file output node. This node shd write the files which are coming out of jcn as blob , to a specified directory in my broker server
Back to top
View user's profile Send private message
iibmate
PostPosted: Tue Apr 28, 2015 12:58 am    Post subject: Reply with quote

Apprentice

Joined: 17 Mar 2015
Posts: 38
Location: Perth, WA

mqjeff wrote:
Have you examined the full error message, rather than just "error AbstractFileOutput.java"?


Please do this by retrieving traces or error information in local error log.
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Tue Apr 28, 2015 1:22 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

RecoverableException
File:CHARACTER:AbstractFileOutputNode.java
Line:INTEGER:686
Function:CHARACTER:locateOutputFile
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:0
Number:INTEGER:3314
Text:CHARACTER:
Insert
Type:INTEGER:5

Insert
Type:INTEGER:5
Text:CHARACTER:/appmgmt/ftphome/OnDemand
Back to top
View user's profile Send private message
iibmate
PostPosted: Tue Apr 28, 2015 4:16 am    Post subject: Reply with quote

Apprentice

Joined: 17 Mar 2015
Posts: 38
Location: Perth, WA

Not enough.

gagan.maverick wrote:

Function:CHARACTER:locateOutputFile
Text:CHARACTER:/appmgmt/ftphome/OnDemand


Hope this will be helpful.
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Tue Apr 28, 2015 4:20 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Hi, That prob is resolved after keeping the file name with local env . But the new issue is that xml file which is saved and pdf are not valid anymore.
My flow is basically Mqinp--> Jcn--> compute --> then FileOp format is blob
Back to top
View user's profile Send private message
iibmate
PostPosted: Tue Apr 28, 2015 4:23 am    Post subject: Reply with quote

Apprentice

Joined: 17 Mar 2015
Posts: 38
Location: Perth, WA

gagan.maverick wrote:
xml file which is saved and pdf are not valid anymore


Could you please elaborate ?
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Tue Apr 28, 2015 4:26 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Hello Actually , in xml tags are getting lost and pdf is not opening , after they are saved in the directory
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Tue Apr 28, 2015 4:38 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

But when i am sending a smaller xml file it works fine and other types of files i mean .xls and other , but .pdf aren't working . Is there some compatibility issues with pdf after converting it to blob
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Sat May 02, 2015 11:26 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Hi, guys could you reply to this ,as i have been stuck because the pdf's are creating issues with File output node . After using JCN and sending them as blob to File output node they are getting corrupted . Any work around for this.
Thanks in advance..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat May 02, 2015 3:53 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

How are they getting corrupted? Are you writing the hex representation of the byte instead of the value of the byte?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gagan.maverick
PostPosted: Sun May 03, 2015 9:52 pm    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Hi,
No , I am just passing to File output node the output from JCN which is a blob... .xls files or .doc files are getting stored perfectly but .pdf are creating issues .
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Mon May 04, 2015 1:46 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Hi, is it possible to pass the entire zipped messages i mean pdf , .xls and other files to env , inside JCN. Then i might have all the messages of the zip file in env. and can use them downstream
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » JAVA OUTPUT TO File Output
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.