3 Replies Latest reply on Nov 5, 2003 2:36 PM by huskerchen

    [newbie] Strange problem, cann't redeploy session beans

    huskerchen Newbie

      An error comes out when I re-compile the bean class. This is a stateless session bean, using JDBC to connect the database. An SQL exception was thrown out, even after I delete all the JDBC code in the session bean class. The error message points to a line in the source code that there is no code.

      I tried:

      1) restart the SQL Server
      2) restart JBOSS
      3) re-deploy the session bean.

      Very frustrated...

      Yi

        • 1. Re: [newbie] Strange problem, cann't redeploy session beans
          huskerchen Newbie

          This is the error message. The same error comes out even after I delete all JDBC code...


          11:39:55,765 INFO [STDOUT] SQL exception: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near '='.
          11:39:55,765 ERROR [STDERR] java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near '='.
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
          11:39:55,765 ERROR [STDERR] at com.airlite.ecommerce.admin.ejb.ProductAdminBean.getPublishedItems(ProductAdminBean.java:114)
          11:39:55,765 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          11:39:55,765 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          11:39:55,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          11:39:55,781 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
          11:39:55,781 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
          11:39:55,781 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:700)
          11:39:55,781 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          11:39:55,781 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          11:39:55,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          11:39:55,781 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
          11:39:55,781 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          11:39:55,781 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
          11:39:55,781 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
          11:39:55,781 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          11:39:55,781 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          11:39:55,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          11:39:55,796 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
          11:39:55,796 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
          11:39:55,796 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Unknown Source)
          11:39:55,796 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
          11:39:55,796 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
          11:39:55,796 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
          11:39:55,796 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
          11:39:55,796 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)

          • 2. Re: [newbie] Strange problem, cann't redeploy session beans
            huskerchen Newbie

            I changed the function name in the session bean, so the "cached" method won't be called, and this is the error message I got:


            java.lang.IllegalStateException: Failed to find method for hash:-9101464628425587011
            at org.jboss.invocation.MarshalledInvocation.getMethod(MarshalledInvocation.java:261)
            at org.jboss.ejb.Container.invoke(Container.java:699)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
            at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
            at sun.rmi.transport.Transport$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
            at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
            at sun.rmi.server.UnicastRef.invoke(Unknown Source)
            at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
            at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
            at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
            at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
            at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
            at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
            at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
            at $Proxy1.getPublishedItems1(Unknown Source)

            • 3. Re: [newbie] Strange problem, cann't redeploy session beans
              huskerchen Newbie

              Just for the record: I re-installed the development environment (eclipse + lomboz) and the problem disappeared.