Author |
Message
|
migerrits |
Posted: Tue Apr 19, 2005 9:38 am Post subject: JText: Unable to find version "*.*.*" of BO defini |
|
|
 Apprentice
Joined: 13 Dec 2002 Posts: 35 Location: Canada
|
JText is being obstinate. I believe I have my BOs configured properly and so on but it's giving an error. I am using a modified "MO_DataHandler_DefaultDelimitedConfig" file, set up to use the delimiters, which is in turn referred to as the "Type" for the "EventDataHandler" property in my "MO_JTextConnector_Default" file. I also refer to these and my BOs for my data in the BO tab of the JText ".cfg" file.
The "1006232" string is the first field in the first line of my input file which is delimited by pipe ("|") and CRLF ("\n").
What are the possible reasons for this?
Code: |
[Mesg: **** WARNING :: Internal error: Exception :: com.crossworlds.DataHandlers.Exceptions.CW_BOFormatException: at column = -7: BO name of 1006232 not found: CxCommon.Exceptions.BusObjSpecNameNotFoundException: Unable to find version "*.*.*" of business object definition "1006232".
at com.crossworlds.DataHandlers.text.delimited.getBOFromString(delimited.java:483)
at com.crossworlds.DataHandlers.text.delimited.getBO(delimited.java:395)
at com.crossworlds.connectors.jtext.FileParser.createAndFormatWorkUnit(FileParser.java:816)
at com.crossworlds.connectors.jtext.FileParser.run(FileParser.java:624)
at java.lang.Thread.run(Thread.java:567)
] |
|
|
Back to top |
|
 |
vennela |
Posted: Tue Apr 19, 2005 9:48 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I think I have seen this problem and this is what I did.
Goto the directory wherever you have found the BO MO_DataHandler_DefaultDelimitedConfig and import all the BOs that are in this directory and see if the problem goes away. Also, you should add these BOs in the connector definitions.
Hope this helps. |
|
Back to top |
|
 |
migerrits |
Posted: Tue Apr 19, 2005 12:25 pm Post subject: |
|
|
 Apprentice
Joined: 13 Dec 2002 Posts: 35 Location: Canada
|
No luck with that... So I'll tell my full story and maybe someone will pick out where I went wrong.
I would like to process file lines that look like this:
Code: |
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE
dataA|dataB|dataC|dataD|dataE |
First, I set up a datahandler which I called "MO_DataHandler_DefaultDelimitedConfig":
Code: |
ClassName="com.crossworlds.DataHandlers.text.delimited"
CxBlank="CxBlank"
CxIgnore="CxIgnore"
Delimiter="" (null)
DummyKey="1" (also checked "Key")
Escape="\" |
Then I set up my "MO_JTextConnector_Default" handler:
Code: |
ArchiveDir="...my directory..."
DataEncoding="" (null)
DummyKey="dummykey"
EndBODelimiter="EOL"
EventDataHandler="MO_DataHandler_DefaultDelimitedConfig"
EventDir="...my directory..."
EventExt="txt"
FailArchiveExt="fail"
FileSeqEnabled="true"
IncludeEndBODelimiter="false"
OriginalArchiveExt="org"
OutputDataHandler="MO_DataHandler_DefaultDelimitedConfig"
OutputDir="...my directory..."
OutputExt="out"
OutputFileName="Native"
PartialArchiveExt="part"
StagingDir="" (null)
SuccessArchiveExt="success"
UnsubscribedArchiveExt="unsub"
|
I also have a generic "line" handler with one line in it, called "GL_Line":
Code: |
Name=Line, Type=String, Key=Yes, Maximum Length=255 |
Then I have a generic "lines" handler with the above in it, called "GL_Lines":
Code: |
Name=Lines, Type=GL_Line, Key=Yes, Cardinal=1 |
My Adapter refers to these items, in the "Supported Business Objects" tab:
Code: |
Business Object Name, Message Set Id
"MO_DataHandler_DefaultDelimitedConfig", "1"
"GL_Lines", "2" |
However, when I put my file in the event directory, I get an error message like this for each line in the file:
Code: |
[Type: Warning] [MsgID: 106005] [Mesg: **** WARNING :: Internal error: Exception ::
com.crossworlds.DataHandlers.Exceptions.CW_EndOfBOException: Already reached end of BO while
expecting more token
at com.crossworlds.DataHandlers.text.delimited.getNextToken(delimited.java:1150)
at com.crossworlds.DataHandlers.text.delimited.getBOFromString(delimited.java:455)
at com.crossworlds.DataHandlers.text.delimited.getBO(delimited.java:395)
at com.crossworlds.connectors.jtext.FileParser.createAndFormatWorkUnit(FileParser.java:816)
at com.crossworlds.connectors.jtext.FileParser.run(FileParser.java:624)
at java.lang.Thread.run(Thread.java:567)
] |
I've tried changing all kind of things, but never get anything better than this.  |
|
Back to top |
|
 |
Ratan |
Posted: Tue Apr 19, 2005 3:36 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Quote: |
First, I set up a datahandler which I called "MO_DataHandler_DefaultDelimitedConfig":
Code:
ClassName="com.crossworlds.DataHandlers.text.delimited"
CxBlank="CxBlank"
CxIgnore="CxIgnore"
Delimiter="" (null)
DummyKey="1" (also checked "Key")
Escape="\"
|
Your delimiter is null, should you be setting it to '|' ? _________________ -Ratan |
|
Back to top |
|
 |
migerrits |
Posted: Wed Apr 20, 2005 4:08 am Post subject: |
|
|
 Apprentice
Joined: 13 Dec 2002 Posts: 35 Location: Canada
|
If I put in the "|" as delimiter, it gives me these errors instead of the above:
Code: |
[Type: Error] [MsgID: 103007] [Mesg: **** WARNING :: Formatting failed. Reason :: at column = -7: BO name of 1004752 not found: CxCommon.Exceptions.BusObjSpecNameNotFoundException: Unable to find version "*.*.*" of business object definition "1004752".] |
I'm missing something key here.... :-/ |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 20, 2005 4:13 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I can't say I understand BOs at all.
But taking some wild stabs in the dark... the error you get with a NULL delimiter looks to me like it's finding the end of line before it think's it's finished loading the BO fields.
Maybe you should try setting your EndBODelimiter to EOF instead of EOL, and set your Delimiter to "|".
Also, I remember someone else talking about JText needing a BO identifier string in the file somewhere...? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
migerrits |
Posted: Wed Apr 20, 2005 4:53 am Post subject: |
|
|
 Apprentice
Joined: 13 Dec 2002 Posts: 35 Location: Canada
|
When I look at them, I think I understand BOs but when I try to build one, they don't work the way I expect. The learning curve on these is very steep.
Even with EndBODelimiter set to "EOF", I still get the last error above.
I think there's one small thing I'm missing. I am checking the IBM online support docs for this small shred of information. My mission today is to make this thing work!!  |
|
Back to top |
|
 |
Ratan |
Posted: Wed Apr 20, 2005 11:45 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Do you have agent support checked for the Meta objects and the ASBOs? _________________ -Ratan |
|
Back to top |
|
 |
jhoninck |
Posted: Tue Aug 09, 2005 9:51 pm Post subject: experiencing the same problem |
|
|
Novice
Joined: 20 Jun 2005 Posts: 11
|
After trying loads of things with JText I have now come to the point where I experience exactly the same problem as you describe above.
Would really be fascinating to know what was your solution to this problem.
Regards |
|
Back to top |
|
 |
|