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 Interchange Server + Adapters » Reading From an AS\400 File Using JText

Post new topic  Reply to topic
 Reading From an AS\400 File Using JText « View previous topic :: View next topic » 
Author Message
vk
PostPosted: Fri Dec 08, 2006 7:32 am    Post subject: Reading From an AS\400 File Using JText Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi,

I am trying to use JText adapter to read from\write to files on AS\400 IFS. I am able to write to existing files as well as create new files dynamically using dynamic child MO. But I am facing issues with respect to reading from files.

I have configured a BO-MO in event notification mode for the adapter. The EventExt is 'txt'. Suppose the event directory specified in the MO has a file by name 'Invoice.txt', the adapter is fetching the file to the local event directory as 'nvoice.txt'. This is treated as a zero byte file and is archived as damage.

I have tried many combinations of specifying the event directory but always the adapter misses the first character in the event file name and archives the file as damage. The event directory format which I am using is -

ftp://<UserId>:<Password>@<MachineName>/home/<UserId>/Test

Has anyone faced this issue before?

Thanks,
VK.
Back to top
View user's profile Send private message
mqseries0209
PostPosted: Fri Dec 08, 2006 1:07 pm    Post subject: Reply with quote

Voyager

Joined: 30 Mar 2006
Posts: 90

Hi VK,
I faced this problem, when readign a file from J-Text event directory.
The thing make sure the event file is completely constructed before its put in event directory. I mean if the application which puts the file to E.Dir first puts the file then try to construct it, then J-txt adapter does not wait until the event file is ready, so it reads it as zero kb file and archives it as damaged file.

----- hope this helps.
Back to top
View user's profile Send private message
vk
PostPosted: Sun Dec 10, 2006 4:03 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Thanks mqseries0209.

The file which I am trying to read is a static file which is not being modified by any other application. I started the adapter only after creating the file in the event directory.

I think the issue which you mentioned has been corrected in JText adapter fixpack 5.6.2. The adapter now checks for file locks before reading the event file. Also, I found out that the issue which I am facing is a defect in the JText adapter, whcih IBM has fixed in JText fixpack 5.6.3.

Quote:
CR72716/JR23381
JText fails to pick up files from a remote AS400 FTP server. While trying to download the fixed-width file, or files, from the AS400 FTP server using the JText adapter, a 0 KB local event file is created. Also, the created file name is different from the original file name, with the first character of the original file name missing.


Also, I saw that fixpack 5.6.4 was released on 11/22/2006. I will download and install the fixpack and then recheck to make sure that this has been fixed.

Thanks,
VK.
Back to top
View user's profile Send private message
mq_blr
PostPosted: Sun Dec 10, 2006 7:21 pm    Post subject: confusion Reply with quote

Apprentice

Joined: 30 Sep 2005
Posts: 49
Location: Brisbane,Australia

Hi Vk,

But one more confusion is
For Fixpack5.6.4:
http://www-1.ibm.com/support/docview.wss?rs=0&q1=WBI+Adapter+for+JText&uid=swg24013736&loc=en_US&cs=utf-8&cc=us&lang=en


Installation Instructions

After the installation of the fixpack, the following files will be replaced :
connectors\JText\CWJText.jar;connectors\JText\Dependencies\commons-net-1.1.0.jar;connectors\JText\5724H03J050600.sys


But in the Download package
In updatedFilesList.txt they mentioned the following files only.

solaris
\connectors\JText\5724H03J050600.sys
\connectors\JText\CWJText.jar
\connectors\JText\ReadMe.htm

now the question is why they mentioned about connectors\JText\Dependencies\commons-net-1.1.0.jar in Installation Instructions?

which instruction is correct. Actually when we apply fixpack 5.6.4 this file not updated .
what about commons-net-1.1.0.jar also need to be updated?
Can you please let me know also how you prceeded.

Regards
Durga
Back to top
View user's profile Send private message
dilse
PostPosted: Tue Feb 27, 2007 9:19 am    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

Hello vk/mq_blr/mqseries0209


I am facing the same problem as you stated. I have 5.6.4 fixpack installed on my machine and I am still not able to read the file from AS400 machine it is complaining that the file is damaged with 0 bytes and also the file name was missing the first letter out of it. Please let me know how you resolved the isssue.

Appreciate your help.

Thanks...
DilSe..
Back to top
View user's profile Send private message
vk
PostPosted: Wed Feb 28, 2007 3:14 am    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi mq_blr,

As per the installation pre-requisites, the JAR file commons-net-1.1.0.jar will get replaced if the fixpack is applied on top of JText adapter 5.6.0. If you apply the fixplack on top of JText 5.6.3, the JAR file will not get replaced.

Quote:
Prerequisites
This fix pack should be installed on 5.6.0 version of JText adapter



Hi dilse,

Try downgrading the adapter to 5.6.3. It should work. We are able to read \ write to AS\400 using Jtext 5.6.3.

We have opened a PMR with IBM for the issue with 5.6.4. Will let you know when we get some update.

Regards,
VK.
Back to top
View user's profile Send private message
mq_blr
PostPosted: Tue Mar 27, 2007 1:04 am    Post subject: got any response from IBM Reply with quote

Apprentice

Joined: 30 Sep 2005
Posts: 49
Location: Brisbane,Australia

VK,

Did u got any update on this ?

Best Regards
Durga
Back to top
View user's profile Send private message
vk
PostPosted: Tue Mar 27, 2007 5:27 am    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi Durga,

This is a defect in JText adapter 5.6.4. IBM provided us a patch for this defect. After applying the patch on top of JText 5.6.4, I am able to read \ write from AS\400 files.

Please get in touch with IBM if you are also facing the same issue.

Regards,
VK.
Back to top
View user's profile Send private message
mq_blr
PostPosted: Tue Mar 27, 2007 10:03 pm    Post subject: Thx Reply with quote

Apprentice

Joined: 30 Sep 2005
Posts: 49
Location: Brisbane,Australia

VK,
Thx for update.we are facing the same problem
Is the patch released officially? can i have the link or patch (if you don't have issues

my personal id :durga74@gmail.com

regards
Durga
Back to top
View user's profile Send private message
vk
PostPosted: Tue Mar 27, 2007 10:13 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi Durga,

It has not been released officially. Please raise a PMR with IBM to get the same. IBM should be releasing it in the next fixpack sometime soon.

Regards,
VK.
Back to top
View user's profile Send private message
mq_blr
PostPosted: Wed Jun 06, 2007 6:40 pm    Post subject: any update Reply with quote

Apprentice

Joined: 30 Sep 2005
Posts: 49
Location: Brisbane,Australia

Dear VK,

Is there any update on this ..i mean whether IBM released fix pact for the above problem

Regards,
Durga
Back to top
View user's profile Send private message
vk
PostPosted: Thu Jun 07, 2007 1:26 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi Durga,

I dont think it has officially been released yet. And I am not sure when IBM is planning their next release. I didn't follow up on this afterwards as the patch provided by IBM is working fine for me. Unfortunately, I wont be able to share this.

If you have a valid licence for JText adapter and you have an IBM support contract, you can get in touch with IBM support through PMR or other means and check with them regarding this.

Regards,
VK.
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 Interchange Server + Adapters » Reading From an AS\400 File Using JText
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.