Author |
Message
|
gagan.maverick |
Posted: Mon Apr 27, 2015 4:42 am Post subject: JAVA OUTPUT TO File Output |
|
|
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 |
|
 |
mqjeff |
Posted: Mon Apr 27, 2015 4:51 am Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Mon Apr 27, 2015 5:09 am Post subject: |
|
|
 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 |
|
 |
gagan.maverick |
Posted: Tue Apr 28, 2015 12:46 am Post subject: |
|
|
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 |
|
 |
iibmate |
Posted: Tue Apr 28, 2015 12:58 am Post subject: |
|
|
 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 |
|
 |
gagan.maverick |
Posted: Tue Apr 28, 2015 1:22 am Post subject: |
|
|
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 |
|
 |
iibmate |
Posted: Tue Apr 28, 2015 4:16 am Post subject: |
|
|
 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 |
|
 |
gagan.maverick |
Posted: Tue Apr 28, 2015 4:20 am Post subject: |
|
|
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 |
|
 |
iibmate |
Posted: Tue Apr 28, 2015 4:23 am Post subject: |
|
|
 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 |
|
 |
gagan.maverick |
Posted: Tue Apr 28, 2015 4:26 am Post subject: |
|
|
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 |
|
 |
gagan.maverick |
Posted: Tue Apr 28, 2015 4:38 am Post subject: |
|
|
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 |
|
 |
gagan.maverick |
Posted: Sat May 02, 2015 11:26 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Sat May 02, 2015 3:53 pm Post subject: |
|
|
 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 |
|
 |
gagan.maverick |
Posted: Sun May 03, 2015 9:52 pm Post subject: |
|
|
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 |
|
 |
gagan.maverick |
Posted: Mon May 04, 2015 1:46 am Post subject: |
|
|
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 |
|
 |
|