Strange corba exception

Hello,
Our application uses only local interfaces til yesterday.
Then I need to return some of our entity classes through remote interfaces, but then comes the following:
In the session bean, I return a "filled" User instance, but the client only gets an "empty" one (all fields are null).
[#|2010-06-08T15:12:33.047+0200|WARNING|sun-appserver2.1|javax.enterprise.resource.corba.ee._CORBA_.rpc.encoding|_ThreadID=22;_ThreadName=httpSSLWorkerThread-8080-0;<<Context:ReaderWriter[value(de.studiorga.api.users.vo.User)]:de.studiorga.api.users.vo.User.currentCourse,de.studiorga.api.coursemanagement.vo.Course.admin,de.studiorga.api.users.vo.User.birthday,java.util.Date>>;_RequestID=3b22825d-181f-45d4-beda-5101d2974cb2;|"IOP00800007: (MARSHAL) Unsupported RMI/IDL custom value type stream format<<Context:ReaderWriter[value(de.studiorga.api.users.vo.User)]:de.studiorga.api.users.vo.User.currentCourse,de.studiorga.api.coursemanagement.vo.Course.admin,de.studiorga.api.users.vo.User.birthday,java.util.Date>>"
org.omg.CORBA.MARSHAL:   vmcid: OMG  minor code: 7 completed: Maybe
     at com.sun.corba.ee.impl.logging.OMGSystemException.unsupportedFormatVersion(OMGSystemException.java:2653)
     at com.sun.corba.ee.impl.logging.OMGSystemException.unsupportedFormatVersion(OMGSystemException.java:2667)
     at com.sun.corba.ee.impl.io.IIOPInputStream.readFormatVersion(IIOPInputStream.java:279)If I set the User -> Course relationship (User.currentCourse) to null, I get following exception at the next relationship:
[#|2010-06-08T16:50:35.809+0200|WARNING|sun-appserver2.1|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.encoding|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-0;64;<<Context:ReaderWriter[value(de.studiorga.api.users.vo.User)]:de.studiorga.api.users.vo.User.userSettings>>;_RequestID=19515e8f-6f06-4b6b-a969-8d4d96cc6114;|
"IOP00810230: (MARSHAL) Bad valuetag 64 found while reading repository IDs<<Context:ReaderWriter[value(de.studiorga.api.users.vo.User)]:de.studiorga.api.users.vo.User.userSettings>>"
org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 230 completed: Maybe
     at com.sun.corba.ee.impl.logging.ORBUtilSystemException.badValueTag(ORBUtilSystemException.java:9030)
     at com.sun.corba.ee.impl.logging.ORBUtilSystemException.badValueTag(ORBUtilSystemException.java:9045)
     at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRepositoryIds(CDRInputStream_1_0.java:955)Does anybody know, what this means? I've searched the internet, bot does not find anything that helps.
All classes have serialVersionUID's set.
The application is running on jdk6. I've tried to switch to jdk5, but without success.
If needed, I can try to paste relevant code parts.
Hope somebody can help
Dirk
Edited by: Freak.2k on Jun 8, 2010 3:03 PM

The problem is not at the entities classes.
If I look the service up from an external application, I get the current result.
But if I look call it from another web application (in the same glassfish), I get the above exception.
Could the lib distribution be the cause of the problem?
MyApp.ear
- lib/myapp-api.jar
- myapp-ejb.jar
- myapp-web.jar
Service-web.war
- Web-inf/lib/myapp-api.jar
The myapp-api.jar (in ear/lib/) containts the remote interfaces and the entity classes) and the myapp-impl.jar containts the session bean implementations
The Service-web.war has its own copy of the api.jar.
The exception above comes, when using the services from the impl.jar in the service webapp.
Edited by: Freak.2k on Jun 8, 2010 10:26 PM

Similar Messages

  • DB commit causing CORBA exception

    Hello,
    I am using the following code to make an entry into the database :-
             DataServiceTransaction dtx = DataServiceTransaction.begin(true); 
             dtx.setSendChangesToAdapter(true);
             Currency c1 = new Currency();
             c1.setCurrencyCode("ABC");
             c1.setCurrencyName("Dummy Currency");
             c1.setCurrencyLastUpdated(new Date());
             c1.setCurrencyId(new Integer(1)); 
             dtx.createItem("TraderWorkStation.Currency", c1); 
             dtx.commit();
    The model has the following DMS annotations, while the entry is being created but there is a CORBA exception as shown below, pls advise
    <
    annotation name="DMS">
    <item name="datasource">java:comp/env/ALGODB</item>
    <item name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</item>
    <item name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JOTMTransactionManagerLookup</item>
    <item name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</item>  
    <item name="ServerGeneratedEntities">false</item>
    </annotation>
    [TWSServer]08/29/2011 12:40:14.159 [DEBUG] [Service.Data.Transaction] Started transaction using jndi name: java:comp/UserTransaction
    [TWSServer]08/29/2011 12:40:14.159 [DEBUG] [Service.Data.Transaction] Sending server message to adapter: Flex Message (flex.data.messages.DataMessage)
        operation = create
        id = {currencyId=1}
        clientId = srv:480E9B77-C609-9091-D39B-DBF64632AEFA
        correlationId = null
        destination = TraderWorkStation.Currency
        messageId = srv:480E9B77-C609-9091-D39B-DBF64632AEFA:7
        timestamp = 1314636014159
        timeToLive = 0
        body = TraderWorkStation.Currency@20
    [TWSServer]08/29/2011 12:40:14.160 [DEBUG] [Service.Data.General] Before TraderWorkStation.Currency.createItem (
        (TraderWorkStation.Currency) {currencyId=1} (23000154) {
            currencyName = Dummy Currency
            currencyCode = ABC
            currencyId = 1
            currencyLastUpdated = Mon Aug 29 12:40:14 EDT 2011
    In createItem() item =TraderWorkStation.Currency@20
    [TWSServer]08/29/2011 12:40:14.166 [DEBUG] [Service.Data.General] After TraderWorkStation.Currency.createItem (
        (TraderWorkStation.Currency) {currencyId=255} (23000154) {
            currencyName = Dummy Currency
            currencyCode = ABC
            currencyId = 255
            currencyLastUpdated = Mon Aug 29 12:40:14 EDT 2011
    [TWSServer]08/29/2011 12:40:14.166 [DEBUG] [Message.Timing] After invoke service: data-service; execution time = 7ms
    [TWSServer]08/29/2011 12:40:14.167 [ERROR] [Service.Data.Transaction] Error while committing transaction: org.omg.CORBA.BAD_INV_ORDER: The Servant has not been associated with an ORB instance  vmcid: 0x0  minor code: 0  completed: No stack=org.omg.CORBA.BAD_INV_ORDER: The Servant has not been associated with an ORB instance  vmcid: 0x0  minor code: 0  completed: No
            at org.omg.PortableServer.Servant._get_delegate(Servant.java:35)
            at org.omg.PortableServer.Servant._poa(Servant.java:99)
            at org.objectweb.jotm._SubCoordinator_Tie.deactivate(Unknown Source)
            at com.sun.corba.se.impl.javax.rmi.CORBA.Util.cleanUpTie(Util.java:512)
            at com.sun.corba.se.impl.javax.rmi.CORBA.Util.unexportObject(Util.java:489)
            at javax.rmi.CORBA.Util.unexportObject(Util.java:161)
            at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.unexportObject(PortableRemoteObject. java:173)
            at javax.rmi.PortableRemoteObject.unexportObject(PortableRemoteObject.java:119)
            at org.objectweb.jotm.TransactionImpl.cleanup(TransactionImpl.java:1167)
            at org.objectweb.jotm.Current.forgetTx(Current.java:1035)
            at org.objectweb.jotm.SubCoordinator.doAfterCompletion(SubCoordinator.java:1635)
            at org.objectweb.jotm.SubCoordinator.commit_one_phase(SubCoordinator.java:486)
            at org.objectweb.jotm.TransactionImpl.commit(TransactionImpl.java:318)
            at org.objectweb.jotm.Current.commit(Current.java:452)
            at flex.data.DataServiceTransaction.doCommit(DataServiceTransaction.java:1421)
            at flex.data.DataServiceTransaction.commit(DataServiceTransaction.java:366)
            at com.kuberre.hansa.twsserver.control.HansaApiMgr.fetchAllData(HansaApiMgr.java:46)
            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 flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)
            at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
            at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)
            at flex.messaging.AsyncMessageBroker.filteredRouteMessageToService(AsyncMessageBroker.java:5 76)
            at flex.messaging.filters.SyncMessageFilterChain$MessageFilterContext.filterRequest(SyncMess ageFilterChain.java:220)
            at flex.messaging.services.SyncReliableMessagingFilter.filterRequest(SyncReliableMessagingFi lter.java:206)
            at flex.messaging.filters.SyncMessageFilterChain$MessageFilterContext.filterRequest(SyncMess ageFilterChain.java:216)
            at flex.messaging.filters.SyncMessageFilterChain$MessageFilterContext.processRequest(SyncMes sageFilterChain.java:202)
            at flex.messaging.filters.SyncMessageFilterChain.filterRequest(SyncMessageFilterChain.java:1 40)
            at flex.messaging.AsyncMessageBroker.routeMessageToService(AsyncMessageBroker.java:564)
            at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1005)
            at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)
            at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
            at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
            at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
            at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)
            at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
            at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:353)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:304)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:851)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:278)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:515)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)

    Ok, It got fixed by setting useJTA = false as in
    DataServiceTransaction dtx = DataServiceTransaction.begin(false);
    also in the DMS settings  use-transactions="false"  

  • Applet-ejb; corba exception

    Hi, I am trying to access EJB from an applet thro' ejb-client.jar. It works fine if I include weblogic.jar in the applet archive but it throws a corba exception if I use wlclient.jar and wljmsclient.jar instead of weblogic.jar in the archive. As weblogic.jar is too huge I want to use thin clients. Could someone help me with this exception. I am using WLS8.1_sp4; jdk 1.4.2_05 and ie6 with latest jvm. Both applet and ejb are deployed in same localhost com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = localhost port = 7001 com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo te_host=localhost remote_port=7001 state=ESTABLISHED] com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message from stream com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Reading the mess age fully, size =1204 com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Handling GIOP 1. 0 LocateReply com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Constructing IIO PInputStream object com.sun.corba.se.internal.iiop.IIOPInputStream(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Setting the time stamp com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for localhost:7001,4,ORB ThreadGroup]): Creating message from stream com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Client get called: host = 172.16.65.14 port = 7001 com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Creating new connection Connection[type=IIOP_CLEAR_TEXT remo te_host=172.16.65.14 remote_port=7001 state=ESTABLISHED] com.sun.corba.se.internal.iiop.MessageMediator(Thread[JavaIDL Reader for 172.16.65.14:7001,4,ORB ThreadGroup]): Creating mess age from stream com.sun.corba.se.internal.iiop.ConnectionTable(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class, 4,file:/C:/projects/perforce/java/PlateMapViewer/-threadGroup]): Succesfully created socket for new connection com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file: /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): getEndpoint(IIOP_CLEAR_TEXT, 0, null) com.sun.corba.se.internal.iiop.GIOPImpl(Thread[thread applet-informatics.inventory.plates.editor.PlateMapEditor.class,4,file: /C:/projects/perforce/java/PlateMapViewer/-threadGroup]): createListener( socketType = IIOP_CLEAR_TEXT port = 0 ) javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.MARSHAL: vmcid: SUN minor cod e: 217 completed: Maybe] at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:81) at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:237) at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:171) at javax.naming.InitialContext.lookup(InitialContext.java:347) at informatics.inventory.plates.editor.EJBPlateMapDAO.<init>(Unknown Source) at informatics.inventory.plates.editor.PlateMapEditor.init(Unknown Source) at sun.applet.AppletPanel.run(AppletPanel.java:353) at java.lang.Thread.run(Thread.java:534) Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 217 completed: Maybe at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_wstring(CDROutputStream_1_0.java:464) at com.sun.corba.se.internal.iiop.CDROutputStream.write_wstring(CDROutputStream.java:189) at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameComponentHelper.write(WNameComponentHelper.java:79) at weblogic.corba.cos.naming.NamingContextAnyPackage.WNameHelper.write(WNameHelper.java:59) at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:79) at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:213) ... 6 more

    I had the same problem and finally caught a statement in one of the docs: "To facilitate the use of IIOP, always specify a valid IP address or DNS name for the Listen Address attribute in the configuration file (config.xml) to listen for connections." I edited my config.xml file and put in the ip address of the machine running my WLS and things started working. Hope this works for you.
    Regards,
    Ron

  • CORBA Exception during the deployment process

    I created a project which includes some application modules. I was attempting to deploy the application modules onto the EJB platform. But I was hit with CORBA Exceptions...
    Here is the last part of the whole deployment message:
    Copyright (c) 1997-1998 Borland International. All Rights Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs...java.lang.NoSuchFieldError: org.omg.CORBA.DefinitionKind: field dk_Estruct not found
    at com.visigenic.vbroker.ir.EstructDefImpl.<init>(EstructDefImpl.java:20)
    at com.visigenic.vbroker.ir.ContainerImpl.create_estruct(Compiled Code)
    at com.visigenic.vbroker.ir.ContainerImpl.create_estruct(Compiled Code)
    at com.visigenic.vbroker.ir._tie_ModuleDef.create_estruct(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toClass(JavaFrontEnd.java:141)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.toIRObject(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.javaToIdl(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.toIRObject(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.javaToIdl(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.toIRObject(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.parseClasses(Compiled Code)
    at oracle.aurora.ejb.deployment.GenerateEjb.generateCommStubs(Compiled Code)
    at oracle.aurora.ejb.deployment.GenerateEjb.invoke(Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(Compiled Code)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(Compiled Code)
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***
    Any ideas?
    null

    I created a project which includes some application modules. I was attempting to deploy the application modules onto the EJB platform. But I was hit with CORBA Exceptions...
    Here is the last part of the whole deployment message:
    Copyright (c) 1997-1998 Borland International. All Rights Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs...java.lang.NoSuchFieldError: org.omg.CORBA.DefinitionKind: field dk_Estruct not found
    at com.visigenic.vbroker.ir.EstructDefImpl.<init>(EstructDefImpl.java:20)
    at com.visigenic.vbroker.ir.ContainerImpl.create_estruct(Compiled Code)
    at com.visigenic.vbroker.ir.ContainerImpl.create_estruct(Compiled Code)
    at com.visigenic.vbroker.ir._tie_ModuleDef.create_estruct(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toClass(JavaFrontEnd.java:141)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.toIRObject(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.javaToIdl(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.toIRObject(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.javaToIdl(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at oracle.aurora.ejb.deployment.JavaFrontEnd.toInterface(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.toIRObject(Compiled Code)
    at com.visigenic.vbroker.util.fe.java.JavaFrontEnd.parseClasses(Compiled Code)
    at oracle.aurora.ejb.deployment.GenerateEjb.generateCommStubs(Compiled Code)
    at oracle.aurora.ejb.deployment.GenerateEjb.invoke(Compiled Code)
    at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(Compiled Code)
    at oracle.aurora.ejb.deployment.GenerateEjb.main(Compiled Code)
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***
    Any ideas?
    null

  • Corba exceptions, beg help!

    Hello buddies,
    I found the below Corba exceptions too often from the my stdout log files, do you have any idea?
    This is the only exception which can be found so far but is not 100% reproducible.
    Oct 28, 2009 2:24:01 AM com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl convertThrowableToSystemException
    WARNING: "IOP00010202: (UNKNOWN) Unknown user exception thrown by the server"
    org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.runtimeexception(ORBUtilSystemException.java:8365)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.convertThrowableToSystemException(CorbaMessageMediatorImpl.java:1918)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1868)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1821)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1548)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)
         at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
    Caused by: java.lang.RuntimeException: handleThrowableDuringServerDispatch: cannot create response.
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1845)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1880)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1821)
         at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:258)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
         ... 6 more
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203 completed: No
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(ORBUtilSystemException.java:2231)
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(ORBUtilSystemException.java:2253)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.writeLock(SocketOrChannelConnectionImpl.java:933)
         at com.sun.corba.se.impl.encoding.BufferManagerWriteStream.sendFragment(BufferManagerWriteStream.java:78)
         at com.sun.corba.se.impl.encoding.BufferManagerWriteStream.overflow(BufferManagerWriteStream.java:51)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_2.grow(CDROutputStream_1_2.java:211)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_2.alignAndReserve(CDROutputStream_1_2.java:182)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.internalWriteOctetArray(CDROutputStream_1_0.java:547)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_octet_array(CDROutputStream_1_0.java:567)
         at com.sun.corba.se.impl.encoding.CDROutputStream.write_octet_array(CDROutputStream.java:169)
         at com.sun.corba.se.spi.servicecontext.UnknownServiceContext.write(UnknownServiceContext.java:43)
         at com.sun.corba.se.spi.servicecontext.ServiceContexts.writeMapEntry(ServiceContexts.java:322)
         at com.sun.corba.se.spi.servicecontext.ServiceContexts.writeServiceContextsInOrder(ServiceContexts.java:283)
         at com.sun.corba.se.spi.servicecontext.ServiceContexts.write(ServiceContexts.java:247)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.write(ReplyMessage_1_2.java:175)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.createResponseHelper(CorbaMessageMediatorImpl.java:2199)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.createResponseHelper(CorbaMessageMediatorImpl.java:2162)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.createSystemExceptionResponse(CorbaMessageMediatorImpl.java:2087)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1871)
         ... 19 more

    Comments inline...
    jg wrote:
    Hi,
    Could you tell me what is the main benefit of communication between Ejbs and Corba interfaces except transactions, if I use Java on Corba side also.I'm not sure that it is possible, unless you do some extremely brittle things with the classes that are loaded. The interface from java-idl to an EJB is totally busted, as far as I can tell.
    Is it so good from the view of performance or something?Functionality is the only benefit, performance is not the objective.
    If I suggest such a structure that connecting only to a corba side or only to a ejb side, does not it work nearly the same?If I understand the question, you are wondering if it is possible to start from either IDL interfaces or EJB interfaces? The answer is that you must choose one or the other. If you choose IDL interfaces, consider WLE. If you Choose EJB interfaces, consider WLS.
    >
    >
    I am confused about the design strategy...
    Best regards
    jg

  • CORBA Exception whiel recieving document from rightsmanagement server

    Hello again,
    i have a problem with livecycle es rightsmanagement. after a policy was applied to a document i try to save the secured document via
    >Document.copyToFile(aFile)
    While saving tis exception is thrown:
    >26.01.2009 08:26:01 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl readFully
    WARNUNG: "IOP00410215: (COMM_FAILURE) Read of full message failed : bytes requested = 3.331.736 bytes read = 803.128 max wait time = 3.000 total time spent waiting = 3.190"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2572)
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2598)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readFully(SocketOrChannelCo nnectionImpl.java:628)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnect ionImpl.java:559)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPBody(MessageBase.java:4 13)
    at com.sun.corba.se.impl.transport.CorbaContactInfoBase.finishCreatingMessageMediator(CorbaC ontactInfoBase.java:183)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.finishReadingBits(SocketOrC hannelConnectionImpl.java:380)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConne ctionImpl.java:1184)
    at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.j ava:417)
    26.01.2009 08:26:01 com.adobe.idp.DocumentManagerClient requestRemotePassivation
    SCHWERWIEGEND: DOCS001: Unexpected exception. See the stack trace for details.
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectionAbort(ORBUtilSystemExcepti on.java:2372)
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectionAbort(ORBUtilSystemExcepti on.java:2390)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.finishReadingBits(SocketOrC hannelConnectionImpl.java:421)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConne ctionImpl.java:1184)
    at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.j ava:417)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2572)
    at com.sun.corba.se.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtil SystemException.java:2598)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.readFully(SocketOrChannelCo nnectionImpl.java:628)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnect ionImpl.java:559)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.readGIOPBody(MessageBase.java:4 13)
    at com.sun.corba.se.impl.transport.CorbaContactInfoBase.finishCreatingMessageMediator(CorbaC ontactInfoBase.java:183)
    at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.finishReadingBits(SocketOrC hannelConnectionImpl.java:380)
    ... 2 more
    Does anyone know this problem?
    Here is the code to apply the policy:
    >ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps);
    >RightsManagementClient rightsClient = new RightsManagementClient(factory);
    FileInputStream is = new FileInputStream("C:\\file.pdf");
    Document inPDF = new Document(is);
    DocumentManager documentManager = rightsClient.getDocumentManager();
    Document protectPDF = documentManager.applyPolicy(inPDF, "doc", "Global GL Policy Set", "Policy",
    "Domain", "user");
    protectPDF.passivate();
    File myFile = new File("C:\\secured.pdf");

    As I expected, it was a client/server classpath order issue...

  • Strange unmarshalling exception when starting RMI server

    I've run into a strange problem when running my RMI server. It worked fine yesterday, though I made a few changes since then, none of those changes should cause this to happen, as far as I know.
    Here's the exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: pub.interfaces.ClientIface
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:595)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at priv.server.TCMaster.<init>(TCMaster.java:97)
    at priv.server.TCMaster.main(TCMaster.java:71)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: pub.interfaces.ClientIface
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassNotFoundException: pub.interfaces.ClientIface
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707)
    at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
    at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
    at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
    at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
    at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
    at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    ... 9 more
    pub.interfaces.ClientIface is in the SAME directory as the RMI server class! What could be causing this?
    NOTE: I'm running this on Redhat Linux 9, jdk 1.5.0_04.

    Usually an unmarshalling exception is caused by the classes not matching up on the server & client end. The classes are there I think, because otherwise it would have thrown a classnotfound exception instead. Can you try actually copying and pasting the classes either from the server to the client or vice versa? I've had weird issues where sometimes the compiler compiles the same class differently in different locations, so your safest bet is to make sure the client & server classes (that you're passing as arguments & returning from the server) are identical.
    Good luck!

  • JSP causes strange ArrayIndexOutOfBounds exception

    Hello.
    I'm having a jsp, that outputs some information (this part is not important).
    I'm using Tomcat 5.0
    Sometimes it happens that that jsp throws ArrayIndexOutOfBounds: 45, and Tomcat starts to throw OutOfMemory exception.
    This would be not so strange if I had any array in the jsp. However, I do not. And furthermore, the line shown in the stacktrace log contains...a closing bracket.
    Also, I cannot reproduce this - it happens to some of my users.
    My suspection is, that someone is making an attack via the input parameters.
    I use Integer.parseInt to get the numeric values of the request parameters.
    Is there any vulnerability, or any way that Integer.parseInt throw an "ArrayIndexOutOfBounds" Exception, or I should look for something else. Thanks

    Hello.
    I'm having a jsp, that outputs some information (this part is not important).
    I'm using Tomcat 5.0
    Sometimes it happens that that jsp throws ArrayIndexOutOfBounds: 45, and Tomcat starts to throw OutOfMemory exception.
    This would be not so strange if I had any array in the jsp. However, I do not. And furthermore, the line shown in the stacktrace log contains...a closing bracket.
    Also, I cannot reproduce this - it happens to some of my users.
    My suspection is, that someone is making an attack via the input parameters.
    I use Integer.parseInt to get the numeric values of the request parameters.
    Is there any vulnerability, or any way that Integer.parseInt throw an "ArrayIndexOutOfBounds" Exception, or I should look for something else. Thanks

  • Unknown CORBA minor code in CORBA Exception

    If this is not the best forum for this Q, please advise.
    I've been using the JDK ORB to do some CORBA programming for some time with no problems. I added a new operation to a server side object, rant the client side stuff througn idlj again, and am getting a CORBA BAD_OPERATION
    exception when invoking this operation. I'm not sure if the source of the exception in on the server side or the client side. The exception major code is
    0x4f490000, and minor code is 387.
    The server ORB and naming service are both from ORB Express 2.6.3 from
    Object Interface (www.ois.com). I am using JDK 1.5.0_05 running on
    Windows XP Professional with Service Pack 2.
    I'm seeking information regarding the meaning of minor code 387. Any help or advice will be appreciated. The full stack trace information is given
    below. Thank you.
    Dennis Newbold
    ==========================================================
    Tst exception: org.omg.CORBA.BAD_OPERATION: vmcid: 0x4f490000 minor code: 387
    completed: No
    org.omg.CORBA.BAD_OPERATION: vmcid: 0x4f490000 minor code: 387 completed: No
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemEx
    ception(MessageBase.java:897)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_0.getSys
    temException(ReplyMessage_1_0.java:94)
    at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExce
    ptionReply(CorbaMessageMediatorImpl.java:572)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.proce
    ssResponse(CorbaClientRequestDispatcherImpl.java:430)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marsh
    alingComplete(CorbaClientRequestDispatcherImpl.java:326)
    at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaCl
    ientDelegateImpl.java:129)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    at VehicleNVM._VehicleNVMAccessStub.readProtectedNVM(_VehicleNVMAccessSt
    ub.java:169)
    at JVehicleNVMDevice.readProtectedNVM(JVehicleNVMDevice.java:193)
    at TestSuite.test6(DoTests.java:463)
    at TestSuite.runTests(DoTests.java:477)
    at DoTests.main(DoTests.java:492)

    It looks like it's coming from the server in a ServerException so it is probably an ORB Express code.

  • Strange Corba performance problem using java 1.6

    I have a java server talking to java and C++ clients using CORBA and moved from java 1.4.2 to 1.6.
    Using java 1.4.2 for a large block of data, the client consistently refreshes in about 28-32 seconds.
    Using Java 1.6 the times vary between 19 and 135 seconds.
    After restarting the server all clients consistently take a simlar amount of time (usually between 32-35 seconds). But sometimes when the server is started the clients see a time between 19-25 seconds, sometimes between 50-55 seconds, and very occassionally over we see times of over 100 seconds.
    Once started, the server seems to pick up some setting or behaviour that causes it to run at a fairly fixed rate.
    We have tried adjusting the GIOP fragment and block size, which can change the performance, but no mater what size we use, we still see this strange behaviour where the server sometime runs in "fast" mode and sometimes in "slow" mode.
    The server side cpu usage is higher when it is in "fast" mode. Client side cpu is higher in slow mode. Amount of data transfered does not appear to change.
    Server runing on Linux RedHat Ent 4u5 - client Linux RedHat 9, RedHat Ent 4u5.
    I see a similar behaviour even when I run the client and server on the same machine.
    Any thoughts on where I should look next anyone?
    Write a simple corba server/client that shows the problem.
    Investigate Other Corba networking settings
    measure the client server packet size and performance.
    Thanks

    3 forums is not enough to post this in, I mean, it is such a HUGE problem,
    you should post it in at least another 20 forums.

  • Very long and strange PPR exception on JSF page in Jdev 11.1.1.1

    We are taking a PPR exception ADF RC JSF application like that when we try to add a record to the table and commit.
    WARNING: ADF: Adding the following JSF error message: Unexpected exception caught: java.lang.NullPointerException, msg=null
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    at oracle.adf.model.binding.DCIteratorBinding.reportException(DCIteratorBinding.java:363)
    at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1656)
    at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1616)
    at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4233)
    at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:328)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:405)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.getEnabled(JUCtrlActionBinding.java:1635)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalGet(JUCtrlActionBinding.java:1729)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.internalGet(FacesCtrlActionBinding.java:316)
    at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:742)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
    at com.sun.el.parser.AstNot.getValue(AstNot.java:46)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
    at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:502)
    at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.decodeInternal(CommandLinkRenderer.java:54)
    at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:241)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1107)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:701)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:802)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXShowDetail.processDecodes(UIXShowDetail.java:101)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:36)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:106)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:109)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:36)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:106)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:109)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXForm.processDecodes(UIXForm.java:75)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:974)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
    at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:540)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1150)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:291)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    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.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    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.run(WebAppServletContext.java:3588)
    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:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
    at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1750)
    More(99%)
    at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1750)
    at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1640)
    at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1616)
    at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4233)
    at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:329)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:405)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.getEnabled(JUCtrlActionBinding.java:1635)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalGet(JUCtrlActionBinding.java:1729)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.internalGet(FacesCtrlActionBinding.java:316)
    at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:742)
    at javax.el.MapELResolver.getValue(MapELResolver.java:164)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
    at com.sun.el.parser.AstNot.getValue(AstNot.java:47)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
    at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:502)
    at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.decodeInternal(CommandLinkRenderer.java:54)
    at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:242)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1107)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:702)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:804)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXShowDetail.processDecodes(UIXShowDetail.java:101)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:36)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:107)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:110)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    More(99%)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:36)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:107)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:110)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXForm.processDecodes(UIXForm.java:76)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:988)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:975)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
    at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
    at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:541)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1151)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:291)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    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.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl

  • CORBA exception, MINOR CODE 1004

    Hi,
    I'm getting the following error in corba, does anyone knows why it happens?
    IOP02511004: (OBJECT_NOT_EXIST) Null servant"
    org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: SUN minor code: 1004 completed

    Since this is an IBM specific error, you'd do much better doing some searching at IBM's Java site - or asking there.

  • Strange runtime exception

    I have the code below and I receive a runtime exception:
    java.lang.NullPointerException <---- in Terminal window
    and
    StringIndexOutOfBoundsException: String Index Out of Range: 3 (in java.lang.String) <--- in Class editor window, at line 10
    My code:
    public class Test_1
    public static String numitorString, numaratorString;
    public static float numitor, numarator, val2, floatResult = 8.000000E-08f;
    public static String min, min2 = "+8.000000E-08";
    public static void convert()
        numitorString = min2.substring( (min2.indexOf("E") + 2), min2.indexOf("E") + 4  ); // line10
        numaratorString = min2.substring( 1, min2.indexOf("E") );
        numarator = Float.valueOf(numaratorString).floatValue();
        numitor = Float.valueOf(numitorString).floatValue();
        numitor = (float)Math.pow(10,numitor);
        val2 = numarator/numitor;
                if(  ((floatResult-(1.0E-13F) ) < (val2)) && (val2 < (floatResult+(1.0E-13F)) ) )
                    min = min2 = "ok";            
                else
                    min = "ok";
                    min2 = "nok";
        System.out.println(min);
        System.out.println(min2);           
    }When I run the program first time, it works all right printing out "ok" 2 times.
    The problem appears when I run it the second time, then this runtime exception appear.
    Can anybody help me?
    Edited by: aditm on Oct 11, 2007 2:13 PM

    Can anybody help me?They best help anyone could give you at this point is to give you the rudiments of debugging. For example, insert this line as the first line in method convert:
    System.out.println("min2=" + min2);Do you see why your substring calculation makes no sense?

  • Strange nullpointer exception

    When i excute the following the code, a nullpointer exception is thrown, however, the code (System.out.println ("qi guai" + price);) after the line (String title = ...) which causes the exception is still excuted..... Anyone can help me figure it out, thanks in advance! ( is it possible that it's due to the parsing of the xml in the first place?? I run the code in redhat, while the zip, xml files are created in windows using editplus)
    // getting the xml file from a zip file
    ZipInputStream bulk = new ZipInputStream(some InputStream);
    ZipEntry contentEntry = bulk.getNextEntry();
    byte[] temp = new byte[(new Long(contentEntry.getSize())).intValue()];
    bulk.read(temp);
    // Parsing the xml file...
    Document contentxml = null;
    InputStream is = new ByteArrayInputStream(temp);
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    try {
    DocumentBuilder builder = factory.newDocumentBuilder();
    contentxml = builder.parse (is);
    } catch (some Exception) {
    NodeList contentlist = contentxml.getDocumentElement().getElementsByTagName("content");
    // for each content
    for (int i=0; i<contentlist.getLength(); i++) {
    Element content = (Element) contentlist.item(i);
    String title = (content.getElementsByTagName("title")).item(0).getFirstChild().getNodeValue();
    String price = (content.getElementsByTagName("price")).item(0).getFirstChild().getNodeValue();
    System.out.println ("qi guai" + price);
    ps: the xml file:
    <root>
    <content>
    <title>bulktest</title>
    <price>Default</price>
    </content>
    </root>

    now solved

  • Strange casting exception

    Why would I get this casting exception when com.sun.messaging.QueueConnectionFactory implements ConnectionFactory?
    I tried casting to javax.jms.QueueConnectionFactory with same result.
    java.lang.ClassCastException: com.sun.messaging.QueueConnectionFactory cannot be cast to javax.jms.ConnectionFactory
    My code snippet is
    Hashtable<String, String> env = new Hashtable<String, String>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
    env.put(Context.PROVIDER_URL, "file:///C:/Temp");
    Context ctx;
    try {
    ctx = new InitialContext(env);
    String lookupName = "MyConnectionFactory";
    cFactory = (ConnectionFactory) ctx.lookup(lookupName);
    catch(NamingException e) {
    }

    it's possibly a classloading issue. assuming the QueueConnectionFactory implementation does implement ConnectionFactory, it's possible that the instance you are retrieving references ConnectionFactory from a different classloader than the code you are running. you need to make sure that the reference you get from jndi and the code you are running have a shared classloader which contains the ConnectionFactory class.

Maybe you are looking for