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 » General Discussion » Jtext Error

Post new topic  Reply to topic
 Jtext Error « View previous topic :: View next topic » 
Author Message
munden101
PostPosted: Fri Jan 07, 2005 8:32 am    Post subject: Jtext Error Reply with quote

Novice

Joined: 13 Dec 2004
Posts: 23

I'm trying to get the JText adapter to writeout a xml data to a file.
The following error is logged in my JText trace log: After looking at the error the value for the classname in the BO looks fine (com.crossworlds. DataHandlers. text.xml). Has anyone seen this error before? Please help.


BO - (MO_DataHandler_DefaultXMLConfig)


[Time: 2005/01/07 11:13:47.206] [System: ConnectorAgent] [SS: JTextConnector] [Thread: WT=1 (#1738080075)] [Type: Trace] [Mesg: :
JTextBOStringHandler:: Entering handleBOEvent()]
[Time: 2005/01/07 11:13:47.206] [System: ConnectorAgent] [SS: JTextConnector] [Thread: WT=1 (#1738080075)] [Type: Trace] [Mesg: :
JTextBOStringHandler:: Leaving handleBOEvent()]
[Time: 2005/01/07 11:13:47.206] [System: ConnectorAgent] [SS: JTextConnector] [Thread: WT=1 (#1738080075)] [Type: Trace] [Mesg: Property = LogAtInterchangeEnd, Value = False and the Property value is from Repository.]
[Time: 2005/01/07 11:13:47.206] [System: ConnectorAgent] [SS: JTextConnector] [Thread: WT=1 (#1738080075)] [Type: Trace] [Mesg: :[9543] DoVerbFor cookie=Fri Jan 07 09:25:26 EST 2005 rc=-1 rtnObj.status=4 rtnObj.message=
**** ERROR ::Unable to create DataHandler. Reason :: Unable to get the value of the attribute 'ClassName'. Check the 'ClassName' attribute of DataHandler MO]
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 07, 2005 8:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Pretty clear from the error message.
Is there a config file somewhere where you need to define the class name of the default xml handler ?

Looks like some config has not been taken care of.

Remember most of the time when you have to enter a class name in config it has to be the fully qualified class name:

Myhandler or Myhandler.class is wrong
com.myco.crossworld.handlers.Myhandler[.class] is what is called for

Enjoy
Back to top
View user's profile Send private message Send e-mail
munden101
PostPosted: Fri Jan 07, 2005 9:02 am    Post subject: Reply with quote

Novice

Joined: 13 Dec 2004
Posts: 23

I'm using the MO_JTextConnector_Default which calls MO_DataHandler_DefaultXMLConfig (unchanged). The classname here is a default value (com.crossworlds. DataHandlers. text.xml). I'm not sure where I'd have to specify the classname.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 07, 2005 1:45 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

where in your properties/xml files do you define the MO_JTextConnector_Default and the MO_DataHandler_DefaultXMLConfig ?

I guess that's where you are supposed to inform the system about the class used.

Enjoy
Back to top
View user's profile Send private message Send e-mail
munden101
PostPosted: Fri Jan 07, 2005 3:13 pm    Post subject: Reply with quote

Novice

Joined: 13 Dec 2004
Posts: 23

The classname is defined in the MO_DataHandler_DefaultXMLConfig and MO_JTextConnector_Default but for some reason the JText adapter is not recognizing this.
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Jan 07, 2005 5:51 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

It's not that simple

Add the BOs to your project and then to the JText connector add the BOs in Specifying supported business object definitions tab

You should be able to find the BO's in
<ICS Install Root>\DataHandlers\repository\DataHandlers
(For me it is C:\IBM\WebSphereICS\DataHandlers\repository\DataHandlers)

Give agent support to the XML datahandler.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
alphamale
PostPosted: Wed Feb 09, 2005 8:37 am    Post subject: Reply with quote

Novice

Joined: 09 Feb 2005
Posts: 12
Location: UK

I suspect you are getting the 'unable to get value of classname' message because the adapter cannot work out which datahandler to use (i.e. because it can't identify the correct MO for the required datahandler, it can't pick up the classname attribute on that MO).

Some other adapters use a MIME type in the BO that tells it what datahandler to use (e.g. "text/xml") that it can use to search through the Default MO to find the datahandler that supports this MIME type.

However, the JText doesn't do this, so you need to explicitly tell it which datahandler to use via the EventDataHandler and OutputDataHandler attributes of the connectors Meta Object - you can't use the default MO here.

In the connector itself, you can still use the default MO when defining supported BOs.
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 » General Discussion » Jtext Error
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.