Author |
Message
|
munden101 |
Posted: Fri Jan 07, 2005 8:32 am Post subject: Jtext Error |
|
|
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 |
|
 |
fjb_saper |
Posted: Fri Jan 07, 2005 8:42 am Post subject: |
|
|
 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 |
|
 |
munden101 |
Posted: Fri Jan 07, 2005 9:02 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Fri Jan 07, 2005 1:45 pm Post subject: |
|
|
 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 |
|
 |
munden101 |
Posted: Fri Jan 07, 2005 3:13 pm Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Fri Jan 07, 2005 5:51 pm Post subject: |
|
|
 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 |
|
 |
alphamale |
Posted: Wed Feb 09, 2005 8:37 am Post subject: |
|
|
 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 |
|
 |
|