1)unexpected Exception:page fault accessing tag table 2)java.rmi.MarshalException:Unexpected Exception page fault accessing page table

i am trying to call WCF service by using Jsr 172 method
but i got the two error
1)unexpected Exceptionage fault accessing tag table
2)java.rmi.MarshalException:Unexpected Exception page fault accessing page table
does anybody knows about how to solve this error.
Plz help me
thanks in advance!!!!!!!!!!!
  My Code is:-----
package com.rim.sample.webservicedemo;
import java.rmi.RemoteException;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.container.MainScreen;
public class webservice extends UiApplication
    public webservice()
        pushScreen(new myscreen());
    public static void main(String[] args)
        webservice t=new webservice();
        t.enterEventDispatcher();
final class myscreen extends MainScreen implements FieldChangeListener
    //taking this program from :-http://blog.bayestech.com/?p=78
     public myscreen()
         setTitle("HI");
         ButtonField g=new ButtonField("OK",ButtonField.CONSUME_CLICK);
         g.setChangeListener(this);
         add(g);
    public void fieldChanged(Field field, int context)
        try
            testServiceCall();
        catch (RemoteException e)
            Dialog.alert(e.getMessage());
            Dialog.alert(e.toString());
     public void testServiceCall() throws RemoteException
            TestService_Stub service = new TestService_Stub();
            //String  message = service.helloWorld();
           // Dialog.alert(message);
          // String  message2=service.echoName("ankush,nilesh,chetan,ravi");
            //Dialog.alert(message+"  second message  "+message2);
            // Object addition_output=service.addition(7,2);
             //Dialog.alert("your addition is" +  String.valueOf(addition_output));
             String  login_message = service.logOn_method("abcdefg","aaaaa");
             Dialog.alert("login successfully");
             Dialog.alert(login_message);
