4 Replies Latest reply on Dec 12, 2012 3:41 AM by kkkppp

    [JBoss 7.1.3] Error when invoking finder on local interface

    kkkppp Newbie

      I cannot understand what is wrong.

      Edit: I found this https://issues.jboss.org/browse/AS7-5103 but still cannot understand what I supposed to do. Use other namespace than ejb:/? What if I have both local and remote interfaces?

       

      My code:

       

      final SWPasswordColumnLocalHome passwordColumnLocalHome = getHomesGetter().getLocalHome(SWPasswordColumnLocalHome.class);

      ...

      final SWPasswordColumnLocal passwordColumn = passwordColumnLocalHome.findByPrimaryKey(pk);

       

      Error:

       

      Caused by: java.lang.IllegalStateException: JBAS014151: Could not find view com.supportwizard.functionalities.password.interfaces.SWPasswordColumnLocalHome for EJB SWPasswordColumn

          at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:152) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

          at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

          at $Proxy215.findByPrimaryKey(Unknown Source)    at com.supportwizard.functionalities.password.SWPasswordFunctionalityLogic.columnPropertiesChanged(SWPasswordFunctionalityLogic.java:185) [SWFunctionalities.jar:]

       

      Jboss code (LocalEjbReceiver.java 150-153):

       


      // make sure it's a remote view

      if (!ejb.isRemoteView(viewClass.getName())) {

      throw EjbLogger.EJB3_LOGGER.viewNotFound(viewClass.getName(), ejb.getEjbName());

      }