OTD UnMarshal

I am using a flat file comma seperated otd. I have an input file which have few records which are not comma seperated instead seperated with semi colon. No the unmarshal fails.
Is there any way where i can unmarshal the right records leaving those bad records?
E.g
Right File
A,B,C
D,E,F
G,H,I
so on!
Badfile
A,B,C
D,E,F
G:H:I
so on!
In the above scenario, i am expecting to process first and second row as they are right records.

Hi,
You can try to create two nodes (records) with each the 3 elements. One node has the , as seperator and the other one the :. Make the nodes both optional. The unmarshal might pick the proper node. I'm not sure whether this will work, but I've solved simular cases like this with elements.
Good luck,
Cor Zijlstra

Similar Messages

  • Unmarshal fails with OTD Tester

    Sorry to bother you again with another JCAPS-question, but I would like to know how to troubleshoot these kind of error messages. I tried to test my deployment dpData_Conversion_for_IP but it failed with an unmarshal error..now I have seen this error before and I know that other folks fixed it for me the last couple of times, but I'd like to learn on how to address an issue like this.
    When I ran the otdtester I receive an error message like:
    There was an error during unmarshal.
    "...00100001\r\n"<POS>"L113218807..." failed input match, after RecordGroup[1]: left over 3086 bytes at end of data
    When I enable Verbose Mode I get the following detailed output (see attachment) which basically tells me at te end that there are so many bytes of data left that could not be matched. Does it mean that my file I present to unmarshal contains more data than I told it to expect? How would you normally fix an issue like this? I looked at the source file and the otd and the field lengths do add up: the header ends at position 163 and the line items at position 125
    Do the line item lines need to be adjusted (the number of times they repeat?)
    My custom input otd used to work fine until last week then I made some changes to the EDI-mapping, but I didn't alter the field length, or the number of fields, so then it should not have any effect.
    Below you will find the output in Verbose Mode:
    [ parse #0 ]
    [ parse 'root', pos=0, end=292, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #1 ]
    [ parse 'RecordGroup', pos=0, end=292, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #2 ]
    [ parse 'Header', pos=0, end=292 ]
    [ parse group delim, Fog#25 ]
    [ - push local delim list ]
    [ - iteration #0 ]
    [ parse 'RecType', pos=0, end=292 ]
    [ parse fixed, Fog#3, count=0 ]
    [ - match EXACT "H1" ]
    [ - matched data 0 to 2: "H1" ]
    [ - parse: result=1 ]
    [ - parse: 'RecType' , done=false, pos=2, end=292, last=EOD ]
    [ parse 'PackListNumber', pos=2, end=292 ]
    [ parse fixed, Fog#4, count=0 ]
    [ - matched data 2 to 22: "5160448             " ]
    [ - parse: result=1 ]
    [ - parse: 'PackListNumber' , done=false, pos=22, end=292, last=EOD ]
    [ parse 'SequenceNumber', pos=22, end=292 ]
    [ parse fixed, Fog#5, count=0 ]
    [ - matched data 22 to 27: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber' , done=false, pos=27, end=292, last=EOD ]
    [ parse 'StockNoticeNumber', pos=27, end=292 ]
    [ parse fixed, Fog#6, count=0 ]
    [ - matched data 27 to 47: "51604480000100000000" ]
    [ - parse: result=1 ]
    [ - parse: 'StockNoticeNumber' , done=false, pos=47, end=292, last=EOD ]
    [ parse 'CurrentDate', pos=47, end=292 ]
    [ parse fixed, Fog#7, count=0 ]
    [ - matched data 47 to 67: "                    " ]
    [ - parse: result=1 ]
    [ - parse: 'CurrentDate' , done=false, pos=67, end=292, last=EOD ]
    [ parse 'SequenceNumber2', pos=67, end=292 ]
    [ parse fixed, Fog#8, count=0 ]
    [ - matched data 67 to 72: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber2' , done=false, pos=72, end=292, last=EOD ]
    [ parse 'RecvStoreNumber', pos=72, end=292 ]
    [ parse fixed, Fog#9, count=0 ]
    [ - matched data 72 to 89: "0000280942       " ]
    [ - parse: result=1 ]
    [ - parse: 'RecvStoreNumber' , done=false, pos=89, end=292, last=EOD ]
    [ parse 'SchedSendDate', pos=89, end=292 ]
    [ parse fixed, Fog#10, count=0 ]
    [ - matched data 89 to 98: "080808   " ]
    [ - parse: result=1 ]
    [ - parse: 'SchedSendDate' , done=false, pos=98, end=292, last=EOD ]
    [ parse 'CreationDate', pos=98, end=292 ]
    [ parse fixed, Fog#11, count=0 ]
    [ - matched data 98 to 107: "080808   " ]
    [ - parse: result=1 ]
    [ - parse: 'CreationDate' , done=false, pos=107, end=292, last=EOD ]
    [ parse 'CreationTime', pos=107, end=292 ]
    [ parse fixed, Fog#12, count=0 ]
    [ - matched data 107 to 113: "031229" ]
    [ - parse: result=1 ]
    [ - parse: 'CreationTime' , done=false, pos=113, end=292, last=EOD ]
    [ parse 'BillOfLadingNumber', pos=113, end=292 ]
    [ parse fixed, Fog#13, count=0 ]
    [ - matched data 113 to 133: "5160448             " ]
    [ - parse: result=1 ]
    [ - parse: 'BillOfLadingNumber' , done=false, pos=133, end=292, last=EOD ]
    [ parse 'ASN', pos=133, end=292 ]
    [ parse fixed, Fog#14, count=0 ]
    [ - matched data 133 to 136: "ASN" ]
    [ - parse: result=1 ]
    [ - parse: 'ASN' , done=false, pos=136, end=292, last=EOD ]
    [ parse 'TRANSACTION_ID', pos=136, end=292 ]
    [ parse fixed, Fog#15, count=0 ]
    [ - matched data 136 to 163: "ASN08080851604480..." ]
    [ - parse: result=1 ]
    [ - parse: 'TRANSACTION_ID' , done=false, pos=163, end=292, last=EOD ]
    [ - retry parent delimiter ]
    [ - retry failed: overshoot, del=164, pos=0 ]
    [ - parse: result=0 ]
    [ - for #2: count=-1 ]
    [ - parse: result=0 ]
    [ - parse: 'RecordGroup' , done=false, pos=0, end=292, last=EOD ]
    [ - for #1: count=0 ]
    [ - parse: result=1 ]
    [ - parse: 'root' , done=false, pos=0, end=292, last=EOD ]
    [ - for #0: count=1 ]

    Hey, I got some help from the open-esb users forum. See below.
    Mike,
    After modifying the xsd (adding match, removing scavenger, moving delimiter
    level to the top, removing 2 FILLER2 fields, etc.) and modifying the data a
    bit (padding spaces to each detail record to a total 392 bytes excluding
    CR&LF), I am able to parse the data. Please refer to the attached zip
    including input, xsd, output XML, and parse log.
    Any further questions, please let me know.
    Thanks!
    Lixin
    Open ESB Community
    http://open-esb.org
    -----Original Message-----
    From: [email protected] mailto:[email protected]
    Sent: Friday, October 17, 2008 2:05 PM
    To: [email protected]; 'Mike A Reynolds'
    Subject: RE: Custom Encoders Questions
    Mike,
    There are a number of problems I have found so far as I start looking into
    the provided xsd meta and input data:
    (1) The header element is also delimited by CR&LF. I see you have put
    delimiters for the detail and trailer elements, but the header element
    misses to be delimited.
    (2) CR&LF can be expressed as "\r\n" or "\x0D\x0A", but not "\n\r". I see
    you have "\n\r" in your xsd file which is wrong.
    (3) You said header record has 82 bytes, detail has 382 bytes and trailer
    has 91 bytes. But I've found a few mismatches:
    In your input data file, the header record has 80 bytes + CR+LF = 82
    bytes, but your xsd meta definition gives header total byte count of 81
    (without CR+LF), which mismatches the expected 82 bytes. You'll need to
    correct this in order for the parsing to work. (For me, I have to remove the
    "filler2" field in order to get the header parsed.)
    In your input data file, each detail record has 350+CR+LF = 352 bytes,
    which contradicts the expected 382 bytes. I haven't added up the total bytes
    in your xsd meta file, but I suspect they have mismatches.
    Similar mismatch may also exist for the detail record, but I haven't got
    chance to sum the total.
    (4) The header, detail and trailer records all have first byte ("H", "D" or
    "T") as record type. You must specify the "RECORD_TYPE" field to match the
    character "H", "D" or "T", respectively by putting the character in the
    "Match" field and selecting "Alignment" to "exact", meaning exact match.
    I see these characters were mistakenly put in the scavenger fields
    instead. Please correct this.
    After you modify your xsd meta encoding information based on above, you
    should be able to parse the input data.
    Let me know if there are any questions,
    Regards
    Lixin
    Open ESB Community
    http://open-esb.org
    -----Original Message-----
    From: [email protected]
    mailto:[email protected] On
    Behalf Of Mike A Reynolds
    Sent: Thursday, October 16, 2008 3:11 PM
    To: [email protected]
    Subject: Custom Encoders Questions
    I am trying to create a customer encoder for a batch file
    consistes of a header record of 82 bytes, several detail records of 382
    bytes and one trailer record of 91 bytes
    HACCUMULATED BENEFIT TRANSACTION FILE 20080801 20080825 0
    0
    D ar3531 ar3531 ar3531 ar3531000
    55887027260 30.000 30 5098765 20080804 000T114 120080806
    82820P30000001024511 25.00 0.00 25.00 0.00 25.00
    25.00 0.00 0.00 0.00 0.00 0.00T
    TACCUMULATED BENEFIT TRANSACTION FILE 20080801 20080825
    2894 0 0
    (See attached file: accumLoad.xsd)
    It seems to not like having multiple record formats and dies after reading
    the header. How can I tell the encoder to filter on the RECORD_TYPE so that
    it picks up the different formats.
    Best Regards,
    Michael Reynolds
    Senior Solutions Engineer - Architecture and Engineering

  • Error while unmarshalling the IDOC using an IDOC OTD in JCAPS

    Hi,
    I've created an OTD from SAP IDOC Type in SeeBeyond JCAPS 5.1.2. And when I'm trying to unmarshal the IDOC payload using OTD tester in eDesigner. And the same error is thrown at runtime also. I've tried with multiple IDOCs but no use. And when I navigate to the column number (shown in error message), always it shows stops at same segment. I don't know why. The error message thrown is
    "There was an error during unmarshal.
    less than 1 occurrences! Column Number [30289]"Can any one help me?
    Thanks in advance
    Satya Krishna

    It looks like the control data for the child segment is not getting populated. you have to find the code which populated the control data and see if it is doing what it should.

  • Unmarshaling fails after changing top level node from Array to Group

    Hi all,
    I created a custom OTD to read in the contents of a flat file. The top node was set to Array and it unmarshaled the data ok. Now one of my fellow developers changed my top node to a Group because in my otd there was not array delimiter set according to him. Now my unmarshaling fails with the following error:
    There was an error during unmarshal.
    <SOD>""<POS>"H14954510 ..." failed input match, after recordGroup[0]: left over 14290 bytes at end of data .
    Does this mean there is more data than what is expected to be received?
    When enabling Verbose Mode in my otd tester, the following out put is displayed:
    [ parse #0 ]
    [ parse 'otdInput', pos=0, end=14290, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #1 ]
    [ parse 'recordGroup', pos=0, end=14290, mandatory  ]
    [ parse group, count=0, order=0, must ]
    [ parse #2 ]
    [ parse 'header', pos=0, end=14290 ]
    [ parse group delim, Fog#13 ]
    [ - push local delim list ]
    [ - iteration #0 ]
    [ parse 'rectype', pos=0, end=14290 ]
    [ parse fixed, Fog#14, count=0 ]
    [ - match BEGIN "H1" ]
    [ - matched data 0 to 2: "H1" ]
    [ - parse: result=1 ]
    [ - parse: 'rectype' , done=false, pos=2, end=14290, last=EOD ]
    [ parse 'PackListNumber', pos=2, end=14290 ]
    [ parse fixed, Fog#458, count=0 ]
    [ - matched data 2 to 22: "4954510             " ]
    [ - parse: result=1 ]
    [ - parse: 'PackListNumber' , done=false, pos=22, end=14290, last=EOD ]
    [ parse 'SequenceNumber', pos=22, end=14290 ]
    [ parse fixed, Fog#460, count=0 ]
    [ - matched data 22 to 27: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber' , done=false, pos=27, end=14290, last=EOD ]
    [ parse 'StockNoticeNumber', pos=27, end=14290 ]
    [ parse fixed, Fog#462, count=0 ]
    [ - matched data 27 to 47: "49545100000100000000" ]
    [ - parse: result=1 ]
    [ - parse: 'StockNoticeNumber' , done=false, pos=47, end=14290, last=EOD ]
    [ parse 'CurrentDate', pos=47, end=14290 ]
    [ parse fixed, Fog#469, count=0 ]
    [ - matched data 47 to 67: "                    " ]
    [ - parse: result=1 ]
    [ - parse: 'CurrentDate' , done=false, pos=67, end=14290, last=EOD ]
    [ parse 'SequenceNumber:2', pos=67, end=14290 ]
    [ parse fixed, Fog#471, count=0 ]
    [ - matched data 67 to 72: "00001" ]
    [ - parse: result=1 ]
    [ - parse: 'SequenceNumber:2' , done=false, pos=72, end=14290, last=EOD ]
    [ parse 'RecvStoreNumber', pos=72, end=14290 ]
    [ parse fixed, Fog#473, count=0 ]
    [ - matched data 72 to 89: "0000115888       " ]
    [ - parse: result=1 ]
    [ - parse: 'RecvStoreNumber' , done=false, pos=89, end=14290, last=EOD ]
    [ parse 'SchedSendDate', pos=89, end=14290 ]
    [ parse fixed, Fog#475, count=0 ]
    [ - matched data 89 to 98: "080108   " ]
    [ - parse: result=1 ]
    [ - parse: 'SchedSendDate' , done=false, pos=98, end=14290, last=EOD ]
    [ parse 'CreationDate', pos=98, end=14290 ]
    [ parse fixed, Fog#477, count=0 ]
    [ - matched data 98 to 107: "080108   " ]
    [ - parse: result=1 ]
    [ - parse: 'CreationDate' , done=false, pos=107, end=14290, last=EOD ]
    [ parse 'CreationTime', pos=107, end=14290 ]
    [ parse fixed, Fog#677, count=0 ]
    [ - matched data 107 to 113: "091212" ]
    [ - parse: result=1 ]
    [ - parse: 'CreationTime' , done=false, pos=113, end=14290, last=EOD ]
    [ parse 'RefNoticeNum', pos=113, end=14290 ]
    [ parse fixed, Fog#547, count=0 ]
    [ - matched data 113 to 133: "4954510             " ]
    [ - parse: result=1 ]
    [ - parse: 'RefNoticeNum' , done=false, pos=133, end=14290, last=EOD ]
    [ parse 'ASN', pos=133, end=14290 ]
    [ parse fixed, Fog#679, count=0 ]
    [ - matched data 133 to 136: "ASN" ]
    [ - parse: result=1 ]
    [ - parse: 'ASN' , done=false, pos=136, end=14290, last=EOD ]
    [ parse 'TRANSACTION_ID', pos=136, end=14290 ]
    [ parse fixed, Fog#681, count=0 ]
    [ - matched data 136 to 164: "ASN08010849545100..." ]
    [ - parse: result=1 ]
    [ - parse: 'TRANSACTION_ID' , done=false, pos=164, end=14290, last=EOD ]
    [ - retry parent delimiter ]
    [ - retry failed: overshoot, del=289, pos=0 ]
    [ - parse: result=0 ]
    [ - for #2: count=-1 ]
    [ - parse: result=0 ]
    [ - parse: 'recordGroup' , done=false, pos=0, end=14290, last=EOD ]
    [ - for #1: count=0 ]
    [ - parse: result=1 ]
    [ - parse: 'otdInput' , done=false, pos=0, end=14290, last=EOD ]
    [ - for #0: count=1 ]
    What should I do to correct this?
    Thanks & Kind Regards,
    Richard

    Can you tell me a quick summary of what you do did to solve this? I am having a similar error.

  • Reg:Validating OTD

    Hi
    I am having an 850 xml file,from this I created DTD using DTD generator.I used this DTD to create OTD in JCAPS 5.1.0.while testing this OTD with EDI 850 input file it is showing an error:
    There was an error during unmarshal.
    Line 1.1: Content is not allowed in prolog.
    but it was able to process the 850 xml file successfully.
    please forward any sugesstions.
    Thanks in advance.
    Bye
    Somu.

    Hi,
    I am afraid you cannot have a direct validation of PAN numbers. Instead I would suggest you can query the personal ID infotype ( or the infotype where your functionals have assigned for recording PAN number ). If there is a valid PAN number you may continue,else work out some exception handling.
    Regards,
    Sandeep

  • How to unmarshal large XML file

    I have a large (170 MB) XML document. The size is due to a complex tree structure that is an array. It's taking approximately 45 minutes to unmarshal the document into the OTD. Not sure if there's a way to process this XML document in pieces (logical section)?? Suggestions are appreciated.

    I tried your suggestion, but get an error when I try to export the XSD node. It's expecting a TargetNamespace. Here is the beginning of the XSD that I imported:
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="MeterReadingDocument" nillable="true" type="MeterReadingDocument" />
    <xs:complexType name="MeterReadingDocument">
    <xs:complexContent mixed="false">
    <xs:extension base="XmlDocumentBase">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="1" name="Remarks" type="ArrayOfString" />
    <xs:element minOccurs="0" maxOccurs="1" name="Header" type="ExportHeader" />
    <xs:element minOccurs="0" maxOccurs="1" name="ImportExportParameters" type="ImportExportParameters" />
    <xs:element minOccurs="0" maxOccurs="1" name="Channels" type="ArrayOfChannel" />
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    If I add a targetNamespace, then I get an exception when I attempt to unmarshal the file. I get the message:
    There was an error during unmarshal.
    Expect: '{http://www.w3.org/2001/XMLSchema}MeterReadingDocument', found: 'MeterReadingDocument'
    Not sure what to do.
    Thanks.

  • Pass OTD Message in JMS

    Hi,
    In JCaps, is there a way we can pass a custom OTD message via JMS without having to unmarshal the object into a text message first?
    Thanks!

    Hi,
    Can you see your message in SXMB_MONI? Is your BPM is in running state in sxmb_moni?
    You can double click on "PE" in sxmb_moni. It will take you to the Workflow display. Then click on button Technical details,which will show you all steps and if you expand all branches..you should be able to see your error / exception message in case if any.
    Please check n let us know the result.
    Nilesh

  • XSD OTD compilefailure String literal not properly closed by double-quote

    Java CAPS 5.1.3
    I have created a XSD to describe a simple XML file. After this I created an OTD from the exported XSD file.
    This OTD is being used in a JCD. During the build of the Deployment Profile I get the error: :Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
    All steps have been preferformed within the same eDesigner and the same repository.
    I have verified the XSD file with netbeans and can not see a problem with the file itself.
    Any ideas to resolve this compile failure?
    The XSD is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:tns="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1" targetNamespace="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1">
        <xsd:element name="MessageBroker">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="IN" maxOccurs="unbounded">
                        <xsd:complexType>
                            <xsd:all>
                                <xsd:element name="MSGFN" type="xsd:string" default="IN"/>
                                <xsd:element name="DIR" type="xsd:string" default="\"/>
                                <xsd:element name="FILEMASK"
                                    type="xsd:string" default="*.DAT"/>
                                <xsd:element name="MAPID" type="xsd:string" default="MS000"/>
                                <xsd:element name="RCVPRN" type="xsd:string"/>
                                <xsd:element name="RCVPRT" type="xsd:string"/>
                                <xsd:element name="RCVPFC" type="xsd:string"/>
                                <xsd:element name="SNDPRN" type="xsd:string"/>
                                <xsd:element name="SNDPRT" type="xsd:string"/>
                                <xsd:element name="MESTYP" type="xsd:string"/>
                                <xsd:element name="MESCOD" type="xsd:string"/>
                                <xsd:element name="MESFCT" type="xsd:string"/>
                                <xsd:element name="TEST" type="xsd:boolean" nillable="true"/>
                            </xsd:all>
                        </xsd:complexType>
                    </xsd:element>
                </xsd:sequence>
                <xsd:attribute name="dateTime" type="xsd:dateTime"/>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>The complete error stack trace is:
    com.stc.codegen.framework.model.CodeGenException: error generating otd for CMap1_jcdMB_Recieve_SAP_Inbound1:Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:767)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:653)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1544)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
         at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
         at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
         at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
    Caused by: java.lang.RuntimeException: Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.javac.Javac.compile(Javac.java:227)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compileFromJarfile(BaseXsdDtdGenerator.java:254)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compile(BaseXsdDtdGenerator.java:52)
         at com.stc.otd.xsd.codegen.XsdParserGenerator.compile(XsdParserGenerator.java:182)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:166)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:90)
         at com.stc.codegen.OTDImpl.model.CollabOTDGenerator.generateCollabOTDJavaFiles(CollabOTDGenerator.java:233)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.processOTDJars(OTDCodeletFactory.java:861)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:666)
         ... 10 more

    You may need to escape the default slash "\\".
    I'd suggest importing the xsd into the jcaps xml schema editor and verifying that way and then creating the otd by node export.
    Regards,
    Rupert

  • No Connection btw JCAPS 5.1.2 and SAP ECC 6.0 whle creatining SAP/Bapi OTD

    Hello.
    We have the following problem trying to build SAP BAPI/RFC OTD.
    1) JCAPS 5.1.2. SAP ECC 6.0. Jco version 2.1.7 (also tried 2.1.8, 2.0.12 with the same result). All steps were done according to SAP BAPI/ALE eWays user guides and readmes
    2) SAP client already installed and worked ok on the same host as the JCAPS
    3) It looks like the problem is in JCo. It seems like doesn't react when we trying to connect to SAP during creation of BAPI/RFC OTDs at design time.
    Error message: partner not reached
    ERRNO 10060
    All ports are open and no restrictions imposed on JCAPS server. There are no connection log entries on SAP router host.
    4)We tried to run sample Project which goes with eway, and the following entries in logical host log file were found:
    [#|2007-06-12T11:35:13.171+0600|WARNING|IS5.1.2|STC.eWay.SAP.BAPI.com.stc.connector.sapbapiadapter.sapbapi.SAPConnector|_ThreadID=17; ThreadName=Worker: 5;|SAPConnector.isConnect(): JCO Client is null|#]
    [#|2007-06-12T11:35:13.296+0600|INFO|IS5.1.2|STC.eWay.framework.management.com.stc.connector.management.util.Alerter|_ThreadID=17; ThreadName=Worker: 5;|sendAlert(), connection info: ConnectionInfo [ collaboration: cmBAPIOutbound_jcdFlightGetList, project: prjBAPIOutbound, component: eaSAPBAPI, deployment: dpBAPIOutbound, environment: envTest, logicalhost: LogicalHost1, integration server: IntegrationSvr1 ], monitor: ObjectReference [ name: SeeBeyond:GUID={70010000-D247521E130100-AC14015A-01},Name=prjBAPIOutbounddpBAPIOutbound|prjBAPIOutbound|dpBAPIOutbound|cmBAPIOutbound_jcdFlightGetList_eaSAPBAPI ], alert message: No connection established to SAP R/3 for user $$$$$$ on host $$$$$.|#]
    [#|2007-06-12T11:35:13.312+0600|WARNING|IS5.1.2|STC.eWay.SAP.BAPI.com.stc.connector.sapbapiadapter.sapbapi.SAPConnector|_ThreadID=17; ThreadName=Worker: 5;|SAPConnector.isConnect(): JCO Client is not connected.|#]
    [#|2007-06-12T11:35:34.781+0600|INFO|IS5.1.2|STC.eWay.framework.management.com.stc.connector.management.util.Alerter|_ThreadID=17; ThreadName=Worker: 5;|sendAlert(), connection info: ConnectionInfo [ collaboration: cmBAPIOutbound_jcdFlightGetList, project: prjBAPIOutbound, component: eaSAPBAPI, deployment: dpBAPIOutbound, environment: envTest, logicalhost: LogicalHost1, integration server: IntegrationSvr1 ], monitor: ObjectReference [ name: SeeBeyond:GUID={70010000-D247521E130100-AC14015A-01},Name=prjBAPIOutbounddpBAPIOutbound|prjBAPIOutbound|dpBAPIOutbound|cmBAPIOutbound_jcdFlightGetList_eaSAPBAPI ], alert message: Connection to SAP R/3 failed for user $$$$$$ on host $$$$$$.|#]
    [#|2007-06-12T11:35:34.781+0600|SEVERE|IS5.1.2|STC.eWay.SAP.BAPI.com.stc.connector.sapbapiadapter.sapbapi.SAPConnector|_ThreadID=17; ThreadName=Worker: 5;|Unable to initialize SAP R/3 Client Connection|#]
    Any help is appreciated

    Hi Yermek.
    I guess you are placed and set all jars relates to bapi/rfc.
    You need to pass atleast one parameter from jcd which will initiates the BAPI connection.
    i.e atleast from jcd you need to send a request.
    Hope it will work...
    Thanks,
    M.P.Rao.

  • GENERIC_CODELET_GENERAL getting in jcaps 6 while building oracle otd

    getting the following error while oralce otd building. in jcaps 6..any inputs please...
    com.stc.codegen.framework.model.CodeGenException: Generic Oracle eway code generation error(ERROR_CODEGEN_GENERIC_CODELET_GENERAL)
         at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateFiles(OracleEWayCodeletFactory.java:1964)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:655)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1608)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:409)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:312)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:272)
         at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:954)
         at com.stc.codegen.driver.module.DeploymentBuildAction.access$1100(DeploymentBuildAction.java:176)
         at com.stc.codegen.driver.module.DeploymentBuildAction$2.run(DeploymentBuildAction.java:630)
         at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
    Caused by: com.stc.codegen.framework.model.CodeGenException: Exception when generating OTD code ...Exception: C:\DOCUME~1\KAKKIR~1\LOCALS~1\Temp\builds\dpINT65_Dev_Test\125269491597899\200909111448350978\Insert_Access_InfoPSInsertPSRequest.java:24720: code too large
    public void restore(DataInputStream dis) throws Exception {
    ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    (ERROR_CREATE_OTD)
         at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateOtdJarFile(OracleEWayCodeletFactory.java:2152)
         at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateFiles(OracleEWayCodeletFactory.java:1854)
         ... 10 more

    hi...
    i too getting same problem..how did u reslove this...
    please help me out...
    thanks in advance
    KK

  • Javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file:

    Hi,
    I am using jboss for deploying the webservice. when i am deploying the webservice i am getting following error.
    20:26:30,696 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss4.0/jboss-4.0.0/server/default/data/wsdl/acWebSe
    rvices.war/AddressWrapper.wsdl
    20:26:30,696 ERROR [ServiceDeployer] Cannot startup webservice for: acWebServices.war
    org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (RuntimeMBeanException: null Cau
    se: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: WEB-INF/AddressWrapper-mapping.xml)
    at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:342)
    at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
    at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
    at $Proxy25.handleNotification(Unknown Source)
    at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
    at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
    at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:378)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
    at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20
    4)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Here is my mapping.xml file :
    <?xml version="1.0" encoding="UTF-8"?>
    <java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>com.ca.ac.webservice.wrapper</package-type>
    <namespaceURI>http://com.ca.warpper</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_RequestStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:test</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <java-xml-type-mapping>
    <java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_ResponseStruct</java-type>
    <root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:testResponse</root-type-qname>
    <qname-scope>complexType</qname-scope>
    </java-xml-type-mapping>
    <service-interface-mapping>
    <service-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-interface>
    <wsdl-service-name xmlns:serviceNS="http://com.ca.warpper">serviceNS:AddressWrapper</wsdl-service-name>
    <port-mapping>
    <port-name>AddressWrapperIntfPort</port-name>
    <java-port-name>AddressWrapperIntfPort</java-port-name>
    </port-mapping>
    </service-interface-mapping>
    <service-endpoint-interface-mapping>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapperIntf</service-endpoint-interface>
    <wsdl-port-type xmlns:portTypeNS="http://com.ca.warpper">portTypeNS:AddressWrapperIntf</wsdl-port-type>
    <wsdl-binding xmlns:bindingNS="http://com.ca.warpper">bindingNS:AddressWrapperIntfBinding</wsdl-binding>
    <service-endpoint-method-mapping>
    <java-method-name>test</java-method-name>
    <wsdl-operation>test</wsdl-operation>
    <wrapped-element/>
    </service-endpoint-method-mapping>
    </service-endpoint-interface-mapping>
    </java-wsdl-mapping>
    my wsdl :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="AddressWrapper" targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="test">
    <sequence/></complexType>
    <complexType name="testResponse">
    <sequence/></complexType>
    <element name="test" type="tns:test"/>
    <element name="testResponse" type="tns:testResponse"/></schema></types>
    <message name="AddressWrapperIntf_test">
    <part name="parameters" element="tns:test"/></message>
    <message name="AddressWrapperIntf_testResponse">
    <part name="result" element="tns:testResponse"/></message>
    <portType name="AddressWrapperIntf">
    <operation name="test">
    <input message="tns:AddressWrapperIntf_test"/>
    <output message="tns:AddressWrapperIntf_testResponse"/></operation></portType>
    <binding name="AddressWrapperIntfBinding" type="tns:AddressWrapperIntf">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="test">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation></binding>
    <service name="AddressWrapper">
    <port name="AddressWrapperIntfPort" binding="tns:AddressWrapperIntfBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
    my webservice.xml
    <webservices
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:impl="http://com.myapp/ws4ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
    version="1.1">
    <webservice-description>
    <webservice-description-name>AddressWrapper</webservice-description-name>
    <wsdl-file>WEB-INF/wsdl/AddressWrapper.wsdl</wsdl-file>
    <jaxrpc-mapping-file>WEB-INF/AddressWrapper-mapping.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>AddressWrapper</port-component-name>
    <wsdl-port>AddressWrapperIntfPort</wsdl-port>
    <service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-endpoint-interface>
    <service-impl-bean>
    <servlet-link>AddressWrapperServlet</servlet-link>
    </service-impl-bean>
    </port-component>
    </webservice-description>
    </webservices>

    Problem was name of xml file in webservice.xml is diff from the actually created .xml file
    Problem solved
    Thanks

  • Cannot unmarshal an XML document to a JavaBean without its XML Schema?

    Hi,
    2 questions:
    1. I have an XML document and have the corresponding JavaBean (the 2 already exist). I tried to unmarshall the XML document using JAXB but I get a strange error of duplicate attributes/elements no matter if I use the annotations @XmlElement, @XmlAttribute etc. The code I use is simply:
    JAXBContext jc = JAXBContext.newInstance("MyClass.class");
    Unmarshaller u = jc.createUnmarshaller();
    MyClass myClass = (MyClass) u.unmarshal(new File("myxml.xml"));Do I always have to create the .xsd file of my xml, create the JavaBean using xjc and then run the above?
    2. Can I use JAXB to parse an XML file to a JavaBean but, because the xml file is a complicated one, to use xpaths to get the attributes?
    E.g. to use something like this?
    @XmlAttribute ("xpath/to/attribute")Thank you in advance for your replies.
    Best regards,
    John.

    Hi,
    2 questions:
    1. I have an XML document and have the corresponding JavaBean (the 2 already exist). I tried to unmarshall the XML document using JAXB but I get a strange error of duplicate attributes/elements no matter if I use the annotations @XmlElement, @XmlAttribute etc. The code I use is simply:
    JAXBContext jc = JAXBContext.newInstance("MyClass.class");
    Unmarshaller u = jc.createUnmarshaller();
    MyClass myClass = (MyClass) u.unmarshal(new File("myxml.xml"));Do I always have to create the .xsd file of my xml, create the JavaBean using xjc and then run the above?
    2. Can I use JAXB to parse an XML file to a JavaBean but, because the xml file is a complicated one, to use xpaths to get the attributes?
    E.g. to use something like this?
    @XmlAttribute ("xpath/to/attribute")Thank you in advance for your replies.
    Best regards,
    John.

  • Problem in Marshaling UnMarshaling with @XmlAnyElement using JAXB

    Hi all,
    I am having a class annotated with XML binding annotations. I am using this class to marshal and unmarshal XML content.
    I am having one class named Data. This class is field of some other class.
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "any"
    @XmlRootElement(name = "Data")
    public class Data {
        @XmlAnyElement
        protected Element any;
        public Element getAny() {
            return any;
        public void setAny(Element value) {
            this.any = value;
    Data class is having one element named any. any holds any kind of XML Content.
    Now when I Unmarshal XML content to java class displayed above it works fine.
    But when Marshaling java class to XML it adds some unwanted namespaces and prefixes to content in any element in Data class.
    I am using javax.xml.bind.JAXBContext class for getting javax.xml.bind.Marshaller and javax.xml.bind.Unmarshaller.
    Here are the XML Data:
    Original:
    <bh:BookRequest xmlns:bh="http://www.mybookstore.com">
         <bh:Data>
              <Books xmlns="http://www.anynamespace.com">
                   <Book>
                        <Name>Any Java Book1</Name>
                        <Price>$5.0</Price>
                        <Publication>Any Publication</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book2</Name>
                        <Price>$7.0</Price>
                        <Publication>Any Publication2</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book3</Name>
                        <Price>$6.5</Price>
                        <Publication>Any Publication3</Publication>
                   </Book>
              </Books>
         </bh:Data>
    </bh:BookRequest>After Marshaling and Unmarshaling:
    <bh:BookRequest xmlns:bh="http://www.mybookstore.com">
         <bh:Data>
              <Books:Books xmlns:Books="http://www.mybookstore.com" xmlns="http://www.anynamespace.com">
                   <Book>
                        <Name>Any Java Book1</Name>
                        <Price>$5.0</Price>
                        <Publication>Any Publication</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book2</Name>
                        <Price>$7.0</Price>
                        <Publication>Any Publication2</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book3</Name>
                        <Price>$6.5</Price>
                        <Publication>Any Publication3</Publication>
                   </Book>
              </Books:Books>
         </bh:Data>
    </bh:BookRequest>Notice the <Books> element in both XML above.
    First one is the actual content. Second one is the Marshalled XML with addtional Namespace and prefixes.
    I don't want this behaviour. *I want Marshaling and UnMarshaling not to touch Content in any element of Data Class.I want that content as it is.* Is there any way to do so?
    Any comment for this will help me.
    thanks in adavnce,
    TYPurohit.

    What exactly the message mean: Use the "-extension" switch.
    My work around is to remove the abstract="true" from abstract element. Is there a better way?
    thanks.

  • PreparedStatement problem in Oracle OTD(JCAPS 5.1.3)

    Hi,
    I encountered a problem with Oracle-eway-generated PreparedStatements when trying to build a project in enterprise designer . I know that without using any prepraredstatement, my project builds fine. Below is the text on the error pop-up window:
    java.lang.NullPointerException
    at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$ArtifactKey.hashCode(OTDCodeletFactory.java:136)
    at java.util.HashMap.hash(HashMap.java:261)
    at java.util.HashMap.containsKey(HashMap.java:339)
    at com.stc.codegen.OTDImpl.model.OTDCodeletFactory.getOtdFromBuisnessProcess(OTDCodeletFactory.java:207)
    at com.stc.codegen.OTDImpl.model.OTDCodeletFactory.createCodelets(OTDCodeletFactory.java:285)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:382)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
    at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
    at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
    at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
    at org.openide.util.Task.run(Task.java:136)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)In order to isolate the problem, I have created a simplified project which just reads a text message and writes the message into the Oracle database with the help of a PreparedStatement. I had an error as well;
    "Oracle eway code generation error(ERROR_CODEGEN_BPEL_CODELET_GENERAL)"
    Caused by: com.stc.codegen.framwork.model.CodeGenException: Error when generating OTD code ...Exception: Invalid parameter type: Class: [TEST] Object: [Param1] Param Type: [VARCHAR].(ERROR_CODEGEN_DB)(ERROR_CREATE_OTD)I think that there is a conflict between the parameters in Oracle and the parameters in the code. Somehow, Oracle eway cannot get the parameter type from database correctly.
    Is there a solution for this? I couldn't find any patches/updates for Enterprise designer or eway. Can you point me to right direction if there is any.
    Thanks in advance,
    Mete

    Hi there,
    (I think) I have found the solution. When designing OTD, I have mapped VARCHAR2 column as CHAR. Somehow, JCAPS throws a code generation exception if the field is not mapped as a CHAR for a VARCHAR2 database column.

  • JAXBContext and unmarshaling xml document to a class that came from a jar.

    I'm trying to unmarshal, code:
                   try {
                        JAXBContext jc = JAXBContext.newInstance(clazz);
                        Unmarshaller m = jc.createUnmarshaller();
                        Document doc = XmlUtils.createDom(body);
                        javax.xml.bind.JAXBElement<T> res = (javax.xml.bind.JAXBElement<T>)m.unmarshal(doc);
                        return res.getValue();
                   } catch (JAXBException e) {
                        Log.exception(e);
    now i have an ObjectFactory inside the jar that resolve (xmlRegistry) the correct type.
    but the @XmlAccessorType(XmlAccessType.FIELD) binding is not working while the class is comming from a jar.
    when i 'Link source' to my project is working fine.
    I guess it has something to do with reflection.
    the class which i want to unmarshal to looks like this:
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "GetSessionIDResponseType", propOrder = {
    "sessionID"
    public class GetSessionIDResponseType
    extends AbstractResponseType
    implements Serializable
    private final static long serialVersionUID = 12343L;
    @XmlElement(name = "SessionID")
    protected String sessionID;
    * Gets the value of the sessionID property.
    * @return
    * possible object is
    * {@link String }
    public String getSessionID() {
    return sessionID;
    * Sets the value of the sessionID property.
    * @param value
    * allowed object is
    * {@link String }
    public void setSessionID(String value) {
    this.sessionID = value;
    not the field as u can see is protected though it has getter and setter.
    anyway i must get the link source project to a jar and i cant do that cause the unmarshal is basically failing.
    any idea?
    Edited by: 813927 on Nov 20, 2010 6:10 AM

    I've overcome the problem by adding the unmarsheling code inside the jar.
    though i dont the problem i tried to set the fields to be public and it didnt work.
    very strange so far.

Maybe you are looking for

  • Does windows7 come with photo editing

    I thought this high end computer comes with all kinds of photo editing software, or maybe i just can't find it.Can anybody help

  • Multiple VISA Operations in one VI

    Hallo! Im a new programmer currently trying to create a VI for data acquisition using the Agilent 34970A DAQ unit. At the moment im trying to merge the current, voltage and temperature acquisition VIs into one VI. I have manually added the separate V

  • Getting error when i am creating and tesing data server in oracle (Physical

    Hi, Getting error when i am creating and tesing data server in oracle (Physical Architecture) in topology manager. Please anybody help me on this. Java.net.ConnectException: Connection refused: connect      at java.net.PlainSocketImpl.socketConnect(N

  • I deleted my bbm icon!

    I deleted my blackberry icon, but now I want it back, it says on blackberry world that its installed, what shall I do? Please help!

  • Putting soundtracks into an audiobook

    I have recently imported an audiobook from CD into itunes and it reads them with tracks. is there a way to put them into the audiobook category?