You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mughal, Anas" <An...@MultiPlan.com> on 2010/04/05 17:49:58 UTC

JAXBDataBinding throwing NULL Pointer from portlet

Hello,

 

In our portal application, we are trying to integrate with a vendor
implementation that uses CXF. 

Their implementation works fine if deployed in the portal application
WAR.

 

However, when we try to access their implementation from a portlet, we
keep on getting the following NULL Pointer exception:

 

java.lang.NullPointerException

        at
org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBData
Binding.java:440)

        at
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:264)

        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildService
FromClass(ReflectionServiceFactoryBean.java:376)

        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromCla
ss(JaxWsServiceFactoryBean.java:525)

        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeSe
rviceModel(ReflectionServiceFactoryBean.java:439)

        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Refle
ctionServiceFactoryBean.java:195)

        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsService
FactoryBean.java:164)

        at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
AbstractWSDLBasedEndpointFactory.java:100)

        at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:
52)

        at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactory
Bean.java:102)

        at
org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.
java:115)

        at
org.openiam.am.integ.bluenog.helper.ServiceLookupHelper.getRoleService(S
erviceLookupHelper.java:80)

 

 

Could this be due to some JAR dependency issue. Any help would be
greatly appreciated.

 

Thanks.

--

Anas Mughal

anas.mughal@multiplan.com



NOTICE OF CONFIDENTIALITY: Information included in and/or attached to this electronic mail transmission may be confidential. This electronic mail transmission is intended for the addressee(s) only. Any unauthorized disclosure, reproduction, or distribution of, and/or any unauthorized action taken in reliance on the information in this electronic mail is prohibited. If you believe that you have received this electronic mail transmission in error, please notify the sender by reply transmission, or contact Support@multiplan.com, and delete the message without copying or disclosing it. 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Re: JAXBDataBinding throwing NULL Pointer from portlet

Posted by Glen Mazza <gl...@gmail.com>.
Perhaps my tutorial can help pinpoint the problem for you:
http://www.jroller.com/gmazza/entry/portlet_soap_tutorial

HTH,
Glen


Mughal, Anas wrote:
> 
> Hello,
> 
> In our portal application, we are trying to integrate with a vendor
> implementation that uses CXF. 
> 
> Their implementation works fine if deployed in the portal application
> WAR.
> 
> However, when we try to access their implementation from a portlet, we
> keep on getting the following NULL Pointer exception:
> 
> java.lang.NullPointerException
> 
>         at
> org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBData
> Binding.java:440)
> 
>         at
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:264)
> 
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildService
> FromClass(ReflectionServiceFactoryBean.java:376)
> 
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromCla
> ss(JaxWsServiceFactoryBean.java:525)
> 
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeSe
> rviceModel(ReflectionServiceFactoryBean.java:439)
> 
>         at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Refle
> ctionServiceFactoryBean.java:195)
> 
>         at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsService
> FactoryBean.java:164)
> 
>         at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
> AbstractWSDLBasedEndpointFactory.java:100)
> 
>         at
> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:
> 52)
> 
>         at
> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactory
> Bean.java:102)
> 
>         at
> org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.
> java:115)
> 
>         at
> org.openiam.am.integ.bluenog.helper.ServiceLookupHelper.getRoleService(S
> erviceLookupHelper.java:80)
> 
> Could this be due to some JAR dependency issue. Any help would be
> greatly appreciated.
> 

-- 
View this message in context: http://old.nabble.com/JAXBDataBinding-throwing-NULL-Pointer-from-portlet-tp28141394p28144472.html
Sent from the cxf-issues mailing list archive at Nabble.com.