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 IndexWebSphere Message Broker (ACE) Supporterror when writing to remote FTP server in Integration bus 9

Post new topicReply to topic
error when writing to remote FTP server in Integration bus 9 View previous topic :: View next topic
Author Message
RhettChan
PostPosted: Thu May 15, 2014 1:34 am Post subject: error when writing to remote FTP server in Integration bus 9 Reply with quote

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
View user's profile Send private message
Tibor
PostPosted: Thu May 15, 2014 1:57 am Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu May 15, 2014 3:15 am Post subject: Reply with quote

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
View user's profile Send private message
RhettChan
PostPosted: Thu May 15, 2014 8:06 pm Post subject: Reply with quote

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
View user's profile Send private message
RhettChan
PostPosted: Thu May 15, 2014 8:08 pm Post subject: Reply with quote

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
View user's profile Send private message
RhettChan
PostPosted: Thu May 15, 2014 8:20 pm Post subject: Reply with quote

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
View user's profile Send private message
Tibor
PostPosted: Thu May 15, 2014 10:34 pm Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

You can follow the FTP / file processing in the service trace.

http://www.mqseries.net/phpBB2/viewtopic.php?p=375162
Back to top
View user's profile Send private message
RhettChan
PostPosted: Fri May 16, 2014 2:28 am Post subject: Reply with quote

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.

Tibor wrote:
You can follow the FTP / file processing in the service trace.

http://www.mqseries.net/phpBB2/viewtopic.php?p=375162
Back to top
View user's profile Send private message
Tibor
PostPosted: Fri May 16, 2014 2:34 am Post subject: Reply with quote

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
View user's profile Send private message
RhettChan
PostPosted: Sun May 18, 2014 10:15 pm Post subject: Reply with quote

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='&apos;&apos;' catalog='BIPmsgs' number='3337' file='F:\build\slot1\S900_P\src\DataFlowEngine\NativeTrace\ImbNativeTrace.cpp' line='175'>
<Insert type='string'>&apos;文件输出&apos;</Insert>
<Insert type='string'>&apos;flowHttpToFtp&apos;</Insert>
<Insert type='string'>&apos;order_info.xml&apos;</Insert>
<Insert type='string'>&apos;f:\ftp\order\mqsitransit&apos;</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='&apos;Cached Canonical path used&apos;'>
<Insert type='string'>&apos;F:\ftp\order\mqsitransit\order_info.xml&apos;</Insert>
</Trace>
<Trace timestamp='2014-05-16 10:48:16.942446' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.MbFile' text='&apos;F:\ftp\order\mqsitransit\order_info.xml&apos;'/>
<Exit timestamp='2014-05-16 10:48:16.942456' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.getCanonicalMbFile'>
<Insert type='string'>&apos;F:\ftp\order\mqsitransit\order_info.xml&apos;</Insert>
</Exit>
<Exit timestamp='2014-05-16 10:48:16.942816' thread='7240' function='com.ibm.broker.flowgroupfiles.MbFile@-af93e76.deleteFile'>
<Insert type='string'>&apos;true&apos;</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'>&apos;fileName: order_info.xml&apos;</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'>&apos;.MSGFLOW&apos;</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='&apos;MbStackTraceParser ctor&apos;'>
<Insert type='string'>&apos;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)
&apos;</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
View user's profile Send private message
RhettChan
PostPosted: Sun May 18, 2014 10:19 pm Post subject: Reply with quote

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
View user's profile Send private message
Tibor
PostPosted: Mon May 19, 2014 12:46 am Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) Supporterror when writing to remote FTP server in Integration bus 9
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.