//////////////TestService_Stub class file///////////////////////
package com.rim.sample.webservicedemo;
import java.rmi.RemoteException;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.microedition.xml.rpc.Operation;
import javax.microedition.xml.rpc.Type;
import javax.microedition.xml.rpc.ComplexType;
import javax.microedition.xml.rpc.Element;
import net.rim.device.api.ui.component.Dialog;
public class TestService_Stub implements TestService,javax.xml.rpc.Stub
    ///calling web services by using jsr-172 method
    //website link :- http://blog.bayestech.com/?p=78
    private String[] _propertyNames;
    private Object[] _propertyValues;
  //  private Object[] _propertyValues1;
    public TestService_Stub()
        _propertyNames = new String[] { ENDPOINT_ADDRESS_PROPERTY };
       // _propertyValues = new Object[] { "http://test.bayestech.com/Services/TestService.asmx" };
      // _propertyValues = new Object[] { "http://soft21/testWCF/Service.svc" };
        _propertyValues = new Object[] { "< url name >" };
 protected void _prepOperation(Operation op)
        for (int i = 0; i < _propertyNames.length; ++i)
            op.setProperty(_propertyNames[i], _propertyValues[i].toString());
 public String logOn_method(String usr_name,String password_name ) throws java.rmi.RemoteException
      Object inputObject[] = new Object[]
              usr_name,
              password_name
      Operation op = Operation.newInstance( _qname_operation_logOn, _type_logOn, _type_logOnResponse );
      _prepOperation( op );
      op.setProperty( Operation.SOAPACTION_URI_PROPERTY, "<soap action name >" );
      Object resultObj;
      try
          resultObj = op.invoke( inputObject );
          Dialog.alert((String)resultObj);
      catch( JAXRPCException e )
          Throwable cause = e.getLinkedCause();
          if( cause instanceof java.rmi.RemoteException )
              throw (java.rmi.RemoteException) cause;
          Dialog.alert(e.getMessage());
          throw e;
      return (String )((Object[])resultObj)[0];
 protected static final QName _qname_operation_logOn = new QName( "<soap action name>", "logOn" );
    protected static final QName _qname_logOnResponse = new QName( "<soap action name>", "logOnResponse" );
    protected static final QName _qname_logOn = new QName( "<soap action name>", "logOn" );
    protected static final Element _type_logOn;
    protected static final Element _type_logOnResponse;
    static
 _type_logOn = new Element( _qname_logOn, _complexType( new Element[] {
             new Element( new QName( "<soap action name>", "usr_name" ), Type.STRING, 0, 1, false ),
             new Element( new QName( "<soap action name>", "password_name" ), Type.STRING, 0, 1, false )}), 1, 1, false );
        _type_logOnResponse = new Element( _qname_logOnResponse, _complexType( new Element[] {
              new Element( new QName( "<soap action name>", "logResult" ), Type.INT, 0, 1, false )}), 1, 1, false );
    private static ComplexType _complexType( Element[] elements )
        ComplexType result = new ComplexType();
        result.elements = elements;
        return result;
    public void _setProperty(String name, Object value) {
        // TODO Auto-generated method stub
    public Object _getProperty(String name) {
        // TODO Auto-generated method stub
        return null;
    public String echoName(String name) throws RemoteException {
        // TODO Auto-generated method stub
        return null;
    public String helloWorld() throws RemoteException {
        // TODO Auto-generated method stub
        return null;
i am trying to call WCF service by using Jsr 172 method
but i got the two error
1)unexpected Exceptionage fault accessing tag table
2)java.rmi.MarshalException:Unexpected Exception page fault accessing page table
does anybody knows about how to solve this error.
Plz help me
thanks in advance!!!!!!!!!!!
  My Code is:-----
package com.rim.sample.webservicedemo;
import java.rmi.RemoteException;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.container.MainScreen;
public class webservice extends UiApplication
    public webservice()
        pushScreen(new myscreen());
    public static void main(String[] args)
        webservice t=new webservice();
        t.enterEventDispatcher();
final class myscreen extends MainScreen implements FieldChangeListener
    //taking this program from :-http://blog.bayestech.com/?p=78
     public myscreen()
         setTitle("HI");
         ButtonField g=new ButtonField("OK",ButtonField.CONSUME_CLICK);
         g.setChangeListener(this);
         add(g);
    public void fieldChanged(Field field, int context)
        try
            testServiceCall();
        catch (RemoteException e)
            Dialog.alert(e.getMessage());
            Dialog.alert(e.toString());
     public void testServiceCall() throws RemoteException
            TestService_Stub service = new TestService_Stub();
            //String  message = service.helloWorld();
           // Dialog.alert(message);
          // String  message2=service.echoName("ankush,nilesh,chetan,ravi");
            //Dialog.alert(message+"  second message  "+message2);
            // Object addition_output=service.addition(7,2);
             //Dialog.alert("your addition is" +  String.valueOf(addition_output));
             String  login_message = service.logOn_method("abcdefg","aaaaa");
             Dialog.alert("login successfully");
             Dialog.alert(login_message);
//////////////TestService_Stub class file///////////////////////
package com.rim.sample.webservicedemo;
import java.rmi.RemoteException;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.microedition.xml.rpc.Operation;
import javax.microedition.xml.rpc.Type;
import javax.microedition.xml.rpc.ComplexType;
import javax.microedition.xml.rpc.Element;
import net.rim.device.api.ui.component.Dialog;
public class TestService_Stub implements TestService,javax.xml.rpc.Stub
    ///calling web services by using jsr-172 method
    //website link :- http://blog.bayestech.com/?p=78
    private String[] _propertyNames;
    private Object[] _propertyValues;
  //  private Object[] _propertyValues1;
    public TestService_Stub()
        _propertyNames = new String[] { ENDPOINT_ADDRESS_PROPERTY };
       // _propertyValues = new Object[] { "http://test.bayestech.com/Services/TestService.asmx" };
      // _propertyValues = new Object[] { "http://soft21/testWCF/Service.svc" };
        _propertyValues = new Object[] { "< url name >" };
 protected void _prepOperation(Operation op)
        for (int i = 0; i < _propertyNames.length; ++i)
            op.setProperty(_propertyNames[i], _propertyValues[i].toString());
 public String logOn_method(String usr_name,String password_name ) throws java.rmi.RemoteException
      Object inputObject[] = new Object[]
              usr_name,
              password_name
      Operation op = Operation.newInstance( _qname_operation_logOn, _type_logOn, _type_logOnResponse );
      _prepOperation( op );
      op.setProperty( Operation.SOAPACTION_URI_PROPERTY, "<soap action name >" );
      Object resultObj;
      try
          resultObj = op.invoke( inputObject );
          Dialog.alert((String)resultObj);
      catch( JAXRPCException e )
          Throwable cause = e.getLinkedCause();
          if( cause instanceof java.rmi.RemoteException )
              throw (java.rmi.RemoteException) cause;
          Dialog.alert(e.getMessage());
          throw e;
      return (String )((Object[])resultObj)[0];
 protected static final QName _qname_operation_logOn = new QName( "<soap action name>", "logOn" );
    protected static final QName _qname_logOnResponse = new QName( "<soap action name>", "logOnResponse" );
    protected static final QName _qname_logOn = new QName( "<soap action name>", "logOn" );
    protected static final Element _type_logOn;
    protected static final Element _type_logOnResponse;
    static
 _type_logOn = new Element( _qname_logOn, _complexType( new Element[] {
             new Element( new QName( "<soap action name>", "usr_name" ), Type.STRING, 0, 1, false ),
             new Element( new QName( "<soap action name>", "password_name" ), Type.STRING, 0, 1, false )}), 1, 1, false );
        _type_logOnResponse = new Element( _qname_logOnResponse, _complexType( new Element[] {
              new Element( new QName( "<soap action name>", "logResult" ), Type.INT, 0, 1, false )}), 1, 1, false );
    private static ComplexType _complexType( Element[] elements )
        ComplexType result = new ComplexType();
        result.elements = elements;
        return result;
    public void _setProperty(String name, Object value) {
        // TODO Auto-generated method stub
    public Object _getProperty(String name) {
        // TODO Auto-generated method stub
        return null;
    public String echoName(String name) throws RemoteException {
        // TODO Auto-generated method stub
        return null;
    public String helloWorld() throws RemoteException {
        // TODO Auto-generated method stub
        return null;

Vishnu,
I'm working on Ludwig's testcase.
Ludwig's testcase is based on read-only View Objects.
Is it also the case in your application ?
I was unable to reproduce with VOs based on EOs.
With read-only VOs, you can avoid the ArrayIndexOutOfBoundsException by setting the "Key Attribute" property for the PK of the Master VO.
See the ADF Developer's Guide, topic "7.9.3 What You May Need to Know About Enabling View Object Key Management for Read-Only View Objects"
URL: http://download-uk.oracle.com/docs/html/B25947_01/bcvoeo009.htm#BABJEEFA
Regards,
Didier.

Similar Messages

  • Java.rmi.RemoteException: EJB Exception: while calling an EJB method,

    Hi
    I am getting below error while calling a stateless EJB method. There is some validation checks while performing ejb's modify() method and a RuntimeException is thrown in case of validation failure.The modify() method internally calls other stateless ejb as well.
    The problem I'm facing is, instead of getting the expected RuntimeException in the Servlet, i am getting RemoteException. I am using WLS 9 MP1, all participating ejbs are stateless and i am using default transaction attributes(Supports) for these ejbs.
    The interesting part is, at the ejb layer RuntimeException is thrown as expected, but this exception changed to RemoteException at the servlet's end where i am catching the ejb call exceptions.
    I am new to WLS, please suggest/help me out of this exception.
    Any help is truly appreciated.
    java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.RuntimeException:
         at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:95)
         at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:713)
         at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:681)
         at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:447)
         at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)
         at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)
         at com.mycomp.base.BaseController_8x2e52_EOImpl.modify(BaseController_8x2e52_EOImpl.java:149)
         at com.mycomp.webgui.servlet.FrontComponent.service(FrontComponent.java:207)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         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:3245)
         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:2003)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Thanks!
    Edited by: user10721298 on Feb 23, 2009 4:16 AM

    Hi,
    If i don't misunderstand, you are using the RuntimeException as an application exception, right?
    Have you annotated it or denoted it in deployment descriptor?
    Thanks,
    Amy

  • In the Firefox browser, when i click button in ADF page, then popup  the OAF page in iframe tag,and then when i  click the PPR bean in  OAF page, then Firefox  browser reload to ADF page. This is not the right response,browser should not reload the ADF pa

    In the Firefox browser, when i click button in ADF page, then popup  the OAF page in iframe tag,and then when i  click the PPR bean in  OAF page, then Firefox  browser reload to ADF page. This is not the right response,browser should not reload the ADF page.It should stays in OAF page or goto another OAF page. and in other browser such ad IE,We get the right response.

    hello, normally such issues are caused by a firewall/security software which doesn't recognize & therefore blocks new firefox versions. please remove all program rules for firefox from your firewall and let it detect the new version of the browser again.
    [[Fix problems connecting to websites after updating Firefox]]

  • Error message:- java.rmi.RemoteException: Unexpected fault was returned by

    Hi All,
    When we trying to fetch documents from plum tree portal using a java api, we are getting below error message. please can anyone guide us,
    error message:- java.rmi.RemoteException: Unexpected fault was returned by the server (faultcode: Server.userException, faultstring: org.xml.sax.SAXParseException: Content is not allowed in prolog.)
    thanks in advance
    Srinivas

    Cross-posted:
    error message:- java.rmi.RemoteException: Unexpected fault was returned by

  • Java.rmi.RemoteException: Unexpected fault was returned by the server

    Hi,
    when we try to have some concurrent request, we've got the following error :
    java.rmi.RemoteException: Unexpected fault was returned by the server (faultcode: Server.userException, faultstring: java.net.SocketTimeoutException: Read timed out). at com.plumtree.remote.prc.collaboration.project.ProjectWrapper.store()V(ProjectWrapper.java:263) at com.airbus.collaboration.pcs.api.AirbusProject.store()V(AirbusProject.java:102)
    We don' have this problem for a unique request.
    Can you help us ?
    Thanks,
    Stephane RODIERE

    EDK is not thread safe.  We do not expect people to use it in a mult-threaded way.  Also, the read timed out error that you are getting can happen for a lot of reasons outside of edk's control.  Are you seeing the same read timed out error consistently in the same call?

  • Java.rmi.RemoteException: Runtime exception; nested exception

    I am developing a web service standalone client using J2SDK 1.5 and I get the following exception below in one of the generated stubs. I am using Netbean 5.0. Please how can the expected and actual be matched. Thanks
    java.rmi.RemoteException: Runtime exception; nested exception is:
    unexpected element name: expected=getAllLatestNoonRatesReturn, actual={http://v1_0.WebService.fxrates.markets}getAllLatestNoonRatesReturn
    at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:331)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:313)
    at fxwsclient.FXWS_Stub.getAllLatestNoonRates(FXWS_Stub.java:129)
    at fxwsclient.ClientMain.main(ClientMain.java:45)
    Caused by: unexpected element name: expected=getAllLatestNoonRatesReturn, actual={http://v1_0.WebService.fxrates.markets}getAllLatestNoonRatesReturn
    at fxwsclient.FXWS_getAllLatestNoonRates_ResponseStruct2_SOAPSerializer.doDeserialize(FXWS_getAllLatestNoonRates_ResponseStruct2_SOAPSerializer.java:55)
    at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:192)
    at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155)
    at fxwsclient.FXWS_Stub._deserialize_getAllLatestNoonRates(FXWS_Stub.java:322)
    at fxwsclient.FXWS_Stub._readFirstBodyElement(FXWS_Stub.java:290)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
    ... 2 more
    BUILD SUCCESSFUL (total time: 6 seconds)

    Looks like the server is sending a namespace qualified response when a non-qualified response is expected. If you are accessing a .NET endpoint this is a known issue with their implementation.

  • WS - "java.rmi.MarshalException: (1)Missing end tag for Body or Envelope"

    HI All,
    I'm new of this forum but I really hope you could help me solving the problem I have to connect Web Services and midlets.
    Somehow my configuration works with some services I've found online but when I invoke very simple services deployed on my server(s) I always have "java.rmi.MarshalException: (1)Missing end tag for Body or Envelope" exception"
    Let me add some more information to the problem:
    System Configuration:
    - JBoss (but I also tried axis) - standard installation (http/1.1)
    - WTK 2.5 (but I also tried 2.2) - standard installation
    - I tried "trusted" and "untrusted" security configuration of the servlet
    - Netbeans IDE 5.0 (to create both Midlets and WS)
    - WS uses document/literal as expected by JSR 172
    The midlet is created with no problems but at the time of invocation the server throws the above exception (which is part of rmi. remoteException)
    By monitoring the network both at client and server side I noticed that the information received is chuncked after 768 bytes. However, If the (soap) reponse is less than such value, I still have the error.
    Using Http/1.1. at the mobile side, the service does not return me anything (0kb) while if I set the mobile device to http/1.0, I get the above error.
    I really have to make the midlet running so any type of help will be really appreciated!!
    Thanks in advance

    Hi all,
    as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
    It is correct that is the empty tag <soapenv:Header /> causing this error.
    To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
    I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
    Here the class to modify:
    axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
    by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
            OMNamespace ns =
                    new OMNamespaceImpl(
                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                            SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
            SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
            //createSOAPHeader(env); the line to be commented
            createSOAPBody(env);
            return env;
        }Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
    A little tricky to fix this bug but now my app runs perfectly ;)
    Enjoy!
    Romain Pellerin
    http://www.gasp-mobilegaming.org

  • Java.rmi.RemoteException: EJB Exception: ; nested exception is:

    Hi All,
    Please some out help me out,
    i have a written a stateless session bean, which is compiled with out errors, and i deployed it in wblogic server.
    when i run my client program, i get this exceptions. please some one help me how to tackle this,
    Thanks in advance,
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: secure/SDK/SAPIAgent
    Start server side stack trace:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    at SAPI.SAPIBean.<init>(SAPIBean.java:18)
    at SAPI.SAPIBean_163r2w_Impl.<init>(SAPIBean_163r2w_Impl.java:31)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at weblogic.ejb20.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:129)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:266)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:148)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:142)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:138)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl.getSession(SAPIBean_163r2w_EOImpl.java:234)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:455)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:396)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:731)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:391)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:223)
    End server side stack trace
    ; nested exception is: java.lang.NoClassDefFoundError: SDK/SAPIAgent
    Murali

    Hi All,
    Please some out help me out,
    i have a written a stateless session bean, which is compiled with out errors, and i deployed it in wblogic server.
    when i run my client program, i get this exceptions. please some one help me how to tackle this,
    Thanks in advance,
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: secure/SDK/SAPIAgent
    Start server side stack trace:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    java.lang.NoClassDefFoundError: SDK/SAPIAgent
    at SAPI.SAPIBean.<init>(SAPIBean.java:18)
    at SAPI.SAPIBean_163r2w_Impl.<init>(SAPIBean_163r2w_Impl.java:31)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at weblogic.ejb20.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:129)
    at weblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:266)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:148)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:142)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:138)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:70)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl.getSession(SAPIBean_163r2w_EOImpl.java:234)
    at valyd.SAPI.SAPIBean_163r2w_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:455)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:396)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:731)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:391)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:223)
    End server side stack trace
    ; nested exception is: java.lang.NoClassDefFoundError: SDK/SAPIAgent
    Murali

  • Java.rmi.MarshalException: Exception

    hi,
    i am getting the below error while displaying the data from a servlet. Here in servlet i had written the code to store values. And then i had written a function "getDetails()" which will give result set object. At that time i am getting this error. This method code is in bena class.
    In servlet this is the code i had wriiten
    InitialContext initContext=new InitialContext();
                        home=(InsuranceHome)initContext.lookup(ejbJndiName);
                        remote=home.create();
                        int n=remote.insertDetails(cname,frm_date,to_date,type,ppaid,rmks);
                        ResultSet rs=remote.getResults();
                        while(rs.next())
                             System.out.print(rs.getString(1));
                             System.out.print(rs.getString(2));
                             System.out.print(rs.getString(3));
                             System.out.println(rs.getString(4));
                        System.out.println(n);
    [10/Apr/2008:11:34:06] INFO ( 3108): CORE3282: stdout:      java.rmi.MarshalException: Exception occurred in server thread; nested exception is:
    [10/Apr/2008:11:34:06] INFO ( 3108): CORE3282: stdout:      java.io.NotSerializableException

    the NEVER used here, is it an EJB specification issue or design issue. If EJB specification issue then you should be right of which i am not sure. Please quote reference.
    If design issue then NEVER is wrong. Its depends on task to be addressed. Data Transfer Pattern allows the use of Rowset to exchange data between clients and servers.These options are either DTOs, containers, RowSets all are serializabel.How will you managed bandwidth and memory issues in a critical application where by clients needs to get a copy of data store in their memory(delete,update, insert) and after finished with their task they simply click synchronized.
    this copy(rowset) in client is simply sent to sever for updates rather than doing update, insert, delete request to server for every operation.
    This is a pattern design issue and the choice of Data Transfer Object depends on the task and type of communication between clients and server.
    A RowSet in the situation whereby 1. number of request to server has to be reduced, 2. connection to server has to be minimal. 3. each client gets a copy of his data as a snapshot of server contents processed it an then do synchronization when needed(bulk).Also this is issued when memory of client is a big issue like mobiles so installing a DB on the mobile is not possible. The rowset sent to client must not hold a connection to DB.
    Ivo Sumelong

  • Servlet failed with Exception java.rmi.UnexpectedException: Unexpected exception in personal.web.news.NewsBean.getID():

              When I run a jsp file, the server has the exception:
              javax.ejb.EJBException
              at personal.web.news.NewsBean.ejbLoad(NewsBean.java:169)
              at weblogic.ejb.internal.EntityEJBContext.load(EntityEJBContext.java:158)
              at weblogic.ejb.internal.EntityEJBContext.afterBegin(EntityEJBContext.java:212)
              at weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObject.java:162)
              at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:421)
              at personal.web.news.NewsBeanEOImpl.getID(NewsBeanEOImpl.java:282)
              at jsp_servlet._news._jspService(_news.java, Compiled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              I check the JEBean, I can't find any problem. All specification followed the requietments. Can any one tell me how I can resolve the problem?
              Cheers
              Oliver
              

              When I run a jsp file, the server has the exception:
              javax.ejb.EJBException
              at personal.web.news.NewsBean.ejbLoad(NewsBean.java:169)
              at weblogic.ejb.internal.EntityEJBContext.load(EntityEJBContext.java:158)
              at weblogic.ejb.internal.EntityEJBContext.afterBegin(EntityEJBContext.java:212)
              at weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObject.java:162)
              at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:421)
              at personal.web.news.NewsBeanEOImpl.getID(NewsBeanEOImpl.java:282)
              at jsp_servlet._news._jspService(_news.java, Compiled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              I check the JEBean, I can't find any problem. All specification followed the requietments. Can any one tell me how I can resolve the problem?
              Cheers
              Oliver
              

  • Creating an auto incrementing field with CREATE TABLE from Java

    I'm using the "sun.jdbc.odbc.JdbcOdbcDriver" to get a connection towards an ODBC data source that's linked to a Access (.mdb) database.
    I've tried various combinations in my CREATE TABLE statement execution in order to create a table with an auto incrementing integer but neither of them work, not even the most obvious one:
    stmt.executeUpdate("CREATE TABLE mytable(uid integer AUTO_INCREMENT PRIMARY KEY);");
    I always get this runtime exception: *java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition*; and AUTO_INCREMENT is the problem. I've tried all variations like AUTO, INCREMENT, AUTOINCREMENT and such, but nothing works.
    I've looked everywhere but couldn't find an answer to this. Thanks for the help.

    You used MySQL syntax. I think you agree with me that Access isn't a MySQL database. Either use MySQL with a real JDBC driver (recommended) or use Access syntax.
    That said, creating databases and tables using Java is a bad idea. The database and table must be already there. With Java you just do the usual table operations like select, insert, update and delete. Nothing more is needed.

  • Java.sql.SQLException: setNString, Exception = 3

    Hello,
    We have a situation where during a multi user testing, we are getting the following exception while excecuting a query. We are using the datasource mechanism provided by web logic.
    When we tries to set a param value using the setNString, we get the following. The exception does not give you more information.
    java.sql.SQLException: setNString, Exception = 3
    The logic flow looks like this:
    Connection = datasource.getConnection();
    try {
    PrepareStatement = connection.preparestatement();
    statement.setNString(param index, string value);
    finally {
    connection.close();
    Any ideas?
    Thanks,
    Sree Menon ([email protected])

    I left out some other details:
    The insert statement is:
    insert into CALCMGRSEQUENCES (ID, NAME, UPPERNAME, DESCRIPTION, OWNER, CREATED, MODIFIEDBY, L
    ASTMODIFIED, LOCKEDBY, OPENFOREDITINGBY, ISOPENFOREDITING, OBJECTTYPEID, PRODUCT
    TYPE, PROPERTY, BODY, LOCATION, LOCATIONSUBTYPE, VALIDATESTATUS, DEPLOYSTATUS) v
    alues(SEQ_CALCMGRSEQUENCES.NEXTVAL, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
    The exception stack also says:
    Caused By: java.lang.ArrayIndexOutOfBoundsException: 3
    at oracle.jdbc.driver.OraclePreparedStatement.setFormOfUse(OraclePreparedStatement.java:12563)
    at oracle.jdbc.driver.OraclePreparedStatement.setNStringInternal(OraclePreparedStatement.java:13873)
    at oracle.jdbc.driver.OraclePreparedStatement.setNString(OraclePreparedStatement.java:13681)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setNString(OraclePreparedStatementWrapper.java:240)
    at weblogic.jdbc.wrapper.PreparedStatement.setNString(PreparedStatement.java:1553)
    Clearly, there are more than 3 parameters.
    Thanks,
    Sree

  • Accessing XML files through java

    Can any one explain me the easiest way of accessing XML files from Java.

    Hi,
    If you want to only access the XML file, use the SAX parser It will be very easy to handle and identify the element and value.
    else if u want to change the XML value also, then better go with DOM, Which has very good flexiblity.
    use according to the need, let me know if any help is required......
    With Cheers
    PrasannA

  • Accessibility Tags - What to do with Table of Contents & More

    I am looking for some help and advice regarding tagging a PDF document for accessibility using Acrobat 9 Pro.
    Until now, the most I've ever done with Acrobat is create the occasional straight-text document and a few simple forms.  But my boss has asked me to tag a programming manual for accessibility and I'm a little lost.  There are a lot of both images and code samples in this text that I have no idea how to work with because the automatic tagging seems to have gone haywire.
    I downloaded the Acrobat 9 Pro Accessibility Repair Workflow document and have done the following:
    Determined that my document is not a scanned document.
    Determined that there are no forms or buttons in this document.
    Set the language to English.
    Set the document security to "no security".
    Determined that the document has bookmarks.
    Determined that the document is not a tagged document.
    Run the Accessibility Full Check.
    This is where I ran into problems--both because of the nature of the document and my own ignorance of the "making accessible" process.
    My table of contents is split up into multiple areas shown as tables but the individual items in the table are irregularly identified--I have no clue how to get them to appear correctly.  Any tips would be appreciated.  Should the Table of Contents even be a table?  I know it's called a table, but it has multiple levels and I'm just not sure what to do with it.
    There are also several tables in the document.  They appear mostly OK, but Acrobat seems to think that the tables are made up of individual figures and produces "No alternate text for Figure" errors on some of them.
    Finally, how on earth do I do text flow on code??  The code is all text, not images.
    If anyone knows anything about this whole accessibility thing I would greatly appreciate your input.
    Thank you!
    Jenn

    It may actually be faster to save it as a DOC file. The formatting may get messed up, but fixing that may be faster than doing all of the tagging you need to do. At the end, you have a document that can easily be modified in the future and recreated in PDF form. The long-term workflow should be better. My guess you will find that setting up a style sheet in WORD (or using an existing one) will be easy to use in addressing the issues. When I think of setting a bookmark in some location, I think of the work in setting just one bookmark manually in Acrobat. I think that WORD would actually be easier if the file transfer is readonably. Worth a try anyway.

  • How to properly handle Exception thrown in a .tag file?

    I've got a .jsp file that makes use of some custom tags, each defined in their own .tag file, and located in WEB-INF/tags. I'm having a lot of trouble with the scenario of cleanly dealing with an exception raised by scriptlets in either a .jsp file, and a .tag file. I'm using both Java and Tomcat 6....
    Originally, I wanted to use .tag files in order to componentize common elements that were present in .jsp pages, as well as move ugly scriptlets out of .jsp pages, and isolate them in tag files with their associated page elements.
    Things started getting hairy when I started exploring what happens when an exception is thrown (bought not handled) in a scriptlet in a .tag file. Basically, my app is a servlet that forwards the user to various .jsp pages based on given request parameters. The forwarding to the relevant .jsp page is done by calls to the following method:
    servletContext.getRequestDispatcher("/" + pageName).forward(request, response);
    Where 'pageName' is a String with the name of the .jsp I want to go to...
    Calls to this method are enclosed in a try block, as it throws both a ServletException, and IOException...
    When either my .jsp, or .tag throw an exception in a scriptlet, the exception is wrapped in a JSPException, which is then wrapped in a ServletException.
    I can catch this exception in my servlet... but then what? I want to forward to an error page, however, in the catch block, I can't forward in response to this exception, as that results in an IllegalStateException, as the response has already been committed. So what do I do? How do I get from this point, to my "error.jsp" page?
    It was suggested to me that I use the <% @ page isErrorPage="true" %> directive in my error.jsp,
    and the in my real .jsp, use <%page errorPage="/error.jsp" %>.
    This works great when the exception is thrown in my .jsp.... But when the exception is thrown in the .tag file... not so much...
    My .jsp page was rendered up until the point where the <my:mytag/> (the tag with the offending raised exception) was encountered. Then, instead of forwarding to the error page when the error in the tag is encountered, the error page is rendered as the CONTENT of of my TAG. The rest of the .jsp is then NEVER rendered. I checked the page source, and there is no markup from the original .jsp that lay below the my tag. So this doesn't work at all. I don't want to render the error page WITHIN the half of the .jsp that did render... Why doesn't it take me away from the .jsp with the offending tag altogether and bring me to the error.jsp?
    Then it was suggested to me that I get rid of those page directives, and instead define error handling in the web.xml using the following construct:
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/error</location>
    </error-page>
    <error-page>
    <error-code>404</error-code>
    <location>/error</location>
    </error-page>
    For this, I created a new servlet called ErrorServlet, and mapped it to /error
    Now I could mangle the end of the URL, which causes a 404, and I get redirected to the ErrorServlet. Yay.
    However, exceptions being thrown in either a .jsp or .tag still don't direct me to the ErrorServlet. Apparently this error handling mechanism doesn't work for .jsp pages reached via servletContext.getRequestDispatcher("/" + pageName).forward(request, response) ????
    So I'm just at a total loss now. I know the short answer is "don't throw exceptions in a .jsp or .tag" but frankly, that seems a pretty weak answer that doesn't really address my problem... I mean, it would really be nice to have some kind of exception handler for runtime exceptions thrown in a scriptlet in .tag file, that allows me to forward to a page with detailed stacktrace output, etc, if anything for debugging purposes during development...
    If anyone has a few cents to spare on this, I'd be ever so grateful..
    Thanks!!
    Jeff

    What causes the exception?
    What sort of exception are you raising from the tag files?
    Have you got an example of a tag file that you can share, and a jsp that invokes it so people can duplicate the issue without thinking too much / spending too much time?
    My first instinct would be that the buffer is being flushed, and response committed before your Exception is raised.
    What you describe is pretty much standard functionality for Tomcat in such cases.

Maybe you are looking for

  • D70 NEF won't open in CS5

    I just broke out my D70 I haven't used in forever to test it before I sell it, and my raw files will not open in CS5. I'm getting the "could not complete request because the file is from an unssupported camera" message.  I have already updated the ca

  • External Tables preprocessor in 11.2 as a tool for DBAs

    I'm really really excited about new 11.2 external tables preprocessor feature. Oracle documentation show examples based on compressed files and how to load uncompress them on a fly and load them to oracle. Although that is interesting use of external

  • Improving Compressor Performance

    I have a 8 core Mac Pro, and compressor doesn't do much to utilize all of those processors to their potential. I get in the 40-60% usage range depending on the codec being used. Is there anyway to boost these up to closer to 100%? I've upped my Qmast

  • VL06I - GR - Not tied to LT06 - TO creation for Material Document

    Hi, When I do GR from VL06I report for Inbound deliveries, it does not take me to LT06 - TO creation with respect to Material Document after GR posted. Basically it takes to VL32N screen during GR posting. Manually when I do GR using Tcode VL32N - ta

  • Difference between Cofiguration and Customzing

    Hi, What's the difference between Cofiguration and Customzing. BR Govind