7 Replies Latest reply on Sep 19, 2008 4:15 AM by Daniel Bevenius

    Calling EJB in cluster jndi:1100 from action

    Willem Labuschagne Newbie

      When I try and call a EJB3 that runs in the cluster and I specify the jndi port as 1100 (HA) I get the following error. Should I open a JIRA for this or is this my own stupidity. I works if I only use the local jndi port 1099.

      23:04:19,312 ERROR [STDERR] java.lang.ClassCastException: $Proxy180
      23:04:19,312 ERROR [STDERR] at santam.esb.itc.ITCCallAction.getIDSScore(ITCCallAction.java:123)
      23:04:19,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      23:04:19,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      23:04:19,312 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      23:04:19,312 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      23:04:19,312 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
      23:04:19,312 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
      23:04:19,312 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
      23:04:19,312 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
      23:04:19,312 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      23:04:19,312 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      23:04:19,312 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)

      The properties that I use for the lookup is
      Properties properties = new Properties();
      properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      properties.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
      properties.put("java.naming.provider.url", "jnp://127.0.0.1:1100");
      properties.put("jnp.disableDiscovery", "true");

      Thanks
      Willem