XML marshalling exception

Hello,
I'm using Toplink JAXB to generate XML document from java classes in a JSF application (all in JDeveloper 10.1.3).
Everything works fine in JDeveloper embedded OC4J, but when deploed to OAS 10.1.3, the application gives the following exception:
Exception [TOPLINK-25007] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.XMLMarshalExceptionException Description: A descriptor for class com.allstate.mqq.re.xao.jaxb.map.MqqrequestImpl was not found in the project]
Has anyone experienced the same problem?
Please help
Thanks
Kate

See:
Re: Toplink JAXB Marshalling
-Blaise

Similar Messages

  • Complex types with single array type element, marshaling exception

    For our JAXRPC web service, we have a complex type, as follows:
    <xs:complexType name = "SomeFault">
    <xs:sequence>
    <xs:element name = "errorMessages" type="some:ErrorMessageWSType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
    </xs:complexType>
    <xs:simpleType name = "ErrorMessageWSType">
    <xs:restriction base = "xs:NMTOKEN">
    <xs:enumeration value = "INVALID_1"/>
    <xs:enumeration value = "INVALID_2"/>
    <xs:enumeration value = "INVALID_3"/>
    </xs:restriction>
    </xs:simpleType>
    We are running into Marshaling exceptions on the server side when the response/fault complex type has a single array type field.
    weblogic.wsee.codec.CodecException: Failed to encode
    com.bea.xml.XmlException: failed to find a suitable binding type for use in marshalling object "[Lnamespace.type.ErrorMessageWSType;@693767e9".  using schema type: t=SomeFault@http://namespace/SOME/v1 java type:namespace.type.ErrorMessageWSType[]
    If I change SomeFault, by adding another element, the error goes away.
    <xs:complexType name = "SomeFault">
    <xs:sequence>
    <xs:element name = "errorMessages" type="some:ErrorMessageWSType" maxOccurs="unbounded" />
    <xs:element name = "dummyString" type="xsd:string" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    Am I doing something wrong during the wsdlc code generation or is this a known issue?
    <wsdlc srcWsdl="${wsdl.dir}/${wsdl.file.name}"
    destJwsDir="${gen.src.dir}/gen-src-jar"
    destImplDir="${main.src.dir}"
    packageName="${package.prefix}" type="JAXRPC">

    Any luck with this? I am running into the same error. Apparently, this is not an issue with Java binding, but when invoking remote EJBs, we run into this. I am running 10.1.3.1 and the error is:
    <fault>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>
    com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB@e26dbf : Could not invoke 'getIdentityInfo'; nested exception is:
         org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'ca.bc.gov.pssg.c3.webservices.identitymanagement.Identity' is not compatible; nested exception is:
         oracle.xml.parser.v2.XMLDOMException: cannot add a node belonging to a different document
    </summary>
    </part>
    <part name="detail">
    <detail>
    org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'ca.bc.gov.pssg.c3.webservices.identitymanagement.Identity' is not compatible; nested exception is:
         oracle.xml.parser.v2.XMLDOMException: cannot add a node belonging to a different document
    </detail>
    </part>
    </bindingFault>
    </fault

  • JSR 172 marshal exception for complex type

    Hi,
    Im trying to run a JSR 172 webservice but i always get marshall exception for complex types, below is my code:
    WSDL:
    <?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. -->
    <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://newsletter.kp/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://newsletter.kp/" name="NewsService">
        <ns1:Policy xmlns:ns1="http://www.w3.org/ns/ws-policy" wsu:Id="NewsPortBinding_getNewslettersRemote_WSAT_Policy">
            <ns1:ExactlyOne>
                <ns1:All>
                    <ns2:ATAlwaysCapability xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/10/wsat"></ns2:ATAlwaysCapability>
                    <ns3:ATAssertion xmlns:ns4="http://schemas.xmlsoap.org/ws/2002/12/policy" xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/10/wsat" ns1:Optional="true" ns4:Optional="true"></ns3:ATAssertion>
                </ns1:All>
            </ns1:ExactlyOne>
        </ns1:Policy>
        <types>
            <xsd:schema>
                <xsd:import namespace="http://newsletter.kp/" schemaLocation="http://localhost:8080/NewsService/News?xsd=1"></xsd:import>
            </xsd:schema>
        </types>
        <message name="getNewslettersRemote">
            <part name="parameters" element="tns:getNewslettersRemote"></part>
        </message>
        <message name="getNewslettersRemoteResponse">
            <part name="parameters" element="tns:getNewslettersRemoteResponse"></part>
        </message>
        <portType name="News">
            <operation name="getNewslettersRemote">
                <ns5:PolicyReference xmlns:ns5="http://www.w3.org/ns/ws-policy" URI="#NewsPortBinding_getNewslettersRemote_WSAT_Policy"></ns5:PolicyReference>
                <input message="tns:getNewslettersRemote"></input>
                <output message="tns:getNewslettersRemoteResponse"></output>
            </operation>
        </portType>
        <binding name="NewsPortBinding" type="tns:News">
            <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
            <operation name="getNewslettersRemote">
                <ns6:PolicyReference xmlns:ns6="http://www.w3.org/ns/ws-policy" URI="#NewsPortBinding_getNewslettersRemote_WSAT_Policy"></ns6:PolicyReference>
                <soap:operation soapAction="getNews"></soap:operation>
                <input>
                    <soap:body use="literal"></soap:body>
                </input>
                <output>
                    <soap:body use="literal"></soap:body>
                </output>
            </operation>
        </binding>
        <service name="NewsService">
            <port name="NewsPort" binding="tns:NewsPortBinding">
                <soap:address location="http://localhost:8080/NewsService/News"></soap:address>
            </port>
        </service>
    </definitions>Stub:
    public class NewsService_Stub implements NewsService, javax.xml.rpc.Stub {
        private String[] _propertyNames;
        private Object[] _propertyValues;
        public NewsService_Stub() {
            _propertyNames = new String[] { ENDPOINT_ADDRESS_PROPERTY };
            _propertyValues = new Object[] { "http://localhost:8080/NewsService/News" };
        public void _setProperty( String name, Object value ) {
            int size = _propertyNames.length;
            for (int i = 0; i < size; ++i) {
                if( _propertyNames.equals( name )) {
    _propertyValues[i] = value;
    return;
    String[] newPropNames = new String[size + 1];
    System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
    _propertyNames = newPropNames;
    Object[] newPropValues = new Object[size + 1];
    System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
    _propertyValues = newPropValues;
    _propertyNames[size] = name;
    _propertyValues[size] = value;
    public Object _getProperty(String name) {
    for (int i = 0; i < _propertyNames.length; ++i) {
    if (_propertyNames[i].equals(name)) {
    return _propertyValues[i];
    if (ENDPOINT_ADDRESS_PROPERTY.equals(name) || USERNAME_PROPERTY.equals(name) || PASSWORD_PROPERTY.equals(name)) {
    return null;
    if (SESSION_MAINTAIN_PROPERTY.equals(name)) {
    return new Boolean(false);
    throw new JAXRPCException("Stub does not recognize property: " + name);
    protected void _prepOperation(Operation op) {
    for (int i = 0; i < _propertyNames.length; ++i) {
    op.setProperty(_propertyNames[i], _propertyValues[i].toString());
    public newsletter[] getNewslettersRemote() throws java.rmi.RemoteException {
    Object inputObject[] = new Object[] {
    Operation op = Operation.newInstance( qnameoperation_getNewslettersRemote, typegetNewslettersRemote, typegetNewslettersRemoteResponse );
    _prepOperation( op );
    op.setProperty( Operation.SOAPACTION_URI_PROPERTY, "getNews" );
    Object resultObj;
    try {
    resultObj = op.invoke( inputObject );
    } catch( JAXRPCException e ) {
    Throwable cause = e.getLinkedCause();
    if( cause instanceof java.rmi.RemoteException ) {
    throw (java.rmi.RemoteException) cause;
    throw e;
    return newsletter_ArrayfromObject((Object[])((Object[]) resultObj)[0]);
    private static newsletter[] newsletter_ArrayfromObject( Object obj[] ) {
    if(obj == null) return null;
    newsletter result[] = new newsletter[obj.length];
    for( int i = 0; i < obj.length; i++ ) {
    result[i] = new newsletter();
    Object[] oo = (Object[]) obj[i];
    result[i].setBody((String )oo[0]);
    result[i].setId((Long )oo[1]);
    result[i].setImageLocation((String )oo[2]);
    result[i].setTitle((String )oo[3]);
    return result;
    protected static final QName qnameoperation_getNewslettersRemote = new QName( "http://newsletter.kp/", "getNewslettersRemote" );
    protected static final QName qnamegetNewslettersRemote = new QName( "http://newsletter.kp/", "getNewslettersRemote" );
    protected static final QName qnamegetNewslettersRemoteResponse = new QName( "http://newsletter.kp/", "getNewslettersRemoteResponse" );
    protected static final Element typegetNewslettersRemote;
    protected static final Element typegetNewslettersRemoteResponse;
    static {
    typegetNewslettersRemote = new Element( qnamegetNewslettersRemote, _complexType( new Element[] {
    }), 1, 1, false );
    typegetNewslettersRemoteResponse = new Element( qnamegetNewslettersRemoteResponse, _complexType( new Element[] {
    new Element( new QName( "", "return" ), _complexType( new Element[] {
    new Element( new QName( "", "body" ), Type.STRING, 0, 1, false ),
    new Element( new QName( "", "id" ), Type.LONG, 0, 1, false ),
    new Element( new QName( "", "imageLocation" ), Type.STRING, 0, 1, false ),
    new Element( new QName( "", "title" ), Type.STRING, 0, 1, false )}), 0, Element.UNBOUNDED, true )}), 1, 1, false );
    private static ComplexType _complexType( Element[] elements ) {
    ComplexType result = new ComplexType();
    result.elements = elements;
    return result;
    }I tested the web service with the following xml
    input:<?xml version="1.0" encoding="UTF-8"?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Header/>
    <S:Body>
    <ns2:getNewslettersRemote xmlns:ns2="http://newsletter.kp/"/>
    </S:Body>
    </S:Envelope>
    output:bq. <?xml version="1.0" encoding="UTF-8"?> \\ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> \\ <S:Body> \\ <ns2:getNewslettersRemoteResponse xmlns:ns2="http://newsletter.kp/"> \\ <return> \\ <body>teste</body> \\ <id>1</id> \\ <imageLocation>testes</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>2</id> \\ <imageLocation>mau</imageLocation> \\ <title>mau</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>3</id> \\ <imageLocation>mau</imageLocation> \\ <title>mau</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>4</id> \\ <imageLocation>mau</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>2</body> \\ <id>5</id> \\ <imageLocation>2</imageLocation> \\ <title>2</title> \\ </return> \\ <return> \\ <body>corpo</body> \\ <id>6</id> \\ <imageLocation>imagem</imageLocation> \\ <title>Titulo</title> \\ </return> \\ <return> \\ <body>corpos</body> \\ <id>7</id> \\ <imageLocation>imagem</imageLocation> \\ <title>Titulo</title> \\ </return> \\ <return> \\ <body>teste</body> \\ <id>8</id> \\ <imageLocation>teste</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>rweqrrq</body> \\ <id>9</id> \\ <imageLocation>rwe</imageLocation> \\ <title>rewq</title> \\ </return> \\ </ns2:getNewslettersRemoteResponse> \\ </S:Body> \\ </S:Envelope> \\ but i always get a:
    java.rmi.MarshalException: Invalid URI From Server: , expected: http://schemas.xmlsoap.org/soap/envelope/
            at news.NewsService_Stub.getNewslettersRemote(NewsService_Stub.java:73)
            at hello.HelloMIDlet.getTextField(HelloMIDlet.java:168)
            at hello.HelloMIDlet.getForm(HelloMIDlet.java:132)
            at hello.HelloMIDlet.startMIDlet(HelloMIDlet.java:56)
            at hello.HelloMIDlet.startApp(HelloMIDlet.java:205)
            at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:43)
            at com.sun.midp.midlet.Scheduler.schedule(Scheduler.java:374)
            at com.sun.midp.main.Main.runLocalClass(Main.java:466)
            at com.sun.midp.main.Main.main(Main.java:120)
    Can you please help me find the problem?
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    A bit late, but I'm sure others will use this answers. We encountered the same problem in our development and after some hours playing with our WSDL we found the source of the problem.
    The problem is having a field named "body" in the Object this apparently doesn't work well with SOAP we guess because of the Envelope having also a Body.
    So the solution is changing the field body to something like msgBody.
    Regards,
    Raanan Nevet

  • XML Parser Exception in Install of AIA 11.1.1.5 on SOA 11.1.1.5

    I am attempting to install AIA Foundation Pack on a SOA domain and continually encounter an XML parsing exception error as the installer is attempting to install WSM security policies. Here are the key details:
    AIA version = 11.1.1.5
    SOA Suite = 11.1.1.5
    WebLogic = 10.3.5
    Operating System = Fedora14 (a home lab machine but I don't think this is an OS issue)
    The error is encountered about 17 minutes into the lengthy process. Just before the error appears in the installation log, the following message appears indicating roughly what step is being performed:
    [zip] Building zip: /opt/oraclemw/aia11115/aia_instances/dev1/tmp/aia_security_policies.zip
    The core error messages are:
    [exec] SEVERE: WSM-01605 XML parser exception
    [exec] oracle.xml.parser.v2.XMLParseException: Expected 'EOF'.
    [exec] at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
    The python modules being executed by the WLST scripting tool at the time of the failure are:
    [exec] Problem invoking WLST - Traceback (innermost last):
    [exec] File "/opt/oraclemw/aia11115/Infrastructure/Install/AID/lib/py/importpolicy.py", line 29, in ?
    [exec] File "/opt/oraclemw/oracle_common/common/wlst/wsmManage.py", line 719, in importRepository
    [exec] File "/opt/oraclemw/oracle_common/common/wlst/lib/ora_util.py", line 51, in raiseScriptingException
    [exec] OracleScriptingException: None
    Finally, the outer XML files being used as input for the deployer that seems to be running at the time are:
    /opt/oraclemw/aia11115/Infrastructure/Install/AID/AIAExecuteDriver.xml
    with references to lines 221 and 64.
    The problem occurs whether I try to use Java JDK 16.0.20 or JRockit R28.2.0 as the JRE when running the AIA installer. (The WebLogic domain is configured to use JRockit).
    Any suggestions? Is there a library conflict being picked up between different releases of XercesImpl? I would hope there isn't actually a bad XML file in the AIA artifacts or WSM (Web Service Management) policies being deployed.

    HI
    How this issue was resolved? Please explain in detail. I am facing the same issue.
    Regards
    Arun

  • Code:com.bea.xml.marshal.XmlEncodingException String:Unrecognized element

    I am connecting to an external web service. However, I am getting the XmlEncodingException.
    Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:com.bea.xml.marshal.XmlEncodingException
    String:Unrecognized element ...
    Here is the stack trace.
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(Ljava.lang
    .reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(ServiceControlImpl.jcs:12
    37)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(Ljava.lang.Obje
    ct;[Ljava.lang.Object;)Ljava.lang.Object;(DispMethod.java:373)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Ljava.lang.Object
    ;Ljava.lang.String;Lcom.bea.wlw.runtime.core.dispatcher.DispMethod;[Ljava.lang.O
    bject;)Ljava.lang.Object;(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Lcom.bea.wlw.runt
    ime.core.dispatcher.DispMethod;[Ljava.lang.Object;)Ljava.lang.Object;(Invocable.
    java:396)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Lcom.bea.wlw.runt
    ime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(Inv
    ocable.java:248)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(Lcom.bea.wlw.ru
    ntime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(J
    csContainer.java:84)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(Lcom.bea.w
    lw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResu
    lt;(BaseContainerBean.java:198)
    at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(Lcom.bea.wlw.r
    untime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(
    SLSBContainerBean.java:103)
    at ...
    at com.bea.wlwgen.StatelessContainer_ngdnix_ELOImpl.findTdaByZip(Lcom.be
    a.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeR
    esult;(StatelessContainer_ngdnix_ELOImpl.java:153)
    at
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(Lcom.bea
    .wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(B
    aseDispatcherBean.java:153)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(Lcom.bea.wlw.
    runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(BaseDi
    spatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(Lcom.bea.wlw.
    runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(SyncDi
    spatcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Lco
    m.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Respon
    se;(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Lcom.be
    a.wlw.runtime.core.dispatcher.DispFile;Lcom.bea.wlw.runtime.core.request.Request
    ;)Lcom.bea.wlw.runtime.core.request.Response;(Dispatcher.java:161)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(Lcom.bea
    .wlw.runtime.core.request.Request;)Ljava.lang.Object;(ServiceHandleImpl.java:436
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl._invoke(Lcom.bea.wlw
    .runtime.core.request.ExecRequest;)Ljava.lang.Object;(WlwProxyImpl.java:326)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(Ljava.lang.Ob
    ject;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(WlwProxyIm
    pl.java:315)
    Any suggestions or ideas?

    Hey any solution for this problem ..
    I am having it.
    I am testing the webservice from a simple client and the test is succesfull but when I am running through workshop is gives me
    ata(); Failure=com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:com.bea.xml.marshal.XmlEncodingException
    String:Unrecognized element item - expected
    Please help me in this.

  • Marshal Exception raised when using an union type

    Hi,
    I am using jdk1.4.0 and I am experiencing a problem when using union types. I was wondering if anyone would have experienced the same problem ? Or would have any idea of a possible workaround ?
    Here is the code :
    =========
    module X208 {
    typedef string AE_form1Type;
    typedef long AE_form2Type;
    enum AETypeChoice { form1Choice, form2Choice };
    union AEType
    switch(AETypeChoice) {
    case form1Choice:
              AE_form1Type form1;
    case form2Choice:
              AE_form2Type form2;
    module HelloApp {
         interface Hello
              string sayHello(in any param);
    =========
    My code, in the client, looks like this :
    AEType ae = new AEType();
    ae.form2(14);
    Any many = orb.create_any();
    AETypeHelper.insert(many, ae);
    string Hello = helloImpl.sayHello(many);     
    I have noticed that, each time I send an AEType form1 (a String) in the Any, it works fine. But when I try send an AEType form2, it fails with a Marshal exception (see below).
    I tried to switch form1 and form2 (actually their types : string and integer) to see if the problem was linked to the integer, but it failed the same on form2.
    When checking the bug database, there is one bug which might be close to this, but it's supposed to be fixed now (#4518206).
    Did someone experience the same problem ? Am I doing something wrong here ?
    Thanks for your help !
    ERROR : org.omg.CORBA.MARSHAL: underflow called with grow strategy vmcid: SUN minor code: 202 completed: No
    org.omg.CORBA.MARSHAL: underflow called with grow strategy vmcid: SUN minor code: 202 completed: No
    at com.sun.corba.se.internal.iiop.BufferManagerReadGrow.underflow(BufferManagerReadGrow.java:25)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_1.grow(CDRInputStream_1_1.java:73)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_2.alignAndCheck(CDRInputStream_1_2.java:28)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_octet_array(CDRInputStream_1_0.java:567)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.getConvertedChars(CDRInputStream_1_0.java:2285)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.internalReadString(CDRInputStream_1_0.java:469)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.readStringOrIndirection(CDRInputStream_1_0.java:460)
    at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_string(CDRInputStream_1_0.java:520)
    at com.sun.corba.se.internal.iiop.CDRInputStream.read_string(CDRInputStream.java:197)
    at com.sun.corba.se.internal.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2430)
    at com.sun.corba.se.internal.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2679)
    at com.sun.corba.se.internal.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2632)
    at com.sun.corba.se.internal.corba.AnyImpl.write_value(AnyImpl.java:581)
    at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_any(CDROutputStream_1_0.java:534)
    at com.sun.corba.se.internal.iiop.CDROutputStream.write_any(CDROutputStream.java:235)
    at HelloApp._HelloStub.sayHello(_HelloStub.java:19)
    at HelloClient.main(HelloClient.java:37)

    I have similar problem. Except that mine throws a null exception write after com.sun.corba.se.internal.corba.AnyImpl.write_value(AnyImpl.java:581).
    do you have a workaround?

  • JAXB 2.0 Marshaling Exception

    Hello,
    I ran into an error when trying marshal a java class. NullPointerException is caught when this line of code is executed. I previously used XJC to generate the Java classes including ObjectFactory.java in textjaxb.student package.
    JAXBContext jaxbContext = JAXBContext.newInstance("testjaxb.student");After searching for solution, I tried to use different method for loading ObjectFactory class into .netInstance(...);. I tried using thread/context classloader, testjaxb.student.ObjectFactory.class as parameter. But the problem still persist. Any suggestion will be helpful.
    The stacktrace shows the following:
    Exception in thread "main" java.lang.NullPointerException
            at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287)
            at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:260)
            at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100)
            at com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50)
            at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.size(ElementPropertyInfoImpl.java:42)
            at java.util.AbstractList$Itr.hasNext(AbstractList.java:416)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
            at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
            at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
            at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:63)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:232)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:201)
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:352)
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:350)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:349)
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:215)
            at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
            at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
            at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:124)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
            at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
            at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
            at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
            at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)Thank you very much.
    T-ra

    I had the same problem and resolved it by removing the elementFormDefault="qualified" form the schema tag.
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://www.calpers.ca.gov/soa/2006-12-21/CommonData.xsd"
    targetNamespace="http://www.calpers.ca.gov/soa/2006-12-21/CommonData.xsd"
    elementFormDefault="qualified">
         <xs:element name="commonData" type="tns:CommonDataType"/>
         <xs:complexType name="CommonDataType">
              <xs:sequence>
                   <xs:element name="defaultPayloadData" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>

  • Marshaling Exception

    Hi ,i am getting the fallowing exception when i invoke an EJB Running on WebLogic9.2 from Sun One Web Server6.2 .
    and i put the wlclient.jar and weblogic.jar in the WEB-INF/LIB folder of my Aplication.
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:100)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sp.creditmodel.session._ScoringSession_Stub.authenticate(Unknown Source)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sp.creditmodel.delegate.ScoringDelegate.authenticate(Unknown Source)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sp.creditmodel.action.LoginAction.execute(Unknown Source)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:413)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:225)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:293)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.security.AccessController.doPrivileged(Native Method)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:289)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    [10/Mar/2007:21:07:12] failure ( 1960): for host 192.168.24.140 trying to POST /cm/login.do;jsessionid=C16157A7B6042210C4678A72EE091CC9, service-j2ee reports: ApplicationDispatcher[cm] WEB2649: Servlet.service() for servlet jsp threw exception
    java.security.AccessControlException: access denied (java.security.SecurityPermission getHttpRequestBase)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
    at java.security.AccessController.checkPermission(AccessController.java:401)
    at org.apache.catalina.connector.HttpRequestFacade.getHttpRequestBase(HttpRequestFacade.java:257)
    at org.apache.catalina.core.ApplicationDispatcher.getRequestBase(ApplicationDispatcher.java:1115)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:759)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:471)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:123)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:138)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:374)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1054)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:292)
    at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:268)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:329)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:293)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:289)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)
    [10/Mar/2007:21:07:12] failure ( 1960): for host 192.168.24.140 trying to POST /cm/login.do;jsessionid=C16157A7B6042210C4678A72EE091CC9, service-j2ee reports: StandardWrapperValve[action]: WEB2792: Servlet.service() for servlet action threw exception
    java.security.AccessControlException: access denied (java.security.SecurityPermission getHttpRequestBase)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
    at java.security.AccessController.checkPermission(AccessController.java:401)
    at org.apache.catalina.connector.HttpRequestFacade.getHttpRequestBase(HttpRequestFacade.java:257)
    at org.apache.catalina.core.ApplicationDispatcher.getRequestBase(ApplicationDispatcher.java:1115)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:759)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:471)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:123)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:138)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:374)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1054)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:292)
    at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:268)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:329)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:293)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:289)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: Caused by: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.lang.Class.newInstance0(Class.java:308)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.lang.Class.newInstance(Class.java:261)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:90)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:105)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.java:314)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    [10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: ... 21 more

    Have you made any changes to the Java Security Manager permissions in your web server instance's config/server.policy file?
    Until we identify what the problem is, you could temporarily disable the Java Security Manager (by commenting out the appropriate lines in your config/server.xml file)
    e.g.
    <!--
    <JVMOPTIONS>-Djava.security.manager</JVMOPTIONS> 
    <JVMOPTIONS>-Djava.security.policy=/path/https-foo/config/server.policy</JVMOPTIONS>
    -->

  • Jabx xsd to classes and xml marshalling issues due to two namespaces

    Hello everyone,
    I am stack using jaxb and I ask for some help.
    My final objective is being able of marshalling and unmarshalling xml-s that follows the structure of this xsd:
    http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd
    I have already generated the classes with xjc:
         xjc.bat VoIP3.5-A.0.1.xsd
    This generates the following class tree:
    parsing a schema...
    compiling a schema...
    org\ipdr\namespaces\voip\IPDRVoIPType.java
    org\ipdr\namespaces\voip\ObjectFactory.java
    org\ipdr\namespaces\voip\package-info.java
    org\ipdr\namespaces\ipdr\IPDRDoc.java
    org\ipdr\namespaces\ipdr\IPDRDocEnd.java
    org\ipdr\namespaces\ipdr\IPDRType.java
    org\ipdr\namespaces\ipdr\ObjectFactory.java
    org\ipdr\namespaces\ipdr\package-info.java
    Note that if you are behind a proxy and it is not configured it may fail.
    This is fine for now. Next step, I have the following xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Assumptions:
    Call is being made from cell phone to IP
    Call is terminated (normally) by the called side
    Optional and Conditional fields are included based on the type of call made
    Fields that did not include specific values (in the ipdr spec) have been
    populated with information based on SS7 equivalents
    IMSI/ESN/PIN/HLRID values are fictitious -->
    <IPDRDoc xmlns="http://www.ipdr.org/namespaces/ipdr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd"
    IPDRRecorderInfo ="apex.virtualsummit.com"
    version="3.5-A.0.1">
    <IPDR>
    <seqNum>123</seqNum>
    <IPDRCreationTime>2000-02-01T07:00:00Z</IPDRCreationTime>
    <subscriberId>Vendor Phone-1</subscriberId>
    <ipAddress>172.17.17.10</ipAddress>
    <hostName>cisco.gateway.234</hostName>
    <imsiIngress>247478674378574</imsiIngress>
    <esnIngress>33375629401</esnIngress>
    <serviceConsumerType>EU</serviceConsumerType>
    <pin>6294621</pin>
    <startAccessTime>2000-11-25T09:45:30Z</startAccessTime>
    <startTime>2000-11-25T09:45:45Z</startTime>
    <endTime>2000-11-25T10:00:30</endTime>
    <timeZoneOffset>-480</timeZoneOffset> <callDuration>885</callDuration>
    <type>V</type>
    <feature>H</feature>
    <incomingCodec>G711Alaw</incomingCodec>
    <disconnectReason>normalCallClearing</disconnectReason>
    <averageLatency>145</averageLatency>
    <ani>214-924-0258</ani>
    <originalDestinationId>408-830-3711</originalDestinationId> <ipAddressEgressDevice>199.171.210.211</ipAddressEgressDevice>
    <portNumber>17779</portNumber>
    <homeLocationIdIgress>FF01ABD6</homeLocationIdIgress>
    <callCompletionCode>200</callCompletionCode>
    <uniqueCallId>id45678</uniqueCallId>
    </IPDR>
    </IPDRDoc>
    And I have the following classes:
    public class main {
         * @param args
         public static void main(String[] args) {
              Manager mng = new Manager();          
              mng.marshall();
              System.out.println("Agur mundua!");
    And:
    public class Manager {
         public void marshall() {
              try {
                   JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.voip", this.getClass()
                                       .getClassLoader());
                   Unmarshaller u = voip.createUnmarshaller();
                   // IPDRVoIPType po = (IPDRVoIPType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // IPDRType po = (IPDRType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // this implementation is a part of the API and convenient for
                   // trouble-shooting,
                   // as it prints out errors to System.out
                   u
                             .setEventHandler(new javax.xml.bind.helpers.DefaultValidationEventHandler());
                   // IPDRVoIPType structure = (IPDRVoIPType)u.unmarshal( new
                   // FileInputStream(
                   // "D:\\S3Lab-Projects\\Future Internet\\enviroment\\files\\example.xml"
                   JAXBElement<IPDRVoIPType> st = (JAXBElement) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRVoIPType.class);
                   IPDRVoIPType vtype = st.getValue();
                   System.out.println("ok");
              } catch (JAXBException je) {
                   je.printStackTrace();
    It gives me an exception saying that there are unexpected elements.
    If I use:
    JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.ipdr", this.getClass()
                                       .getClassLoader());
    JAXBElement<IPDRDoc> st = (IPDRDoc) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRDoc.class);
                   IPDRDoc vtype = st.getValue();
    I am able to read the attributes of IPDRDoc but not the ones from VoIP.
    My analysis is:
         The xml file is a IPDRDoc with VoIP3.5-A.0.1 elements
         JAXB does not know how to deal with xml that are spitted in various classes
         I cannot change any xsd files because they are standars
    So...
         What can I do to be able to marshall and unmarshall IPDRDoc xml with VoIP attributes generating the java classes from the standard xsd?
    Thank you for your time

    Hello everyone,
    I am stack using jaxb and I ask for some help.
    My final objective is being able of marshalling and unmarshalling xml-s that follows the structure of this xsd:
    http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd
    I have already generated the classes with xjc:
         xjc.bat VoIP3.5-A.0.1.xsd
    This generates the following class tree:
    parsing a schema...
    compiling a schema...
    org\ipdr\namespaces\voip\IPDRVoIPType.java
    org\ipdr\namespaces\voip\ObjectFactory.java
    org\ipdr\namespaces\voip\package-info.java
    org\ipdr\namespaces\ipdr\IPDRDoc.java
    org\ipdr\namespaces\ipdr\IPDRDocEnd.java
    org\ipdr\namespaces\ipdr\IPDRType.java
    org\ipdr\namespaces\ipdr\ObjectFactory.java
    org\ipdr\namespaces\ipdr\package-info.java
    Note that if you are behind a proxy and it is not configured it may fail.
    This is fine for now. Next step, I have the following xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Assumptions:
    Call is being made from cell phone to IP
    Call is terminated (normally) by the called side
    Optional and Conditional fields are included based on the type of call made
    Fields that did not include specific values (in the ipdr spec) have been
    populated with information based on SS7 equivalents
    IMSI/ESN/PIN/HLRID values are fictitious -->
    <IPDRDoc xmlns="http://www.ipdr.org/namespaces/ipdr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd"
    IPDRRecorderInfo ="apex.virtualsummit.com"
    version="3.5-A.0.1">
    <IPDR>
    <seqNum>123</seqNum>
    <IPDRCreationTime>2000-02-01T07:00:00Z</IPDRCreationTime>
    <subscriberId>Vendor Phone-1</subscriberId>
    <ipAddress>172.17.17.10</ipAddress>
    <hostName>cisco.gateway.234</hostName>
    <imsiIngress>247478674378574</imsiIngress>
    <esnIngress>33375629401</esnIngress>
    <serviceConsumerType>EU</serviceConsumerType>
    <pin>6294621</pin>
    <startAccessTime>2000-11-25T09:45:30Z</startAccessTime>
    <startTime>2000-11-25T09:45:45Z</startTime>
    <endTime>2000-11-25T10:00:30</endTime>
    <timeZoneOffset>-480</timeZoneOffset> <callDuration>885</callDuration>
    <type>V</type>
    <feature>H</feature>
    <incomingCodec>G711Alaw</incomingCodec>
    <disconnectReason>normalCallClearing</disconnectReason>
    <averageLatency>145</averageLatency>
    <ani>214-924-0258</ani>
    <originalDestinationId>408-830-3711</originalDestinationId> <ipAddressEgressDevice>199.171.210.211</ipAddressEgressDevice>
    <portNumber>17779</portNumber>
    <homeLocationIdIgress>FF01ABD6</homeLocationIdIgress>
    <callCompletionCode>200</callCompletionCode>
    <uniqueCallId>id45678</uniqueCallId>
    </IPDR>
    </IPDRDoc>
    And I have the following classes:
    public class main {
         * @param args
         public static void main(String[] args) {
              Manager mng = new Manager();          
              mng.marshall();
              System.out.println("Agur mundua!");
    And:
    public class Manager {
         public void marshall() {
              try {
                   JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.voip", this.getClass()
                                       .getClassLoader());
                   Unmarshaller u = voip.createUnmarshaller();
                   // IPDRVoIPType po = (IPDRVoIPType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // IPDRType po = (IPDRType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // this implementation is a part of the API and convenient for
                   // trouble-shooting,
                   // as it prints out errors to System.out
                   u
                             .setEventHandler(new javax.xml.bind.helpers.DefaultValidationEventHandler());
                   // IPDRVoIPType structure = (IPDRVoIPType)u.unmarshal( new
                   // FileInputStream(
                   // "D:\\S3Lab-Projects\\Future Internet\\enviroment\\files\\example.xml"
                   JAXBElement<IPDRVoIPType> st = (JAXBElement) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRVoIPType.class);
                   IPDRVoIPType vtype = st.getValue();
                   System.out.println("ok");
              } catch (JAXBException je) {
                   je.printStackTrace();
    It gives me an exception saying that there are unexpected elements.
    If I use:
    JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.ipdr", this.getClass()
                                       .getClassLoader());
    JAXBElement<IPDRDoc> st = (IPDRDoc) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRDoc.class);
                   IPDRDoc vtype = st.getValue();
    I am able to read the attributes of IPDRDoc but not the ones from VoIP.
    My analysis is:
         The xml file is a IPDRDoc with VoIP3.5-A.0.1 elements
         JAXB does not know how to deal with xml that are spitted in various classes
         I cannot change any xsd files because they are standars
    So...
         What can I do to be able to marshall and unmarshall IPDRDoc xml with VoIP attributes generating the java classes from the standard xsd?
    Thank you for your time

  • XML Loader Exception

    I get the following exception whenever I run the XMLLoader class.
    Error loading stylesheet file:/C:/Documents and Settings/mfortner/jbproject/MedlineXMLLoader/medline.xslt
    oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'INSERT'.
    at oracle.xml.parser.v2.XSLStylesheet.error(XSLStylesheet.java:1403)
    at oracle.xml.parser.v2.XSLStylesheet.processResult(XSLStylesheet.java:615)
    at oracle.xml.parser.v2.XSLStylesheet.initStylesheet(XSLStylesheet.java:421)
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:217)
    at XMLLoader.main(XMLLoader.java:21)
    00001: Inserted.
    Processed 1Documents
    I've tried moving the xsl:version attribute, putting it in it's own <?xsl-stylesheet ?> tag didn't work either. I've tried removing it, same problem. I've tried switching xmlparserv2.jar files (there are two files with different file sizes that come in the xdk) -- that didn't work either.
    I'm running the XMLLoader with the following parameters:
    -file sampmed2.xml -connName medline -transform medline.xslt -docTag MedlineCitationSet
    Any suggestions????
    The XSLT I'm using looks like this.
    <?xml version="1.0"?>
    <INSERT xsl:version="1.0" xmlns:xsl="http://www.w3.org/XSL/Transform">
    <!-- Process Medline Records -->
    <ROWSET table="medline_records">
    <xsl:for-each select="MedlineCitation">
    <ROW>
    <MedlineID><xsl:value-of select="MedlineID"/></MedlineID>
    <PMID><xsl:value-of select="PMID"/></PMID>
    <DateCreated><xsl:apply-templates select="DateCreated" mode="processDateCreated"/></DateCreated>
    <DateCompleted><xsl:apply-templates select="DateCompleted" mode="processDateCompleted"/></DateCompleted>
    <DateRevised><xsl:apply-templates select="DateRevised" mode="processDateRevised"/></DateRevised>
    <Journal><xsl:apply-templates select="Journal" mode="processJournal"/></Journal>
    <ArticleTitle><xsl:value-of select="ArticleTitle"/></ArticleTitle>
    <AuthorList><xsl:value-of select="AuthorList"/></AuthorList>
    <Country><xsl:value-of select="MedlineJournalInfo"/></Country>
    <MedlineTA><xsl:value-of select="MedlineJournalInfo/MedlineTA"/></MedlineTA>
    <MedlineCode><xsl:value-of select="MedlineJournalInfo/MedlineCode"/></MedlineCode>
    <NlmUniqueID><xsl:value-of select="MedlineJournalInfo/NlmUniqueID"/></NlmUniqueID>
    <CitationSubset><xsl:value-of select="CitationSubset"/></CitationSubset>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    <!-- Process Date Elements (DateCreated, DateCompleted, and DateRevised -->
    <xsl:template select="DateCreated" mode="processDateCreated">
    <xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
    </xsl:template>
    <xsl:template select="DateCompleted" mode="processDateCompleted">
    <xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
    </xsl:template>
    <xsl:template select="DateRevised" mode="processDateRevised">
    <xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
    </xsl:template>
    <!-- Process Journal Elements -->
    <xsl:template select="JOURNAL" mode="processJournal">
    ISSN<xsl:value-of select="ISSN"/> VOLUME<xsl:value-of select="Volume"/> PAGES<xsl:value-of select=""/>
    </xsl:template>
    <!-- Process Medline Abstract Records -->
    <ROWSET table="medline_abstracts">
    <xsl:for-each select="MedlineCitation">
    <MedlineID><xsl:value-of select="MedlineID"/></MedlineID>
    <Abstract><xsl:value-of select="AbstractText"/></Abstract>
    </xsl:for-each>
    </ROWSET>
    </INSERT>
    And the XML I'm loading looks like this:
    <MedlineCitationSet>
    <MedlineCitation>
    <MedlineID>96264942</MedlineID>
    <PMID>8655018</PMID>
    <DateCreated>
    <Year>1996</Year>
    <Month>07</Month>
    <Day>30</Day>
    </DateCreated>
    <DateCompleted>
    <Year>1996</Year>
    <Month>07</Month>
    <Day>30</Day>
    </DateCompleted>
    <DateRevised>
    <Year>2000</Year>
    <Month>12</Month>
    <Day>18</Day>
    </DateRevised>
    <Article>
    <Journal>
    <ISSN>0017-0011</ISSN>
    <JournalIssue>
    <Volume>67</Volume>
    <Issue>1</Issue>
    <PubDate>
    <Year>1996</Year>
    <Month>Jan</Month>
    </PubDate>
    </JournalIssue>
    </Journal>
    <ArticleTitle>[Effect of fetal and neonatal growth on the occurrence of some diseases in adults]</ArticleTitle>
    <Pagination>
    <MedlinePgn>34-6</MedlinePgn>
    </Pagination>
    <Abstract>
    <AbstractText>The findings of many authors show that reduced fetal growth is followed by increased mortality from cardiovascular disease in adult life. They are further evidence that cardiovascular disease originates, among other risk factors, through programming of the bodies structure and metabolism during fetal and early post-natal life. Wrong maternal nutrition may have an important influence on programming.</AbstractText>
    </Abstract>
    <Affiliation>Katedry i ZakEadu Chemii i Analizy LekC3w, AM w Katowicach.</Affiliation>
    <AuthorList>
    <Author>
    <LastName>Jendryczko</LastName>
    <FirstName>A</FirstName>
    <Initials>A</Initials>
    </Author>
    <Author>
    <LastName>Poreba</LastName>
    <FirstName>R</FirstName>
    <Initials>R</Initials>
    </Author>
    </AuthorList>
    <Language>pol</Language>
    <PublicationTypeList>
    <PublicationType>Journal Article</PublicationType>
    <PublicationType>Retracted Publication</PublicationType>
    <PublicationType>Review</PublicationType>
    <PublicationType>Review, Tutorial</PublicationType>
    </PublicationTypeList>
    <VernacularTitle>WpEyw przebiegu rozwoju pEodu i noworodka na ujawnienie sie niektC3rych chorC3b okresu dorosEego.</VernacularTitle>
    </Article>
    <MedlineJournalInfo>
    <Country>POLAND</Country>
    <MedlineTA>Ginekol Pol</MedlineTA>
    <MedlineCode>FR3</MedlineCode>
    <NlmUniqueID>0374641</NlmUniqueID>
    </MedlineJournalInfo>
    <CitationSubset>IM</CitationSubset>
    <CommentsCorrections>
    <CommentIn>
    <RefSource>Ginekol Pol. 1998 Jul;69(7):561</RefSource>
    </CommentIn>
    <RetractionIn>
    <RefSource>Ginekol Pol 1998 Jul;69(7):559-60</RefSource>
    </RetractionIn>
    </CommentsCorrections>
    <MeshHeadingList>
    <MeshHeading>
    <Descriptor>Adult</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Cardiovascular Diseases</Descriptor>
    <SubHeading>etiology</SubHeading>
    <SubHeading MajorTopicYN="Y">mortality</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Child Development</Descriptor>
    <SubHeading MajorTopicYN="Y">physiology</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>English Abstract</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Fetal Development</Descriptor>
    <SubHeading MajorTopicYN="Y">physiology</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Fetal Growth Retardation</Descriptor>
    <SubHeading>complications</SubHeading>
    <SubHeading MajorTopicYN="Y">physiopathology</SubHeading>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Human</Descri ptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Infant, Newborn</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Nutrition</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Risk Factors</Descriptor>
    </MeshHeading>
    <MeshHeading>
    <Descriptor>Survival Rate</Descriptor>
    </MeshHeading>
    </MeshHeadingList>
    <NumberOfReferences>11</NumberOfReferences>
    </MedlineCitation>
    <MedlineCitation>...</MedlineCitation>
    </MedlineCitationSet>

    You have a typo in your namespace declaration:
    xmlns:xsl="http://www.w3.org/XSL/Transform"
    should be
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  • XSLT Transform in XML Signature: Exception

    Hello,
    I have following problem with an XSLT tranform in my XML signature. Here is the code I use to add XSLT to signature:
    main() {
    DOMStructure stylesheet = new DOMStructure( getStylesheet() );
    XSLTTransformParameterSpec spec = new XSLTTransformParameterSpec( stylesheet );
    transforms.add( fac.newTransform( Transform.XSLT, spec ) );
    private Element getStylesheet() throws Exception {
         String stylesheet = //"<?xml version=\"1.0\"?>" +
                        "<xslt:stylesheet version=\"1.0\" xmlns:xslt=\"http://www.w3.org/1999/XSL/Transform\">\n" +
                        " <xsl:include href=\"http://extern XSLT\" />\n" +
                        " <xslt:template match=\"/\">" +
                        " <xsl:apply-imports />" +
                        " </xslt:template>" +
                        "</xslt:stylesheet>\n";
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
         //dbf.setValidating( true );
         return dbf.newDocumentBuilder().parse( new ByteArrayInputStream( stylesheet.getBytes() ) ).getDocumentElement();
    I get following exception:
    javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: com.sun.org.apache.xml.internal.security.transforms.TransformationException: Cannot find xslt:stylesheet in Transform
    Original Exception was com.sun.org.apache.xml.internal.security.transforms.TransformationException: Cannot find xslt:stylesheet in Transform
         at org.jcp.xml.dsig.internal.dom.DOMReference.transform(Unknown Source)
         at org.jcp.xml.dsig.internal.dom.DOMReference.digest(Unknown Source)
         at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.digestReference(Unknown Source)
         at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(Unknown Source)
    In google I cannot find any details what can be wrong.
    Any suggestions?
    Thanks in advance,
    errno

    Thanks for your response. Sorry - I tried both versions with xslt and xsl - doesn't worked -> the error in my post is actually caused through the multiple changes of this part of code. Here once again:
    private Element getStylesheet() throws Exception {
              String stylesheet = //"<?xml version=\"1.0\"?>" +
                                       "<xslt:stylesheet version=\"1.0\" xmlns:xslt=\"http://www.w3.org/1999/XSL/Transform\">\n" +
                                       " <xslt:include href=\"external XSLTl\" />\n" +
                                       " <xslt:template match=\"/\">" +
                                       " <xslt:apply-imports />" +
                                       " </xslt:template>" +
                                       "</xslt:stylesheet>\n";
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              //dbf.setValidating( true );
              return dbf.newDocumentBuilder().parse( new ByteArrayInputStream( stylesheet.getBytes() ) ).getDocumentElement();
    Thanks,
    errno

  • XML Parser Exception on Punch Out Setup Request

    I am on the supplier side of the procurement process. Recently I was tasked with bringing on a new buying group, but we have encountered a strange issue. The buyer set up my company in their ERP system, however they are getting an error when trying to punch out to my website...which is listed below.
    Error Code: 400 Invalid XML Format In Login Response Document Unable to parse the Login Response XML.
    XMLParserException
    oracle.xml.parser.v2.XMLParseException: End tag does not match start tag 'meta'.
    at oracle.xml.parser.v2.XMLError.flushErrors1
    After some investigation, I am confident the problem resides in the buyers BrowserFormPost URL. The problem seems to be that instead of using "&amp;" for ampersand between the URL variables, it is passing in the & symbol (& is a protected character in XML), which is causing the Oracle XML parser to throw this exception. As a result, the set up request is never getting to me.
    The buyer has opened a couple of tickets now with Oracle support, but both times the ticket has been closed and the buyer has been instructed to contact the supplier (me). I don't know enough about the buyer side Oracle system to instruct them on how to fix this issue. Any help would be greatly appreciated.

    Hi Rakesh,
    You need to have an S-User ID to access SAP Notes. For your convenience, I am pasting the content of SAP Note 954035.
    Process, block and CO could not be created in GP
    Symptom
    After upgrade of SAP-EU component to version 7.0 SP8 in Guided Procedures process, block and callable object could not be created. On design time screen   appears error message:
    com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
    During attempt to start process through the Runtime screen you will get an error message:
    Cannot load callable object container:
    Failed to get Related Model Object for the object
    com.sap.caf.eu.gp.ui.actions.decpage.
    CDecisionPageInterfaceViewdecisionPageUsage1,relation View
    In SP9, the following message could be found:
    Failed to get Related Model Object for the object com.sap.caf.eu.gp.ui.co.exec.decision.COExecDecision
    Proceed as stated for SP8.
    Other terms
    This is WebDynpro problem caused by an inconsistency of versions.
    Solution
          1. Redeploy the SCA SAP-EU (if redeployment does not help undeploy and deploy again) components:
              o caf/eu/gp/ui/dt/comp/cons,
              o caf/eu/gp/ui/dt/comp and
              o caf/eu/gp/ui/actions  from software component SAP-EU
    or
          2. Apply the SP8 patch 1 if you upgrade to SP8. Both components mentioned below will be updated:
              o caf/eu/gp/ui/dt/comp/cons
              o caf/eu/gp/ui/dt/comp
    See if it solves your problem.
    Bye
    Ankur

  • Xml parsing exception

    Hi,
    I am having xml content as a string like below
    <?xml version="1.0" encoding="UTF-8"?>
    <TransactionResponse>
    <InterchangeControlHeader>
    <AuthorInfoQualifier>00</AuthorInfoQualifier>
    <AuthorInformation> </AuthorInformation>
    </InterchangeControlHeader>
    </TransactionResponse>
    I am trying to parse this xml using below code
    factory.setValidating(false);
    factory.setNamespaceAware(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    StringReader XMLStringReader = new StringReader(xmlString);
    InputSource XMLInputSource = new InputSource(XMLStringReader);
    document = builder.parse(XMLInputSource);
    I am using
    javax.xml.parsers.DocumentBuilderFactory and DocumentBuilder for parsing but i am getting exception
    "The markup in the document preceding the root element must be well-formed"
    any idea what is missing?
    Thanks

    I am using websphere4.0.6,in standalone appln it works fine.

  • XML parser Exception

              Hi
              I try to deploy a servlet that serve as a MapPoint web services client. So the
              servlet receive a post with latitude and longitude then it try it to retrieve
              a Map showing the location from MapPoint through web services. I am able to deploy
              the servlet, but it throws the following exception when it receives a request.
              java.lang.RuntimeException: ; nested exception is:
                   org.xml.sax.SAXParseException: The root element is required in a well-formed
              document.
                   at com.spatialpoint.mappoint.storelocator.StoreLocator.getAddressMatches(StoreLocator.java:266)
                   at jsp_servlet.__locate._jspService(__locate.java:181)
                   at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
                   at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
                   at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              Any help will be very much appreciated. Thanks
              

    If you're using the XMLTYPE constructor to insert your XML into the DB you can avoid the well-formed validation declaring that the xml is well formed:
    SQL> insert into MYXMLTABLE values (
      2  XMLTYPE('
      3  <ROOT a="1" a="3"/>
      4  ',null,0,1));
    1 row created.Oracle inserts the xml in the table but, obvoiusly, you'll never be able to use it as an XML file:
    SQL> select object_value
      2  from MYXMLTABLE ;
    OBJECT_VALUE
    <ROOT a="1" a="3"/>
    SQL> select extract(object_value,'/*')
      2  from MYXMLTABLE ;
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00224: multiple occurrences of attribute "a" found
    Error at line 8Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/31/le-direttive-di-compilazione-pragma/]

  • XML transform exception

    Hi
    I am trying to transform a shopping cart to display from an XSL.
    But I get the following exception
    javax.xml.transform.TransformerException: Content is not allowed in prolog.
    Transformer transformer = tFactory.newTransformer(new StreamSource(xslPath));
                             transformer.transform(new StreamSource(new StringReader(cart.getItemsAsXml().trim())), new streamResult(html));
                             out.println(html);
    What does this indicate ?
    Thx
    aRN

    I think that you are missing
    <?xml version="1.0"?>
    cart.getItemsAsXml()
    you are posting very little information for answering

Maybe you are looking for

  • Weblogic 10.3.2: Under load, system gives 404 error when accessing page

    Hi all, I am running Weblogic 10.3.2 with a J2EE EAR deployed against it. I am using JDBC data sources to connect to an Oracle 11g database. I am running on Linux Red Hat 5. The machine has 16 GB RAM and 16 cores of an Intel Xeon processor. I have re

  • Key field not available in report

    Hi, I have a DSO and in that I have 1 key field and 20 data fields. I was able to load the data successfully in the DSO. And I am creating a report based on this DSO. But when I create a report, I was unable to view the key field in the report. I wen

  • Problem in opening PDF files using Reader 8 when created with iText 2.1.3

    We are facing problem in using IText version 2.1.3. We are using Acrobat Reader 8.1 for viewing the PDF documents. In our Shell program we are splitting and merging the pdf documents using IText. The pdf document works correctly and is readable for d

  • Re-Install DVD Burner?

    The DVD Burner on the MAC will no longer burn DVD's. I can play or read the disc but no burning.  I have tried cleaning the lense, different DVD brands and still get the following error; "The disc can't be burned because an unexpected error occurred

  • Security for a jsp page

    Hi everybody I have a question , I do I give access certain access           permission to s specific page           For example , some one come to my site and is at           A.jsp after validating it takes them to B.jsp. How do I gaurantee that the