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 Index » WebSphere Message Broker (ACE) Support » File output node for fileshare

Post new topic  Reply to topic
 File output node for fileshare « View previous topic :: View next topic » 
Author Message
MQEnthu
PostPosted: Thu Mar 11, 2010 9:20 am    Post subject: File output node for fileshare Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 11, 2010 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
MQEnthu
PostPosted: Thu Mar 11, 2010 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Mar 11, 2010 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message
MQEnthu
PostPosted: Thu Mar 11, 2010 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
MQEnthu
PostPosted: Fri Mar 12, 2010 12:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Mar 12, 2010 6:23 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » File output node for fileshare
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.