API bridge

my API bridge uninstall how to dowanload plz help

Hi,
You can redownload API Bridge here. Let me know if you have any issues with it after downloading again.
Iris9290
If my post has helped you in any way, please accept it as a solution or click on the white star, so that other users will be able to benefit from it too.

Similar Messages

  • Problems with N97 after upgrade to v11 software

    Hi, after upgrading to v11, I thought I found my N97 slower. For example, the time take from the click of the "New message" icon till the time the SMS message writing app is ready for input can sometimes take like 3 seconds. Does any have a similar experience?
    Also, not sure if it matters that much, but it does make me uncomfortable. The "C:" drive has only about 10MB free. It was like 20MB before my firmware upgrade (which is plenty too small still, imho). This is even after clearing the web browser cache (which I suspect is going into "C:" drive). Is this something to worry about? Is there a way to increase free space? What happens when I run out of space?
    Regards,
    .lzs 

    i have 32 megs of ram 
    35.1M phone memory
    28.1 GB on flash memory  
    this is with the following
    on the c i have installed :
    ovi mpas ( cant chose where it installs for the most of these apps/services)
    accu
    adtronic (a part of profile scheduler)
    amazon
    api bridge
    ap news
    bloomberg
    facebook
    facebook installer
    license manager
    ovi store client  
    slideshow
    youtube
    i think this is most of it  
    and the phone is actually faster then it was prior to update. i do clean the cache diligently as it does take up some space. i have not run out of memory yet. make sure all the apps and stuff that  you don't need are not running in the background 
    Message Edited by radical24 on 10-Jul-2009 10:51 AM
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Error in execution of  Web Services on WebLogic --ArrayIndexOutOfBoundsExc

    Hi,
    I Have an error with web services hosted on weblogic server and it is throwing the following exception stack trace.
    <MS1> <[ACTIVE] ExecuteThread: '15' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1329818512003> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@f048e943 -appName 'newMyApp', name: '/newmyapp', context-path: '/newmyapp'] Root cause of ServletException.
    javax.servlet.ServletException
         at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:39)
         at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:218)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    java.lang.ArrayIndexOutOfBoundsException: -1
         at com.sun.xml.bind.v2.util.CollisionCheckStack.findDuplicate(CollisionCheckStack.java:112)
         at com.sun.xml.bind.v2.util.CollisionCheckStack.push(CollisionCheckStack.java:53)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.pushObject(XMLSerializer.java:471)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:574)
         at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
         at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:54)
         at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:71)
         at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:281)
         at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:124)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:91)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:170)
         at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:186)
         at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:235)
         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:97)
         at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:36)
         at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:218)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Edited by: 915901 on Feb 21, 2012 3:10 AM

    Hi Gabriel,
    Thank you for your response.
    I have checked this note and checked all my configuration. They all are in place.
    Any other input?
    Thank You,
    Mugdha Kulkarni

  • EJB3 Entities + Web Services: A cycle is detected in the object graph

    I have a Java EE 5 application, using Glassfish v2. My ejb project consists of a handful of entity beans, session beans, and this problem arose when I added a new web service.
    Here is a simple scenario borrowed from another forum post with a similar problem:
    Let's say I have a web service called getVehicle(int vehicleId) that returns a Vehicle object.
    Vehicle has a java.util.Set of Wheel objects.
    The Wheel object has a reference to its owner (Vehicle).
    The issue is this bi-directional relationship causes a cycle that the JAX system doesn�t like.
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [com.sun.istack.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML: org.test.Vehicle at 13c6308 -> org.test.Wheel at 15880be -> org.test.Vehicle at 13c6308
                  at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:282)
                  at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:110)
                  at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:178)
                  at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:299)
                  ... 54 more
    The one bit of information that I found that might fix this doesn't do much for me:
    https://jaxb.dev.java.net/guide/Mapping_cyclic_references_to_XML.html
    What options do I have to make my soap method work?
    Thanks,
    Hugh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    i have got the same issue�C
    how did you implement onCycleDetected method�H
    can you send your full code to my mail [email protected]
    thanks !

  • Problem with jax-ws and optional attributes

    Hello,
    I'm developing some web services, starting by defining the object model in schemas, then doing WSDL first to define the services.
    I've come across a problem that appears to be caused by jax-ws not properly handling optional attributes. I've tried this with both 2.0 and 2.1ea3 and both fail the same way.
    I created a simplified test case to repeatably demonstrate the problem.
    The type definition for the object looks like this :
    <xsd:complexType name="TestObject" >
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    <xsd:attribute name="subId" type="xsd:integer" use="optional" />
    </xsd:complexType>
    And in the wsdl:
    <wsdl:message name="testRequest">
    <wsdl:part name="testrequest" type="mf:TestObject"/>
    </wsdl:message>
    <wsdl:operation name="testAction">
    <wsdl:input name="testRequest" message="mf:testRequest"/>
    <wsdl:output name="successResponse" message="mf:successResponse"/>
    </wsdl:operation>
    and the test code:
    public void testOptionalAttrs()
    TestObject testObj = new TestObject();
    testObj.setName("testName");
    //testObj.setSubId(2);
    MDSProvisioningResourcePortType resourceManager = factory.getGatewayResourceManager();
    boolean success = resourceManager.testAction(testObj);
    Running the test code with the 'setSubId' uncommented works.
    With the 'setSubId' call commented out out results in this error:
    javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
    - with linked exception:
    [com.sun.xml.bind.api.AccessorException: java.lang.NullPointerException]
         at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:301)
         at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:124)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:91)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:225)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:121)
         at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:69)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:541)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:497)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:392)
         at com.sun.xml.ws.client.Stub.process(Stub.java:213)
         at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:238)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:212)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
         at $Proxy58.testAction(Unknown Source)
         at com.qualcomm.mf.prov.ProvisioningGatewayClientFactoryTest.testOptionalAttrs(ProvisioningGatewayClientFactoryTest.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
         at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
         at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
         at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
         at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
         at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
         at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
         at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
         at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [com.sun.xml.bind.api.AccessorException: java.lang.NullPointerException]
         at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:255)
         at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:64)
         at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:105)
         at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:292)
         ... 35 more
    Caused by: com.sun.xml.bind.api.AccessorException: java.lang.NullPointerException
         at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:224)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:239)
         at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeAttributes(ClassBeanInfoImpl.java:302)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:661)
         at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:111)
         at com.sun.xml.bind.v2.runtime.CompositeStructureBeanInfo.serializeBody(CompositeStructureBeanInfo.java:71)
         at com.sun.xml.bind.v2.runtime.CompositeStructureBeanInfo.serializeBody(CompositeStructureBeanInfo.java:19)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:663)
         at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:250)
         ... 38 more
    Caused by: com.sun.xml.bind.api.AccessorException: java.lang.NullPointerException
         at com.sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.get(AdaptedAccessor.java:33)
         at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.print(TransducedAccessor.java:199)
         at com.sun.xml.bind.v2.runtime.property.AttributeProperty.serializeAttributes(AttributeProperty.java:61)
         at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeAttributes(ClassBeanInfoImpl.java:295)
         ... 44 more
    Caused by: java.lang.NullPointerException
         at org.w3._2001.xmlschema.Adapter3.marshal(Adapter3.java:23)
         at org.w3._2001.xmlschema.Adapter3.marshal(Adapter3.java:1)
         at com.sun.xml.bind.v2.runtime.reflect.AdaptedAccessor.get(AdaptedAccessor.java:31)
         ... 47 more
    So am I missing something or is jax-ws not handling optional attributes correctly?
    Thanks,
    Hank

    Hi,
    This is not a direct answer to your question. But if you want to build restful web services with Weblogic 10.3, why not use Jersey . It is the implementation of the new JAX-RS spec. In my experience, although Jersey is part of the Java EE 6 spec, it appears to work ok with Java EE 5 container like Weblogic 10.3.1. The [JAX-RS section of Java EE tutorial|http://java.sun.com/javaee/6/docs/tutorial/doc/giepu.html] is another good source of example code.
    Edited by: vamsee2 on Sep 25, 2009 12:38 PM

  • Help with: oracle.toplink.essentials.exceptions.ValidationException

    hi guys,
    I really need ur help with this.
    I have a remote session bean that retrieves a list of books from the database using entity class and I call the session bean from a web service. The problem is that when i display the books in a jsp directly from the session bean everything works ok but the problem comes when I call the session bean via the web service than it throws this:
    Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.
    at oracle.toplink.essentials.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:887)
    at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:233)
    at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:105)
    at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:208)
    at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:330)
    at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:425)
    at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:424)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:278)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:265)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:129)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:315)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:176)
    ... 29 more
    This happens when I test the web service using netbeans 6.5.
    here's my code:
    session bean:
    ArrayList bookList = null;
    public ArrayList retrieveBooks()
    try
    List list = em.createNamedQuery("Book.findAll").getResultList();
    bookList = new ArrayList(list);
    catch (Exception e)
    e.getCause();
    return bookList;
    web service:
    @WebMethod(operationName = "retrieveBooks")
    public Book[] retrieveBooks()
    ArrayList list = ejbUB.retrieveBooks();
    int size = list.size();
    Book[] bookList = new Book[size];
    Iterator it = list.iterator();
    int i = 0;
    while (it.hasNext())
    Book book = (Book) it.next();
    bookList[i] = book;
    i++;
    return bookList;
    Please help guys, it's very urgent

    Yes i have a relationship but i didnt want it to be directly. Maybe this is a design problem but in my case I dont expect any criminals to be involved in lawsuit. My tables are like that:
    CREATE TABLE IF NOT EXISTS Criminal(
         criminal_id INTEGER NOT NULL AUTO_INCREMENT,
         gender varchar(1),
         name varchar(25) NOT NULL,
         last_address varchar(100),
         birth_date date,
         hair_color varchar(10),
         eye_color varchar(10),
         weight INTEGER,
         height INTEGER,
         PRIMARY KEY (criminal_id)
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Lawsuit(
         lawsuit_id INTEGER NOT NULL AUTO_INCREMENT,
         courtName varchar(25),
         PRIMARY KEY (lawsuit_id),
         FOREIGN KEY (courtName) REFERENCES Court_of_Law(courtName) ON DELETE NO ACTION
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Rstands_trial(
         criminal_id INTEGER,
         lawsuit_id INTEGER,
         PRIMARY KEY (criminal_id, lawsuit_id),
         FOREIGN KEY (criminal_id) REFERENCES Criminal(criminal_id) ON DELETE NO ACTION,
         FOREIGN KEY (lawsuit_id) REFERENCES Lawsuit(lawsuit_id) ON DELETE CASCADE
    ENGINE=INNODB;So I couldnt get it.

  • Problem sqlite+berkeley PANIC: fatal region error detected.

    Excuse for my English and if this wrong place to explain the problem
    I'm checking to replace Berkeley DB and SQLite for testing the stability against involuntary interruptions of program I have encountered the following error:
    Berkeley DB trust in knowing his rnedimiento and stability with Subversion, but I doubt the API bridge SQLITE
    I'm testing the Berkeley DB database using the API Berkeley DB SQLITE and I did a small test program:;
    /* Open database. */
    sqlite3 *db;
    sqlite3_open("data/basedatos.db", &db);
    sqlite3_exec(db,"CREATE TABLE [test] ([key] INTEGER, [dat] varchar(64), PRIMARY KEY ([key]))",NULL,0,NULL);
    err_code = SQLITE_BUSY;
    while (err_code != SQLITE_OK ) {
         sqlite3_exec( db, "delete from test", NULL, 0, NULL );
         err_code = sqlite3_errcode( db );
    sqlite3_exec( db, "BEGIN", NULL, 0, NULL );+
    for( int i=0; i<_numCartones; i++ ) {
         char buf[1024];
         sprintf_s( buf, sizeof(buf), "insert into test( key, dat) values ( %d, 'test%d' )", i, i );
         sqlite3_exec( db, buf, NULL, 0, NULL );
    sqlite3_exec( db, "COMMIT", NULL, 0, NULL );
    sqlite3_close(db);I launched the program and insert about 150000 records in 17 seconds. Perfect!
    I created a file basedatos.db and basedatos.db-journal subdirectory with files: log.0000000016, __db.001, __db.002, __db.003, __db.004, __db.005, __db.006 and __db.register.
    Open it and prove the usefulness dbsql
    c: dbsql basedatos.db
    select count(*) from test;
    150000          ← Ok.
    Without closing the program again dbsql run the test program and this will get stuck in the call:
    sqlite3_exec( db, "delete from test", NULL, 0, NULL );I close dbsql and automatically releases the "delete from" and the test program again inserted 150,000 records
    While this by inserting 150,000 records run it again
    c: dbsql basedatos.db
    select count(*) from test; [WAIT]
    and select count (*) remains locked until you finish the test program, normal thing locks.Once you finish the select TEST responds to 150,000
    150000          ← Ok.Without closing the program again dbsql run the test program and this will get stuck in the call:
    sqlite3_exec( db, "delete from test", NULL, 0, NULL );I close dbsql and automatically releases the "delete from" and the test program again inserted 150,000 records
    while inserting test rerun:
    c: dbsql basedatos.db
    select count(*) from test;
    Error: database disk image is malformed
    and in my test program : PANIC: fatal region error detected; run recovery.
    Reviewing the files are only: badatos.db, log.0000000031, log.0000000032, log.0000000033, log.0000000034, log.0000000035, log.0000000036, __db.register.
    and __db*.* files?

    Had accidentally opened the program dbsql.exe while doing speed tests data insertion.
    While in a shell to make a select count (*) and I realized that was blocked waiting for the COMMIT release, normal thing in a process BEGIN / COMMIT.
    In one test was corrupt database which reduced the test software and simplify the test to repeat the problem.
    Today I repeated the test and the situation has changed
    1) Run test (all OK, inserted in 18 seconds 150000 entries)
    2) DBSQL run and I make a select count (*) (All Ok)
    3) DBSQL unsealed test run and stay lock on DELETE FROM
    4) DELETE FROM I close DBSQL and not released as yesterday.Repeat several times and I have the same behavior
    Move in the test code from "delete from..." begin and commit
    sqlite3_exec( db, "BEGIN", NULL, 0, NULL );
    err_code = sqlite3_errcode( db );
    err_code = SQLITE_BUSY;
    while (err_code != SQLITE_OK ) {
    sqlite3_exec( db, "delete from test", NULL, 0, NULL );
    err_code = sqlite3_errcode( db );
    for( int i=0; i<_numCartones; i++ ) {Repeat tests
    1)Test run, everything ok in 25 seconds. While inserting test this, I run realizao dbsql and a select count (*) and remains lock until test ends. Everything ok, 150000 records
    2)Dbsql unsealed test run it again and stay lock on delete until you close the program dbsql.
    3)I close dbsql and releasing the lock of seconds to delete the test the error "PANIC ..." like yesterdayRepeat several times and the behavior is the same, except that no desparencen db files.
    If I can not run dbsql test run multiple times without problems.
    Could be the problem dbsql and simultaneous access to the database?
    I'm going to migrate an application in production since SQLITE to Berkeley DB for testing.
    I have confidence in the performance of Berkeley DB and I know the proper functioning it does with subversion, but the subversion server on a server is protected with uninterrupted power.
    If I avoid using dbsql while the test software that I have that theoretical security operation will be correct when using Berkeley DB SQLITE layer and especially with unexpected off the machine?
    Thanks again for your help

  • Plz help Error in encoding Soap Message

    hii,
    im new to web services ,im doing a test application using netbeans 5.5 which retrieves some information from database.Its working fine if i return eother a string or a list of strings from webservice method.
    But if im using a user defined datatype as return value its giving follwing error
    SEVERE: Error in encoding SOAP Message
    Error in encoding SOAP Message
    at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:113)
    at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:97)
    at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:27)
    at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:24)
    at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:675)
    at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:444)
    at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:374)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.callHandlersOnResponse(SOAPMessageDispatcher.java:448)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.getResponse(SOAPMessageDispatcher.java:307)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:601)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:141)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(WSServletDelegate.java:333)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:288)
    at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:77)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
    at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:88)
    at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeJAXBBridgeInfo(SOAPEncoder.java:252)
    at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeBody(SOAPEncoder.java:569)
    at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:95)
    ... 33 more
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:246)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:64)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:86)
    at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:86)
    ... 36 more
    Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
    at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:219)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:234)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:562)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:293)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:594)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
    ... 39 more
    Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:474)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:557)
    ... 45 more
    Can any body help me im struck here for the last 2 days
    thnx
    RAJESH

    Are u sure that u correctly configure Apex (marvel.conf)?
    Have u include this file in httpd.conf?

  • Error in encoding SOAP Message

    hii,
    im new to web services ,im doing a test application using netbeans 5.5 which retrieves some information from database.Its working fine if i return eother a string or a list of strings from webservice method.
    But if im using a user defined datatype as return value its giving follwing error
    SEVERE: Error in encoding SOAP Message
    Error in encoding SOAP Message
    at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:113)
    at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:97)
    at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:27)
    at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:24)
    at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:675)
    at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:444)
    at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:374)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.callHandlersOnResponse(SOAPMessageDispatcher.java:448)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.getResponse(SOAPMessageDispatcher.java:307)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:601)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:141)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(WSServletDelegate.java:333)
    at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:288)
    at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:77)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
    at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:88)
    at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeJAXBBridgeInfo(SOAPEncoder.java:252)
    at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeBody(SOAPEncoder.java:569)
    at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:95)
    ... 33 more
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:246)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:64)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:86)
    at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:86)
    ... 36 more
    Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
    at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:219)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:234)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:562)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:293)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:594)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
    ... 39 more
    Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:474)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:557)
    ... 45 more
    Can any body help me im struck here for the last 2 days
    thnx
    RAJESH

    Hello again,
    because it seems to be a JavaScript issue, I opend this discussion in that forum: http://forums.adobe.com/message/6205851#6205851

  • Java.lang.IllegalStateException 11g Web Services Administration

    Hello,
    When using Search 11g SES Web Services Administration,
    I get an error before it gives me the full xml of all the schedules (Code to Return All States of All Schedules). What is causing the java.lang.IllegalStateException: Stream already closed?
    I also want to narrow the results to give back only the status state property of all the schedules (Code to Narrow). When I try to narrow the results, it gives me no results, and an xml error. Is there an example on sending this in the List stateProperties argument for getAllStates(...)?
    Thanks
         /* getStatelessWebServiceClient, From SES Administration API Guide */
         private static AdminPortType getStatelessWebServiceClient(String webServiceURL) throws Exception
              AdminService adminService = new AdminService(
                        new URL( webServiceURL ),
                        new QName(
                                  "http://search.oracle.com/Admin",
                                  "AdminService"
              return adminService.getAdmin();
         /* Code to Return All States of All Schedules - Does give the results */
         String webServiceURL = "http://host:port/search/api/admin/AdminService";          
         AdminPortType adminPort = getStatelessWebServiceClient( webServiceURL );
         Credentials credentials = new Credentials();
         credentials.setUserName("username");
         credentials.setPassword("password");
         String xmlResults = adminPort.getAllStates("schedule", null, null, credentials, null, "en").getObjectXML();
         * Code to Return All States of All Schedules - Error */
         java.lang.IllegalStateException: Stream already closed
              at com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream.fetch(DataHead.java:221)
              at com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream.read(DataHead.java:196)
              at java.io.FilterInputStream.read(FilterInputStream.java:116)
              at java.io.PushbackInputStream.read(PushbackInputStream.java:169)
              at weblogic.xml.babel.reader.XmlReader$Utf8Reader.read(XmlReader.java:660)
              at weblogic.xml.babel.reader.XmlReader.read(XmlReader.java:496)
              at weblogic.xml.babel.scanner.ScannerState.read(ScannerState.java:400)
              at weblogic.xml.babel.scanner.ScannerState.expect(ScannerState.java:238)
              at weblogic.xml.babel.scanner.CloseTag.read(CloseTag.java:21)
              at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:256)
              at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
              at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:533)
              at weblogic.xml.babel.baseparser.CharDataElement.parse(CharDataElement.java:85)
              at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:481)
              at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:326)
              at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)
              at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
              at com.sun.xml.internal.ws.encoding.MtomCodec$MtomXMLStreamReaderEx.next(MtomCodec.java:462)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:349)
              at com.sun.xml.internal.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:109)
              at com.sun.xml.internal.bind.api.Bridge.unmarshal(Bridge.java:222)
              at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:514)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:110)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
              at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
              at $Proxy32.getAllStates(Unknown Source)
              at com...printCrawlersRunning(SESAdminTester.java:34)
              at com...SESAdminTester.main(SESAdminTester.java:126)
         amount read:0inputBufferSize50877overflow256
         /* Code to Narrow - Not Working*/
         String webServiceURL = "http://host:port/search/api/admin/AdminService";          
         AdminPortType adminPort = getStatelessWebServiceClient( webServiceURL );
         Credentials credentials = new Credentials();
         credentials.setUserName("username");
         credentials.setPassword("password");
         List<String> stateProperties = new ArrayList<String>();
         stateProperties.add("status");
         String xmlResults = adminPort.getAllStates("schedule", stateProperties, null, credentials, null, "en").getObjectXML();
         /* Code to Narrow - Error */
              java.lang.IllegalStateException: Stream already closed
              at com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream.fetch(DataHead.java:221)
              at com.sun.xml.internal.org.jvnet.mimepull.DataHead$ReadMultiStream.read(DataHead.java:196)
              at java.io.FilterInputStream.read(FilterInputStream.java:116)
              at java.io.PushbackInputStream.read(PushbackInputStream.java:169)
              at weblogic.xml.babel.reader.XmlReader$Utf8Reader.read(XmlReader.java:660)
              at weblogic.xml.babel.reader.XmlReader.read(XmlReader.java:496)
              at weblogic.xml.babel.scanner.ScannerState.read(ScannerState.java:400)
              at weblogic.xml.babel.scanner.ScannerState.expect(ScannerState.java:238)
              at weblogic.xml.babel.scanner.CloseTag.read(CloseTag.java:21)
              at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:256)
              at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
              at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:533)
              at weblogic.xml.babel.baseparser.CharDataElement.parse(CharDataElement.java:91)
              at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:481)
              at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:326)
              at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)
              at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
              at com.sun.xml.internal.ws.encoding.MtomCodec$MtomXMLStreamReaderEx.next(MtomCodec.java:462)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:349)
              at com.sun.xml.internal.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:109)
              at com.sun.xml.internal.bind.api.Bridge.unmarshal(Bridge.java:222)
              at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:514)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:110)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
              at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
              at $Proxy32.getAllStates(Unknown Source)
              at com...SESAdminTester.printCrawlersRunning(SESAdminTester.java:40)
              at com...SESAdminTester.main(SESAdminTester.java:134)
         Error at line:447 col:78 Got character[0] expected a valid XML character
         amount read:0inputBufferSize19809overflow256
              at weblogic.xml.babel.scanner.ScannerState.checkedRead(ScannerState.java:628)
              at weblogic.xml.babel.scanner.CharData.read(CharData.java:65)
              at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:296)
              at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
              at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:533)
              at weblogic.xml.babel.baseparser.CharDataElement.parse(CharDataElement.java:91)
              at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:481)
              at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:326)
              at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)
              at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
              at com.sun.xml.internal.ws.encoding.MtomCodec$MtomXMLStreamReaderEx.next(MtomCodec.java:462)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:349)
              at com.sun.xml.internal.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:109)
              at com.sun.xml.internal.bind.api.Bridge.unmarshal(Bridge.java:222)
              at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:514)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:110)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
              at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
              at $Proxy32.getAllStates(Unknown Source)
              at com...SESAdminTester.printCrawlersRunning(SESAdminTester.java:40)
              at com...SESAdminTester.main(SESAdminTester.java:134)
         Caught unexpected run-time exception
         message = Failed to read a response: javax.xml.bind.UnmarshalException
         - with linked exception:
         [javax.xml.stream.XMLStreamException: Error at line:447 col:78  Got character[0] expected a valid XML character]
         stackTrace =
         com.sun.xml.internal.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
         - with linked exception:
         [javax.xml.stream.XMLStreamException: Error at line:447 col:78  Got character[0] expected a valid XML character]
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
              at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
              at $Proxy32.getAllStates(Unknown Source)
              at com...SESAdminTester.printCrawlersRunning(SESAdminTester.java:40)
              at com...SESAdminTester.main(SESAdminTester.java:134)
         Caused by: javax.xml.bind.UnmarshalException
         - with linked exception:
         [javax.xml.stream.XMLStreamException: Error at line:447 col:78  Got character[0] expected a valid XML character]
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:415)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:351)
              at com.sun.xml.internal.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:109)
              at com.sun.xml.internal.bind.api.Bridge.unmarshal(Bridge.java:222)
              at com.sun.xml.internal.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:514)
              at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:110)
              ... 5 more
         Caused by: javax.xml.stream.XMLStreamException: Error at line:447 col:78 Got character[0] expected a valid XML character
              at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)
              at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
              at com.sun.xml.internal.ws.encoding.MtomCodec$MtomXMLStreamReaderEx.next(MtomCodec.java:462)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
              at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:349)
              ... 9 more
         Caused by: Error at line:447 col:78 Got character[0] expected a valid XML character
              at weblogic.xml.babel.scanner.ScannerState.checkedRead(ScannerState.java:628)
              at weblogic.xml.babel.scanner.CharData.read(CharData.java:65)
              at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:296)
              at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
              at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:533)
              at weblogic.xml.babel.baseparser.CharDataElement.parse(CharDataElement.java:91)
              at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:481)
              at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:326)
              at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)
              ... 13 more

    Hi,
    I have the same problem with WLS 11g. Did you resolve the problem?

  • JDeveloper Web Services proxy ERROR: StringOutOfBoundException

    Hi,
    I created a web services proxy using jdev 11g (11.1.1.3.0), and I am using this proxy inside a servlet.
    When I invoke the proxy, I get this error:
    WatchData: DATE = 1-dic-2010 18.55.03 CET SERVER = DefaultServer MESSAGE = [ServletContext@11479332[app:SalaOperativaWebApp module:SalaOperativaWebApp-ViewController-context-root path:/SalaOperativaWebApp-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
         at java.lang.String.charAt(String.java:686)
         at com.sun.xml.bind.DatatypeConverterImpl._parseBoolean(DatatypeConverterImpl.java:261)
         at com.sun.xml.bind.v2.runtime.unmarshaller.XsiNilLoader.selectLoader(XsiNilLoader.java:66)
         at com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyLoader.java:53)
         at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$IntercepterLoader.startElement(ElementBeanInfoImpl.java:231)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:455)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:433)
         at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:275)
         at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:209)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
         at com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:120)
         at com.sun.xml.bind.api.Bridge.unmarshal(Bridge.java:233)
         at com.sun.xml.ws.message.stream.StreamMessage.readPayloadAsJAXB(StreamMessage.java:268)
         at com.sun.xml.ws.client.sei.ResponseBuilder$Body.readResponse(ResponseBuilder.java:476)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:127)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
         at $Proxy222.getTreniCircolanti(Unknown Source)
         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:597)
         at weblogic.wsee.jaxws.spi.ClientInstance$ClientInstanceInvocationHandler.invoke(ClientInstance.java:363)
         at $Proxy207.getTreniCircolanti(Unknown Source)
         at sop.view.map.servlet.MapServices.doPost(MapServices.java:67)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)Can someone help me ? I can't understand why.
    The same webservice, with stubs created using Axis2 ADB works...
    Edited by: e.gherardini on Dec 2, 2010 2:41 AM

    The problem was in the web service, not in the proxy.
    The web service did not set the "nillable" attribute of one of its inputs, so the client had exceptions. Setting to "true" or "false" the attribute, fixed the problem on client.

  • My weblogic is downed!

    Hi, I deployed my Application in weblogic server and was safe before, because its users increased server crashed now and only below exceptions was logged.
    {javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxIOException: socket write error: Connection reset by peer.
    com.ctc.wstx.exc.WstxIOException: socket write error: Connection reset by peer.
    java.net.SocketException: socket write error: Connection reset by peer.}
    can you help me.
    Edited by: Mohammad Saadati on May 13, 2009 8:49 PM

    Thanks for your interest, I sent for you all exceptions that is raised:
    1.
    ####<May 5, 2009 8:05:30 AM PDT> <Error> <HTTP> <...> <AdminServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1241535930156> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@df4f9d - appName: '...', name: '....war', context-path: '/...', spec-version: '2.5'] Root cause of ServletException.
    javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxIOException: socket write error: Connection reset by peer.
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:111)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    com.ctc.wstx.exc.WstxIOException: socket write error: Connection reset by peer.
    at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1687)
    at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:585)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:146)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    java.net.SocketException: socket write error: Connection reset by peer.
    at jrockit.net.SocketNativeIO.writeBytesPinned(Native Method)
    at jrockit.net.SocketNativeIO.socketWrite(SocketNativeIO.java:73)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at weblogic.utils.io.ChunkedOutputStream.writeTo(ChunkedOutputStream.java:193)
    at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:436)
    at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:1256)
    at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:108)
    at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:100)
    at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
    at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:195)
    at com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1685)
    at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:586)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:147)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:109)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    2.
    ####<May 5, 2009 8:43:31 AM PDT> <Error> <HTTP> <...> <AdminServer> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1241538211281> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@df4f9d - appName: '...', name: '....war', context-path: '/...', spec-version: '2.5'] Root cause of ServletException.
    javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
    - with linked exception:
    [com.ctc.wstx.exc.WstxIOException: Socket closed]
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:322)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    javax.xml.bind.MarshalException
    - with linked exception:
    [com.ctc.wstx.exc.WstxIOException: Socket closed]
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:286)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:90)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:107)
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:317)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    com.ctc.wstx.exc.WstxIOException: Socket closed
    at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:511)
    at com.sun.xml.bind.v2.runtime.output.XMLStreamWriterOutput.text(XMLStreamWriterOutput.java:150)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.leafElement(XMLSerializer.java:321)
    at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$1.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:210)
    at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$1.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:197)
    at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:250)
    at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(SingleElementLeafProperty.java:98)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:90)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:107)
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:317)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    java.net.SocketException: Socket closed
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:525)
    at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:504)
    at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382)
    at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:249)
    at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:469)
    at weblogic.servlet.internal.CharsetChunkOutput.implWrite(CharsetChunkOutput.java:396)
    at weblogic.servlet.internal.CharsetChunkOutput.write(CharsetChunkOutput.java:198)
    at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:139)
    at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:169)
    at com.ctc.wstx.io.UTF8Writer.write(UTF8Writer.java:139)
    at com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(BufferingXmlWriter.java:1103)
    at com.ctc.wstx.sw.BufferingXmlWriter.writeRaw(BufferingXmlWriter.java:255)
    at com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:543)
    at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:509)
    at com.sun.xml.bind.v2.runtime.output.XMLStreamWriterOutput.text(XMLStreamWriterOutput.java:150)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.leafElement(XMLSerializer.java:321)
    at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$1.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:210)
    at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$1.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:197)
    at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:250)
    at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(SingleElementLeafProperty.java:98)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:90)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:107)
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:317)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
    at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
    at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    Edited by: user11131656 on May 12, 2009 10:28 PM
    Edited by: user11131656 on May 12, 2009 10:29 PM
    Edited by: Mohammad Saadati on May 13, 2009 8:48 PM
    Edited by: Mohammad Saadati on May 13, 2009 9:34 PM

  • Deploy web service on apache tomcat

    Hi,
    I have J2EE application and now I need to expose some of the methods from this application via web service. I am using apache tomcat 6.20 and I am having lots of issues deploying my web service to apache tomcat.
    It seem to work fine on gloss fish as I was following the tutorial on netbeans for simple web services.
    Any ideas on best practice on building web service on apache tomcat. I've seen many people are having issues with this combination tomcat and jaxws but didn't find anything helpful.
    Thanks in advance.

    Here is the error I am getting when trying to pass strongly typed objects:
    javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.]
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:329)
            at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
            at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:109)
            at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
            at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:338)
            at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
            at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:480)
            at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
            at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
            at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
            at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
            at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.]
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:279)
            at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
            at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:321)
            ... 25 more
    Caused by: javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:242)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:257)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:649)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
            at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
            at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
            at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:150)
            at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:274)
            ... 28 more
    Caused by: javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:566)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:644)
            ... 37 more

  • Struggling to create a Document out of xml string

    I am trying to parse a simple xml into a Document. I have already tried Jaxb but gave up( the file i need to unmarshall is quite complicated the output kept bombing with the soap exception "premature end of file") so I went down this route, only to find that it is impossible to get working. I have already see the other thread with a similar issue but the workaround suggested does not work. Here is my code;
    try {
    javax.xml.parsers.DocumentBuilderFactory docFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
    javax.xml.parsers.DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
    docFactory.setNamespaceAware(true); <-- these 2 lines done as per recommendation here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181020
    docFactory.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); <;-- these 2 lines done as per recommendation here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6181020
    Document doc = docBuilder.parse("c:\\users\\ildsarria\\desktop\\test.xml");
    System.out.println(doc.getDoctype() +"|"+ doc.getLocalName() +"|"+ doc.getDomConfig() +"|"+ doc.getLocalName());
    } catch (ParserConfigurationException ex) {
    System.err.println(ex.getStackTrace().toString());
    } catch (Exception e) {
    System.err.println(e.getStackTrace().toString());
    No exception is thrown and the output is always null :
    null|null|[email protected]50|null
    I have tried this in netbeans and eclipse, and also with different files, lastly using this one just to try get it to pass:
    <?xml version="1.0" encoding="UTF-8"?>
    <Personnel>
    <Employee type="permanent">
    <Name>Seagull</Name>
    <Id>3674</Id>
    <Age>34</Age>
    </Employee>
    <Employee type="contract">
    <Name>Robin</Name>
    <Id>3675</Id>
    <Age>25</Age>
    </Employee>
    <Employee type="permanent">
    <Name>Crow</Name>
    <Id>3676</Id>
    <Age>28</Age>
    </Employee>
    </Personnel>
    Any help would be greatly appreciated !
    Edited by: ildsarria on Feb 9, 2010 11:28 AM

    OK I have added the MTOM annotations and imported the package, and this allows my WS to deploy, however when i run it i get the java.lang.reflect.InvocationTargetException message ( see below)
    import javax.xml.ws.soap.MTOM;
    @MTOM
    @WebService(name="Dfp",
                serviceName="DfpService",
                targetNamespace="")
    @Stateless()
    plublic class ..Part of the exception that I think is the clue :
    ...33 more Caused by: javax.xml.bind.UnmarshalException - with linked exception: [javax.xml.bind.UnmarshalException: Unable to create an instance of aem.adservices.dfp.ws.InputStream - with linked exception: [java.lang.InstantiationException]] at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:425) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:362) at com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:120) at com.sun.xml.bind.api.Bridge.unmarshal(Bridge.java:233) at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:547) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:121) ...So I don't think it was enough to just include the annotations to be able to return the InputStream. Can anyone please help?
    Many thanks

  • Problem using web service

    Hi
    I am trying this example http://www.netbeans.org/download/flash/platform_55/platform_ws/
    but i get the next error. I am using netbeans 5.5 with glassfish.
    wsgen successful
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    deployed with moduleid = WebAAE
    naming.bind
    [TopLink Warning]: 2006.08.28 08:50:42.703--ServerSession(33416332)--property toplink.server.platform.class.name is obsolete, property toplink.target-server should be used instead.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Particularpropvalues] is being defaulted to: Particularpropvalues.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Mapareasgroups] is being defaulted to: Mapareasgroups.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Areas] is being defaulted to: Areas.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wufallosbajada] is being defaulted to: Wufallosbajada.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Versions] is being defaulted to: Versions.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Compradores] is being defaulted to: Compradores.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Usuarios] is being defaulted to: Usuarios.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.IdiomasTextos] is being defaulted to: IdiomasTextos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Myareas] is being defaulted to: Myareas.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Myareasgrupos] is being defaulted to: Myareasgrupos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Excluidos] is being defaulted to: Excluidos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Mydescripciones] is being defaulted to: Mydescripciones.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Configuracion] is being defaulted to: Configuracion.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Lendes] is being defaulted to: Lendes.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Clavesint] is being defaulted to: Clavesint.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Empleados] is being defaulted to: Empleados.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Mensajes] is being defaulted to: Mensajes.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wuhistorylog] is being defaulted to: Wuhistorylog.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wuhistorylogdetail] is being defaulted to: Wuhistorylogdetail.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wuclientesmovimientos] is being defaulted to: Wuclientesmovimientos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Claves] is being defaulted to: Claves.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.IdiomasEtiquetas] is being defaulted to: IdiomasEtiquetas.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Fotos] is being defaulted to: Fotos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.781--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Historico] is being defaulted to: Historico.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.781--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Propiedades] is being defaulted to: Propiedades.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.796--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Busqueda] is being defaulted to: Busqueda.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.796--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Clientes] is being defaulted to: Clientes.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.796--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Contadores] is being defaulted to: Contadores.
    |#]
    Em: no es null
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Invoking wsimport with http://localhost:8080/WebAAE/PropiedadesWebServiceService?WSDL
    wsimport successful
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Wrong WSHandlerResolver: null
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Invoking wsimport with http://localhost:8080/WebAAE/PropiedadesWebServiceService?WSDL
    wsimport successful
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Wrong WSHandlerResolver: null
    [TopLink Warning]: 2006.08.28 08:51:00.203--ServerSession(33416332)--property toplink.server.platform.class.name is obsolete, property toplink.target-server should be used instead.
    |#]
    topLink_version
    application_server_name_and_version
            platform=>MySQL4Platform
            user name=> ""
            connector=>JNDIConnector datasource name=>null
    );|connecting|#]
            ;|connected_user_database_driver|#]
            platform=>MySQL4Platform
            user name=> ""
            connector=>JNDIConnector datasource name=>null
    );|connecting|#]
            ;|connected_user_database_driver|#]
    login_successful
    StandardWrapperValve[PropiedadesWebService]: PWC1406: Servlet.service() for servlet PropiedadesWebService threw exception
    javax.servlet.ServletException
            at com.sun.enterprise.webservice.NewJAXWSServlet.doPost(NewJAXWSServlet.java:130)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
    Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context]
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:248)
            at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:124)
            at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:91)
            at com.sun.xml.ws.encoding.CodecFacade.encode(CodecFacade.java:170)
            at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:182)
            at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:223)
            at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:97)
            at com.sun.enterprise.webservice.NewJAXWSServlet.doPost(NewJAXWSServlet.java:125)
            ... 32 more
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context]
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:246)
            at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:64)
            at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:96)
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:239)
            ... 39 more
    Caused by: javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:223)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:238)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:587)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
            at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
            at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:286)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:619)
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
            ... 42 more
    Caused by: javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:477)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:582)
            ... 48 more
    |#]I try to connect a mysql database.
    I write the code source.
    propiedades.java
    package org.aae.jose;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.util.Date;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    import javax.persistence.Temporal;
    import javax.persistence.TemporalType;
    * @author daniel
    @Entity
    @Table(name = "propiedades")
    public class Propiedades implements Serializable {
        @Id
        @Column(name = "Referencia", nullable = false)
        private String referencia;
        @Column(name = "referenciacliente", nullable = false)
        private String referenciacliente;
        /** Creates a new instance of Propiedades */
        public Propiedades() {
        public Propiedades(String referencia) {
            this.referencia = referencia;
        public String getReferencia() {
            return this.referencia;
        public void setReferencia(String referencia) {
            this.referencia = referencia;
        public String getReferenciacliente() {
            return this.referenciacliente;
        public void setReferenciacliente(String referenciacliente) {
            this.referenciacliente = referenciacliente;
        public int hashCode() {
            int hash = 0;
            hash += (this.referencia != null ? this.referencia.hashCode() : 0);
            return hash;
        public boolean equals(Object object) {
            if (object == null || !this.getClass().equals(object.getClass())) {
                return false;
            Propiedades other = (Propiedades)object;
            if (this.referencia != other.referencia && (this.referencia == null || !this.referencia.equals(other.referencia))) return false;
            return true;
        public String toString() {
            //TODO change toString() implementation to return a better display name
            return "" + this.referencia;
    }Service Web
    package org.aae.jose;
    import java.util.List;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.Name;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import javax.persistence.PersistenceContext;
    import javax.transaction.UserTransaction;
    * @author daniel
    @WebService()
    @PersistenceContext(name="persistence/LogicalName", unitName="WebAAE")
    public class PropiedadesWebService {
        /* Sample Web Service Operation */
        @WebMethod(operationName="sample_operation")
        public String operation(@WebParam(name="param_name") String param) {
            // implement the web service operation here
            return param;
        EntityManager em;
        public PropiedadesWebService() {
            try {
                Context ctx = (Context) new InitialContext().lookup("java:comp/env");
                em =  (EntityManager) ctx.lookup("persistence/LogicalName");
                if (em == null) {
                    System.out.println("Em: es null");
                else {
                    System.out.println("Em: no es null");               
                // TODO:
                // em.persist(object);    utx.commit();
            } catch (Exception ex) {
    /*            Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception caught", e);
                throw new RuntimeException(e);*/
                ex.printStackTrace();
        @WebMethod()
        public List<Object> getPropiedades() {
            return em.createNativeQuery("Select propiedades.referenciaCliente FROM propiedades").getResultList();
        @WebMethod()
        public List<Object> getPropiedad(String ref) {
            return em.createNativeQuery("Propiedades.findByReferenciacliente", "referenciacliente").getResultList();
    }persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
        <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
          <persistence-unit name="WebAAE" transaction-type="JTA">
            <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
            <jta-data-source>jdbc/aae</jta-data-source>
            <properties>
                <property name="toplink.plataform.class.name" value="oracle.toplink.essentials.platform.MySQL4Platform"></property>
            </properties>   
          </persistence-unit>
        </persistence>I am trying to connect me to a Mysql database.
    When i run the service getPropiedades() I get the error that I have shown before.
    Any idea?
    thank you very much

    Hello Alka,
    My bet is that somewhere another servlet is being configured with the name "InitializeServlet". I would suggest re-naming the servlet-name (and change it wherever else you are referring to it in web.xml) and give it a try.
    With WebLogic Portal, library modules are used which each come with their own web.xml file that gets "merged" into the one in your webapp, so it isn't always easy to see what servlets are being deployed.
    Kevin

Maybe you are looking for

  • OSX 10.9.5 Update Brought Back MacPro Restarts

    Here is the code through a reboot.  Long, but tiresome.  Help would be appreciated!  Reboots seemingly randomly. 9/20/14 10:38:30.000 PM bootlog[0]: BOOT_TIME 1411270710 0 9/20/14 10:38:31.000 PM syslogd[19]: Configuration Notice: ASL Module "com.app

  • Error when trying to approve a mitigation control in CUP

    Hi, I have created a Mitigation Control in RAR and set-up the necessary workflow. The request ends up in CUP and the approver is able to see the request when he/she logs in, however the approver cannot approve or reject the request. The following err

  • Run a mini displayport cable over a Thunderbolt port

    Hi I have a new imac with 2 thunderbolt ports - and I want to run a mini displayport cable over a thunderbolt port - is there any cable can solve this ?

  • Please any one give any solution's

    Problem signature:   Problem Event Name:          BEX   Application Name:          iTunes.exe   Application Version:          11.1.5.5   Application Timestamp:          53073d6a   Fault Module Name:          iTunes.dll   Fault Module Version:        

  • First Key Entry Doesn't register

    Sometime after upgrading to Tiger, my 17" Powerbook G4 began to not register the first key I press when filling in an online form (login, password, etc etc) as well as some other times .....though I notice it mostly on online forms. I'd say it does t