IONA Artix & Spring



  • We've been given IONA Artix 5.1 to write a few webservices and clients and tasked with integrating it into our Spring application. Everyone's having a terrible time setting up a development environment in Artix Designer, determining dependencies, and trying to get anything to work. It seems to me our time would be much better spent just implementing a solution with raw JAX-WS. Has anyone else had any experience with this Artix garbage? I find it really annoying that, among other stupid problems, generating client code with this thing from the WSDL's we've received from other systems creates code with syntax errors (I realize this could be due to incorrectly specified WSDL's, but I don't think all of the other systems happened to screw up their WSDL's in exactly the same way)

     

    Ugh. 



  • Works fine in .NET using VS2005 or VS2008 for me!




  • We're using Tomcat 5.5/Spring 2.1 and Artix hates us. 



  •     <bean id="myClientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
          <property name="serviceClass" value="com..hosts.ws.client...UpdateInstallation"/>
          <property name="address" value="http://localhost:8081/services/myService"/>
        </bean>
       
        <bean id="myClient" class="com.
    .hosts.ws.client...myClient"
          factory-bean="myClientFactory" factory-method="create"/>

     

    yields this oh-so-helpful nullpointerexception at runtime:

     

    Error creating bean with name 'myClient' defined in ServletContext resource [/WEB-INF/conf/****-context-ws-beans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object org.apache.cxf.frontend.ClientProxyFactoryBean.create()] threw exception; nested exception is java.lang.NullPointerException
    Caused by:
    org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object org.apache.cxf.frontend.ClientProxyFactoryBean.create()] threw exception; nested exception is java.lang.NullPointerException
    Caused by:
    java.lang.NullPointerException
        at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpointInfo(AbstractEndpointFactory.java:162)
        at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:104)
        at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:50)
        at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:88)

     

     And yes I realize that this probably should have gone in code help, but this is making me go, "WTF," I'm impatient, and I feel like more people read this part of the forum :).

     


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.