cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] [Resolved] (DOSGI-51) Passing an object to the server doesn't work correctly
Date Wed, 14 Sep 2016 10:02:20 GMT


Christian Schneider resolved DOSGI-51.
    Resolution: Fixed
      Assignee: Christian Schneider

I am closing this as the issue is so old. If the problem still occurs feel free to open a
new issue based on the current CXF DOSGi version.

> Passing an object to the server doesn't work correctly
> ------------------------------------------------------
>                 Key: DOSGI-51
>                 URL:
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.1
>         Environment: OS: Linux Debian Lenny
> Java: Sun JDK 1.6.0 Update 13
> OSGi: Equinox 3.5.0.v20090520
> CXF/DOSGi: Single Bundle Distribution 1.0/1.1.SNAPSHOT
>            Reporter: Saul Goode
>            Assignee: Christian Schneider
>         Attachments: PassObjectClient_1.0.0.tryout.jar, PassObjectInterface_1.0.0.tryout.jar,
> I've got a Service PassObject exposed by CXF/DOSGi running on the server. This service
contains a method passAnObject which receives an object of type MathHelper. MathHelper is
an interface known both to the server and client. The method passAnObject calls the methods
MathHelper.getName() and MathHelper.isGreaterThanZero(int) on the received object. When the
client calls the method passAnObject and passes an object which implements MathHelper the
following happens: The call to getName works as expected and returns a String. But the call
to the other method raises an exception on the server (stack trace appended). I have this
problem with both 1.0 and the 1.1.SNAPSHOT.
> Is it unsupported to pass objects to a remote service provider? Or is this some kind
of bug?
> I didn't find an option to upload sth, so I uploaded the sample code to:
> The archive contains the server, client and interface bundles. The interface bundle runs
on both the server and client.
> Server-side Exception output by OSGi with Single Bundle Distribution 1.0:
> 02.09.2009 17:29:10 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Application has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: isGreaterZero is not delegated.
>         at org.apache.cxf.service.invoker.AbstractInvoker.createFault(
>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor$
>         at java.util.concurrent.Executors$
>         at java.util.concurrent.FutureTask$Sync.innerRun(
>         at
>         at org.apache.cxf.workqueue.SynchronousExecutor.execute(
>         at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(
>         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
>         at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(
>         at org.mortbay.jetty.handler.ContextHandler.handle(
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(
>         at org.mortbay.jetty.Server.handle(
>         at org.mortbay.jetty.HttpConnection.handleRequest(
>         at org.mortbay.jetty.HttpConnection$RequestHandler.content(
>         at org.mortbay.jetty.HttpParser.parseNext(
>         at org.mortbay.jetty.HttpParser.parseAvailable(
>         at org.mortbay.jetty.HttpConnection.handle(
>         at
>         at org.mortbay.thread.QueuedThreadPool$
> Caused by: java.lang.IllegalAccessError: isGreaterZero is not delegated.
>         at org.apache.cxf.aegis.type.basic.InterfaceInvocationHandler.invoke(
>         at $Proxy33.isGreaterZero(Unknown Source)
>         at passobject.impl.PassObjectImpl.passAnObject(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(
>         at org.apache.cxf.service.invoker.AbstractInvoker.invoke(
>         ... 23 more

This message was sent by Atlassian JIRA

View raw message