incubator-yoko-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Zapletal" <lukas.zaple...@gmail.com>
Subject Using Yoko binding with dynamic proxy on the client side
Date Fri, 03 Aug 2007 15:19:32 GMT
Hello,

I am implementing a WS client using CORBA Yoko binding in CXF as
dynamic proxy but I am not able to create the Client instance:

JaxWsClientFactoryBean client = new JaxWsClientFactoryBean();
client.setAddress("corbaloc::localhost:9000/calc");
client.setServiceClass(ComPikeelectronicCalcCalculator.class);
ClientImpl SOAPclient = (ClientImpl) client.create(); // line 29: main()

I am getting:

java.lang.NullPointerException
	at org.apache.yoko.bindings.corba.TypeMapCache.get(TypeMapCache.java:38)
	at org.apache.yoko.bindings.corba.CorbaConduit.<init>(CorbaConduit.java:86)
	at org.apache.yoko.bindings.corba.CorbaBindingFactory.getConduit(CorbaBindingFactory.java:109)
	at org.apache.yoko.bindings.corba.CorbaBindingFactory.getConduit(CorbaBindingFactory.java:104)
	at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:73)
	at org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(UpfrontConduitSelector.java:71)
	at org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:417)
	at org.apache.cxf.ws.rm.RMManager.clientCreated(RMManager.java:100)
	at org.apache.cxf.endpoint.ClientLifeCycleManagerImpl.clientCreated(ClientLifeCycleManagerImpl.java:42)
	at org.apache.cxf.endpoint.ClientImpl.notifyLifecycleManager(ClientImpl.java:133)
	at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:92)
	at org.apache.cxf.frontend.ClientFactoryBean.createClient(ClientFactoryBean.java:64)
	at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
	at com.pikeelectronic.calc.WSDIIClient.main(WSDIIClient.java:29)

It seems Yoko binding is expecting some information here:

    public static CorbaTypeMap get(ServiceInfo service) {
        if (service != null) {
            synchronized (cache) {
                if (!cache.containsKey(service)) {
                    List<TypeMappingType> corbaTypes = service.getDescription()
                            .getExtensors(TypeMappingType.class); // NPE here
                    if (corbaTypes != null) {
                        cache.put(service,
CorbaUtils.createCorbaTypeMap(corbaTypes));
                    }
                }
            }
            return cache.get(service);
        }
        return null;
    }

Am I doing somethig wrong?

-- 
Lukas Zapletal
http://lukas.zapletalovi.com

Mime
View raw message