Author |
Message
|
RhettChan |
Posted: Thu May 15, 2014 1:34 am Post subject: error when writing to remote FTP server in Integration bus 9 |
|
|
Newbie
Joined: 14 May 2014 Posts: 7
|
<text>Exception. BIP2230E: error in “flowHttpToFtp": F:\build\slot1\S900_P\src\DataFlowEngine\TemplateNodes\ImbOutputTemplateNode.cpp: 326: ImbOutputTemplateNode::processMessageAssemblyToFailure: ComIbmFileOutputNode: flowHttpToFtp#FCMComposite_1_3
BIP3384E:get error response from ftp server “'192.168.20.28'”。commond and response is :“'PASV=>response: '”。 : AbstractFileOutputNode.java: 692: transferToFtpServer: :</text>
</detail>
but when I connect to the ftpServer “'192.168.20.28'” by fileZilla, everything is ok.
can you help me?[/b] |
|
Back to top |
|
 |
Tibor |
Posted: Thu May 15, 2014 1:57 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
If you have access for this FTP server, check the log files. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu May 15, 2014 3:15 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Ok so filezilla works. Are you using the same login credentials on the remote end with it as you are using with Broker?
does running FTP from the command line also work? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
RhettChan |
Posted: Thu May 15, 2014 8:06 pm Post subject: |
|
|
Newbie
Joined: 14 May 2014 Posts: 7
|
smdavies99 wrote: |
Ok so filezilla works. Are you using the same login credentials on the remote end with it as you are using with Broker?
YES
does running FTP from the command line also work?
YES
|
|
|
Back to top |
|
 |
RhettChan |
Posted: Thu May 15, 2014 8:08 pm Post subject: |
|
|
Newbie
Joined: 14 May 2014 Posts: 7
|
nothing helpful from the log files.
Tibor wrote: |
If you have access for this FTP server, check the log files. |
|
|
Back to top |
|
 |
RhettChan |
Posted: Thu May 15, 2014 8:20 pm Post subject: |
|
|
Newbie
Joined: 14 May 2014 Posts: 7
|
the message flow is very simple, just as below:
HttpInput -->fileOutput-->HttpReply
when I change the ftp connection mode from "PASSIVE" to "ACTIVE", the error is still there. (of course, error info of response changed from "PASV=>RESPONSE:" to "PORT=>RESPONSE").
through other ftp tools, both PASV and PORT, files can be transfered successfully.
I have checked the source code of FileOutputNode (reverted from the jar), but there is no method called sendData. |
|
Back to top |
|
 |
Tibor |
Posted: Thu May 15, 2014 10:34 pm Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
|
Back to top |
|
 |
RhettChan |
Posted: Fri May 16, 2014 2:28 am Post subject: |
|
|
Newbie
Joined: 14 May 2014 Posts: 7
|
debug info is as below:
java.lang.NullPointerException
com.ibm.broker.fileftp.FtpService.getPassiveDataSocket(FtpService.java:1955)
com.ibm.broker.fileftp.FtpService.getDataSocket(FtpService.java:1847)
com.ibm.broker.fileftp.FtpService.putAsciiStream(FtpService.java:1148)
com.ibm.broker.fileftp.FtpService.putStream(FtpService.java:1118)
com.ibm.broker.nodes.filenodes.AbstractFileOutputNode.transferToRemoteServer(AbstractFileOutputNode.java:669)
com.ibm.broker.nodes.filenodes.AbstractFileOutputNode.processEOD(AbstractFileOutputNode.java:952)
com.ibm.broker.nodes.filenodes.AbstractFileOutputNode.sendData(AbstractFileOutputNode.java:397)
com.ibm.broker.nodes.filenodes.ComIbmFileOutputNode.sendData(ComIbmFileOutputNode.java:396)
com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:54)
I didn't find the class named FtpService in the install path, so I can't get more information from the debug information above.
|
|
Back to top |
|
 |
Tibor |
Posted: Fri May 16, 2014 2:34 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
As it was written in related thread:
If you switch the broker trace on for your EG which contains a FileInput node
Code: |
mqsichangetrace BROKER -t -e EG -l debug -r |
You can get detailed information about file handling
Have you tried reading service trace? Your post contains only the exception trace. |
|
Back to top |
|
 |
