Author |
Message
|
MQEnthu |
Posted: Thu Mar 11, 2010 9:20 am Post subject: File output node for fileshare |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Hello All,
My requirement is to write the transformed message into a file in shared directory of a remote machine (NOT FTP).
MQInput-> JCN -> File Output Node -> Shared directory
In the directory property if I mention: \\<host name/ip address>\<shared directory>
I am getting java null pointer exception. I tried mapping network drive in the broker machine to the shared directory and mention the mapped drive in the node property, but it did not help...getting the same error...
If I mention some local directory name like c:\ it works. Hence remaining configurations looks fine.
Could you please let me know how do we specify the directory name in such scenario.
Thank you...
Note: I can access the shared directory from broker machine. _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Mar 11, 2010 9:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You may not have made the drive mapping in the broker's runtime environment.
You can't use the UNC path, the \\<host>\<share> form to the best of my knowledge.
Write a little batch file that runs the net use command to create the mapping and put it in <broker workpath>\common\profiles (likely C:\Documents and Settings\All Users\Application Data\IBM\MQSI\common\profiles)
restart broker, and set the path based on the drive letter that the net use command assigned. |
|
Back to top |
|
 |
MQEnthu |
Posted: Thu Mar 11, 2010 9:49 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Hi mqjeff,
Thanks for the response.
I have actually tried mapping the network drive in broker run time machine i self. But it did not work... _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 11, 2010 9:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MQEnthu wrote: |
I have actually tried mapping the network drive in broker run time machine i self. But it did not work... |
On the machine itself, or in the broker's runtime environment?
I think the point mqjeff is getting at is that the shell broker is starting can't see the mapped drive, even if you're created it on the machine on which broker is running because the mapping's in a different shell.
So did you try mapping the drive as suggested in the earlier post, or mapping it from an Explorer session / command prompt external to the broker's environment? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
MQEnthu |
Posted: Thu Mar 11, 2010 11:49 pm Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Hi,
I tried as mqjeff explained:
Created the batch file with below command:
net use Z: \\<host name>\<directory> <password> /USER:<domain>\<user id>
And placed it in C:\Documents and Settings\All Users\Application Data\IBM\MQSI\common\profiles
restarted the broker and mentioned Z:\ in the file node and deployed. But getting the same exception:
Code: |
RecoverableException
File F:\build\S610_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp
Line 1879
Function ImbJavaExceptionUtils::throwableToNativeException
Type
Name
Label
Catalog BIPv610
Severity 3
Number 4395
Text Unhandled exception in plugin method
Insert
Type 5
Text java.lang.NullPointerException
Insert
Type 5
Text java.io.File
Insert
Insert
Insert
Type 2
Text 223
|
_________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
MQEnthu |
Posted: Fri Mar 12, 2010 12:12 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Granted the access to the shared directory to broker user name, then specified the
\\<host name>\<directory> in the File node and it worked ..
I also observed that the directory "mqsitransit" is created in the shared directory of remote machine....
the problem is solved now with this approach....
BUT any idea why the earlier solution (net use) did not work even though I had specified the credential of the user (which has access to shared directory)in the command.. _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 12, 2010 6:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MQEnthu wrote: |
BUT any idea why the earlier solution (net use) did not work even though I had specified the credential of the user (which has access to shared directory)in the command.. |
Frankly no. I expect my worthy associate will comment, but I'd consider a PMR to get an authoritative answer. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|