beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Marvin (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Commented: (BEEHIVE-804) Cannot invoke JMS System Control from JWS
Date Tue, 14 Jun 2005 16:44:05 GMT
    [ http://issues.apache.org/jira/browse/BEEHIVE-804?page=comments#action_12313608 ] 

Kyle Marvin commented on BEEHIVE-804:
-------------------------------------

The code-generated ClientInitializer should have code that can deal with both public and private
fields on the target container instance.   In the private case, it uses java.lang.reflect.Field.setAccessible()
, followed by Field.set() to assign the value.   This should work, unless the JVM security
policy is configured to disable the setAccessible (not the default behavior).

So the basic rule is:  if the container will be used in an environment where setAccessible
is disabled by security policy, then @Control fields must be public, otherwise, they may be
private.

Is the JWS container using the generated control client initializer?   I know that late in
m1 we ran into an issue where pageflow container was not, and was doing manual initialization
directly....

> Cannot invoke JMS System Control from JWS
> -----------------------------------------
>
>          Key: BEEHIVE-804
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-804
>      Project: Beehive
>         Type: Bug
>   Components: Web Services (181)
>     Versions: V1
>  Environment: Windows XP
>     Reporter: Julian Klappenbach
>  Attachments: jmsControlError.zip
>
> When attempting to create and use a JMSControl within a JWS, the first invocation of
the control interface results in the following exception:
> A reproduction webapp example will be attached.
> java.lang.NullPointerException
>         at ws.JmsContainer.broken(JmsContainer.java:20)
>         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:585)
>         at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)
>         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:283)
>         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
>         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
>         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
>         at org.apache.axis.transport.http.QSMethodHandler.invokeEndpointFromGet(QSMethodHandler.java:130)
>         at org.apache.axis.transport.http.QSMethodHandler.invoke(QSMethodHandler.java:95)
>         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:585)
>         at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1217)
>         at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
>         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at org.apache.beehive.controls.runtime.servlet.ControlFilter.doFilter(ControlFilter.java:131)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message