|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
FTP issue with FileOutput Node on AIX |
« View previous topic :: View next topic » |
Author |
Message
|
whydieanut |
Posted: Mon Feb 20, 2012 11:09 pm Post subject: FTP issue with FileOutput Node on AIX |
|
|
 Disciple
Joined: 02 Apr 2010 Posts: 186
|
Hi all,
I am trying to use the FileOutput Node (WMB ver 7.0.0.3) to create a file and FTP it to an AIX server (ver 6.1).
The flow works fine when I run it on my own machine (Windows). Here I am FTPing from a Windows machine to an AIX server (say, server B)
But when I deploy the same flow onto another AIX server (say, server A) the FileOutput Node throws an exception and the file is not being sent to server B.
Even the local file, on server A, is absent, though I have set 'Retain local file after transfer' to checked (But the mqsitransit folder shows that it has been modified at the time that the message was sent).
Some additional info:
I have set the Security Identity on both (Windows and AIX server A).
I am setting Record definition to 'Record is Whole File' (So the file is completed without having to wire in the Finish File terminal)
I am not able to use FTP (as a client, from the command line) on AIX server A when logged in as the user that the broker is running under.
I feel that this is indeed the reason for the failure, but the error message doesn't say anything on those lines.
Is the below error due to the fact that the broker's user is not able to use FTP or it is it something else?
Here is the Error Info:
ExceptionList (Formatted):
Code: |
Text: Unhandled exception in plugin method.,
Inserts: sendData / MRO_File / java.lang.NoClassDefFoundError: com.ibm.broker.remote.RemoteFactory (initialization failure) / ,
ErrorNo: 4367,
Text: Unhandled exception in plugin method,
Inserts: java.lang.NoClassDefFoundError / java.lang.J9VMInternals / initialize / J9VMInternals.java / 140 / ,
ErrorNo: 4395,
|
User Trace:
Code: |
2012-02-17 12:12:44.771432 6699 UserTrace BIP3355I: ''File output'' node ''MRO_File'' in message flow ''AIS_SAPOut_VendorMaster_MF'' finished writing to file ''/home/mqbrk/ftp/VendorMaster/mqsitransit/MRO_VENDMAST_0000000000205043_20120217121244.csv''.
The ''File output'' node has finished writing records to the specified file. Finish processing begins.
No action is required.
2012-02-17 12:12:44.771656 6699 UserTrace BIP3392I: File node ''MRO_File'' in message flow ''AIS_SAPOut_VendorMaster_MF'' has disconnected from host ''172.21.12.102:21'' using ''FTP''.
The File node has disconnected from a remote server.
No action is required.
2012-02-17 12:12:44.771728 6699 UserTrace BIP3337I: The node ''MRO_File'' in message flow ''AIS_SAPOut_VendorMaster_MF'' is deleting file ''MRO_VENDMAST_0000000000205043_20120217121244.csv'' from directory ''/home/mqbrk/ftp/VendorMaster/mqsitransit''.
The node is about to delete an existing file.
No user action is necessary.
.
.
.
.
.
2012-02-17 12:12:44.785516 6699 RecoverableException BIP2230E: Error detected whilst processing a message in node 'com.ibm.ai.sangam.sapout.AIS_SAPOut_VendorMaster_MF.MRO_File'.
The message broker detected an error whilst processing a message in node 'AIS_SAPOut_VendorMaster_MF.MRO_File'. An exception has been thrown to cut short the processing of the message.
See the following messages for details of the error.
2012-02-17 12:12:44.785524 6699 RecoverableException BIP4367E: The method ''sendData'' in Java node ''MRO_File'' has thrown the following exception: 'java.lang.NoClassDefFoundError: com.ibm.broker.remote.RemoteFactory (initialization failure)'.
The method ''sendData'' of the Java node has thrown an exception. Examine previous error messages for details of the cause of the problem.
This error is generated by the Java node API. It can occur in a Java Compute node or a Java user-defined node. If the node is a user-defined node, contact the node provider for further details.
2012-02-17 12:12:44.785532 6699 RecoverableException BIP4395E: Java exception: ''java.lang.NoClassDefFoundError''; thrown from class name: ''java.lang.J9VMInternals'', method name: ''initialize'', file: ''J9VMInternals.java'', line: '140'
The message contains that data associated with a Java exception.
No user action required.
|
On a different note, why is it that I am not able to use FTP on the AIX server (A) while logged in as a non-root user?
(I am able to do so on server B using a non-root user.) |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Feb 21, 2012 5:47 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
1. On AIX, you should not log in as the mqbrkrs user. You should log in as you, then sudo to the mqbrkrs user to execute mqsi commands.
2. On AIX, the service user id being used to run WMB should be a member of mqbrkrs as its primary group.
3. Any directories used should have appropriate permissions set to allow the broker service Id read/write access. Sometimes the easiest way to accomplish this is by having the mqbrkrs Id create a subdirectory underneath /var/mqsi or /var/mqsi/common for file transfer use. Using other pathing can be problematic with overzealous sys-admins. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
whydieanut |
Posted: Mon Aug 06, 2012 3:33 am Post subject: |
|
|
 Disciple
Joined: 02 Apr 2010 Posts: 186
|
After over 3 months and 3 GB of logs, turns out the problem was with blotched permissions on the /tmp folder...
It didn't have write permissions for other users causing the JVM to throw up the above error...
 |
|
Back to top |
|
 |
zpat |
Posted: Mon Aug 06, 2012 4:00 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
As always with file nodes.
Just run the same FTP or SFTP operation outside the broker (but with the broker id) to debug any environment issues before worrying about getting the flow to work. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|