RhettChan |
Posted: Sun May 18, 2014 10:15 pm Post subject: |
|
|
Newbie
Joined: 14 May 2014 Posts: 7
|
<UserTrace timestamp='2014-05-16 10:48:16.942392' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.deleteFile' text='''' catalog='BIPmsgs' number='3337' file='F:\build\slot1\S900_P\src\DataFlowEngine\NativeTrace\ImbNativeTrace.cpp' line='175'>
<Insert type='string'>'文件输出'</Insert>
<Insert type='string'>'flowHttpToFtp'</Insert>
<Insert type='string'>'order_info.xml'</Insert>
<Insert type='string'>'f:\ftp\order\mqsitransit'</Insert>
</UserTrace>
<Entry timestamp='2014-05-16 10:48:16.942406' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.getCanonicalMbFile'/>
<Trace timestamp='2014-05-16 10:48:16.942416' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.getCanonicalPath' text=''Cached Canonical path used''>
<Insert type='string'>'F:\ftp\order\mqsitransit\order_info.xml'</Insert>
</Trace>
<Trace timestamp='2014-05-16 10:48:16.942446' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.MbFile' text=''F:\ftp\order\mqsitransit\order_info.xml''/>
<Exit timestamp='2014-05-16 10:48:16.942456' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.getCanonicalMbFile'>
<Insert type='string'>'F:\ftp\order\mqsitransit\order_info.xml'</Insert>
</Exit>
<Exit timestamp='2014-05-16 10:48:16.942816' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.deleteFile'>
<Insert type='string'>'true'</Insert>
</Exit>
<Exit timestamp='2014-05-16 10:48:16.942830' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.deleteFromDirectory'/>
<Entry timestamp='2014-05-16 10:48:16.942842' thread='7240' function='com.ibm.broker.nodes.filenodes.AbstractFileOutputNode$SyncTransitDirectory@-39246964.unlockBackSyncObject'>
<Insert type='string'>'fileName: order_info.xml'</Insert>
</Entry>
<Exit timestamp='2014-05-16 10:48:16.942856' thread='7240' function='com.ibm.broker.nodes.filenodes.AbstractFileOutputNode$SyncTransitDirectory@-39246964.unlockBackSyncObject'/>
<Entry timestamp='2014-05-16 10:48:16.942880' thread='7240' function='ImbDataFlowNode::label' type='ComIbmFileOutputNode' name='flowHttpToFtp#FCMComposite_1_3' label='flowHttpToFtp.文件输出'>
<Insert type='string'>flowHttpToFtp.文件输出</Insert>
</Entry>
<Entry timestamp='2014-05-16 10:48:16.942886' thread='7240' function='ImbDataFlowManager::getFileExtension' type='MessageFlow' name='5a2423e0-4501-0000-0080-a3b2f85cf6d4' label='flowHttpToFtp'>
<Insert type='string'>flowHttpToFtp</Insert>
</Entry>
<Exit timestamp='2014-05-16 10:48:16.942892' thread='7240' function='ImbDataFlowManager::getFileExtension' type='MessageFlow' name='5a2423e0-4501-0000-0080-a3b2f85cf6d4' label='flowHttpToFtp'>
<Insert type='string'>'.MSGFLOW'</Insert>
<Insert type='string'>flowHttpToFtp</Insert>
</Exit>
<Exit timestamp='2014-05-16 10:48:16.942900' thread='7240' function='ImbDataFlowNode::label' type='ComIbmFileOutputNode' name='flowHttpToFtp#FCMComposite_1_3' label='flowHttpToFtp.文件输出'>
<Insert type='string'>flowHttpToFtp.文件输出</Insert>
</Exit>
<Entry timestamp='2014-05-16 10:48:16.942906' thread='7240' function='ImbJavaExceptionUtils::handleJavaException'>
<Insert type='integer'>-1073737457</Insert>
</Entry>
<Entry timestamp='2014-05-16 10:48:16.942912' thread='7240' function='ImbJavaExceptionUtils::throwableToNativeException'>
<Insert type='integer'>-1073737457</Insert>
</Entry>
<Entry timestamp='2014-05-16 10:48:16.942942' thread='7240' function='java_lang_String::java_lang_String'/>
<Exit timestamp='2014-05-16 10:48:16.942948' thread='7240' function='java_lang_String::java_lang_String'/>
<Entry timestamp='2014-05-16 10:48:16.942970' thread='7240' function='com.ibm.broker.plugin.MbStackTraceParser@-2fe80de6.MbStackTraceParser'/>
<Trace timestamp='2014-05-16 10:48:16.943506' thread='7240' function='MbErrorHandler.traceThrowable' text=''MbStackTraceParser ctor''>
<Insert type='string'>'java.lang.NullPointerException
at com.ibm.broker.fileftp.FtpService.getPassiveDataSocket(FtpService.java:1955)
at com.ibm.broker.fileftp.FtpService.getDataSocket(FtpService.java:1847)
at com.ibm.broker.fileftp.FtpService.putAsciiStream(FtpService.java:1148)
at com.ibm.broker.fileftp.FtpService.putStream(FtpService.java:1118)
at com.ibm.broker.nodes.filenodes.AbstractFileOutputNode.transferToRemoteServer(AbstractFileOutputNode.java:669)
at com.ibm.broker.nodes.filenodes.AbstractFileOutputNode.processEOD(AbstractFileOutputNode.java:952)
at com.ibm.broker.nodes.filenodes.AbstractFileOutputNode.sendData(AbstractFileOutputNode.java:397)
at com.ibm.broker.nodes.filenodes.ComIbmFileOutputNode.sendData(ComIbmFileOutputNode.java:396)
at com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:54)
'</Insert>
</Trace>
Tibor wrote: |
As it was written in related thread:
If you switch the broker trace on for your EG which contains a FileInput node
Code: |
mqsichangetrace BROKER -t -e EG -l debug -r |
You can get detailed information about file handling
Have you tried reading service trace? Your post contains only the exception trace. |
|
|
Back to top |
|
 |
RhettChan |
Posted: Sun May 18, 2014 10:19 pm Post subject: |
|
|
Newbie
Joined: 14 May 2014 Posts: 7
|
I had thought the exception trace is enough.
What do you want to know in service trace? Is the information above enough for you to solve the problem?
Anyway, thanks for your kind!
Tibor wrote: |
As it was written in related thread:
If you switch the broker trace on for your EG which contains a FileInput node
Code: |
mqsichangetrace BROKER -t -e EG -l debug -r |
You can get detailed information about file handling
Have you tried reading service trace? Your post contains only the exception trace. |
|
|
Back to top |
|
 |
Tibor |
Posted: Mon May 19, 2014 12:46 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
RhettChan wrote: |
What do you want to know in service trace? |
If you look into the earlier linked thread, you can see a snippet from the service trace. It is very detailed so useful for debugging. |
|
Back to top |
|
 |
|