On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby <[EMAIL PROTECTED]>wrote:

> Hey Simon,
>
> This has been the case with 1.3 RC1 and RC2.
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby <[EMAIL PROTECTED]>
> > wrote:
> >>
> >> Hey Ant,
> >>
> >> We're targetting our next release (due in a matter of weeks) at 1.3,
> >> so ideally this fix would be included in the 1.3 release.
> >>
> >> What are the generally time scales for the releases of 1.3 and 1.3.1?
> >>
> >> Cheers,
> >>
> >> Dave.
> >>
> >> --
> >> Dave Sowerby MEng MBCS
> >>
> >>
> >>
> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <[EMAIL PROTECTED]>
> wrote:
> >> > How important is it to you that this gets fixed in the 1.3 release or
> >> > could
> >> > it wait for a later release? There's already been some mention of
> having
> >> > a
> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
> >> >
> >> >    ...ant
> >> >
> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <[EMAIL PROTECTED]
> >
> >> > wrote:
> >> >>
> >> >> All,
> >> >>
> >> >> I've created TUSCANY-2512 for this, with full stacks and the example
> >> >> client - this is still an issue with RC2.
> >> >>
> >> >> Dave.
> >> >>
> >> >> --
> >> >> Dave Sowerby MEng MBCS
> >> >>
> >> >>
> >> >>
> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <
> [EMAIL PROTECTED]>
> >> >> wrote:
> >> >> > Hi All,
> >> >> >
> >> >> > I'm getting an Exception whilst attempting to get a client
> component
> >> >> > node using the following code:
> >> >> >
> >> >> > node =
> >> >> >
> >> >> >
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> >> >> > new SCAContribution("test", "target/classes"));
> >> >> >
> >> >> > The composite contains a reference to a locally hosted web service:
> >> >> >
> >> >> > <binding.ws
> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
> >> >> >
> >> >> > When I execute my client I get the following NPE, which it appears
> to
> >> >> > be throwing whilst trying to add an operation to the wsdl based
> upon
> >> >> > the interface (I'm using interface.java).
> >> >> >
> >> >> > The signature of the interface that causes it to die is:
> >> >> >
> >> >> > public void throwException throws WSException();
> >> >> >
> >> >> > And the Exception is:
> >> >> >
> >> >> > Caused by: java.lang.NullPointerException
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >> >> >        at
> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >> >> >        ... 26 more
> >> >> >
> >> >> > Does anyone have any ideas what would be causing this issue?
> >> >> >
> >> >> > Cheers,
> >> >> >
> >> >> > Dave.
> >> >> >
> >> >> > --
> >> >> > Dave Sowerby MEng MBCS
> >> >> >
> >> >
> >> >
> >
> > Hi Dave
> >
> > I've done some preliminary testing by just adding the signature that
> seems
> > to be causing problems for you to a local test I already have set up to
> run
> > against 1.3 but it works fine. So I'll  try and run your test as is. Can
> you
> > tell me what version of Tuscany you were running against when you
> captured
> > these stack traces.
> >
> > Simon
> >
>

Hi Dave

I just ran the sample as provided...

It downloaded the 1.3RC2 tuscany artifacts
I have to comment out
        <!--dependency>
            <groupId>javax.jws</groupId>
            <artifactId>jsr181</artifactId>
            <version>1.0</version>
        </dependency-->
in ws-webapp/pom/xml as I don't have this in my local repo (I do though have
jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting as the
wsdlgen uses jaxws under the covers so this may be interesting to look at
further
I ran up the web app in tomcat (and adjusted the reference uri to take
account of the different context root).
Here's the result.
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.example.ws.client.WSServiceTest
29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: ws-client.composite
29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution:
file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
sca-1.3/ws/ws-client/target/classes/
29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading composite:
file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
-1.3/ws/ws-client/target/classes/ws-client.composite
29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: ws-client.composite
sayHello: Hello WS Client!
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
-client\target\ws-client.jar
[INFO] [install:install]
[INFO] Installing
C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
ient\target\ws-client.jar to C:\Documents and
Settings\slaws\.m2\repository\com\
example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
[INFO] Final Memory: 17M/47M
[INFO]
------------------------------------------------------------------------

Does this look like I have done the right think. If so there may be some
environment difference between me an you that is causing you problems.

Regards

Simon

Reply via email to