chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron DiFrango (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-542) Null Pointer Exception when combine with JAX-WS Client
Date Mon, 18 Jun 2012 17:43:42 GMT

    [ https://issues.apache.org/jira/browse/CMIS-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396062#comment-13396062
] 

Ron DiFrango commented on CMIS-542:
-----------------------------------

Florian, I hope my follow-up note clears it up, but clearly when we add in the chemistry-opencmis-client-bindings
jar file then my JAX-WS client jars do not work.  Here is the code we are using to create
the CMIS session:

	Session session = null;
	try{
		SessionFactory cmisSessionFactory = SessionFactoryImpl.newInstance();
		Map<String, String> cmisParams = new HashMap<String, String>();
		cmisParams.put(SessionParameter.ATOMPUB_URL, testContentServiceConfig.getString("test.content.atompub_url"));
		cmisParams.put(SessionParameter.REPOSITORY_ID, testContentServiceConfig.getString("test.content.repository_id"));
		cmisParams.put(SessionParameter.CACHE_CLASS, "com.test.content.cache.CacheImpl");
		cmisParams.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
		cmisParams.put(SessionParameter.COMPRESSION, "true");
		session = cmisSessionFactory.createSession(cmisParams);
		// Turn off caching and create rendition filter list
		setDefaultOperationContext(session);
	}catch(Exception e) {//want to catch all exceptions, successive attempts to use the content
service will attempt to establish session
		testContentServiceLogger.error("Unable to create CMIS Session: {}", e.getMessage());
	}
	this.cmisSession = session;
                
> Null Pointer Exception when combine with JAX-WS Client
> ------------------------------------------------------
>
>                 Key: CMIS-542
>                 URL: https://issues.apache.org/jira/browse/CMIS-542
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.6.0
>         Environment: Weblogic Server 10.3.2 and 10.3.5
>            Reporter: Ron DiFrango
>            Priority: Blocker
>
> I am working on a project where we have JAX-WS client that are compile with wsimport.
 We are now trying to integrate the Chemistry API's into the mix and when we do, we get the
following exception when we attempt to bind JAX-WS compiled clients:
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'issoService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation
of init method failed; nested exception is java.lang.NullPointerException
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
> 	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
> 	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
> 	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
> 	at com.oracle.weblogic.wsee.wrapper.org.springframework.web.context.ContextLoaderListener.contextInitialized(Unknown
Source)
> 	at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
> 	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
> 	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
> 	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
> 	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
> 	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
> 	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
> 	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
> 	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
> 	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
> 	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
> 	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
> 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
> 	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
> 	at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
> 	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
> 	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
> 	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
> 	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
> 	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
> 	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
> 	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
> 	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
> 	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
> 	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
> 	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
> 	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
> 	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
> 	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
> Caused by: java.lang.NullPointerException
> 	at weblogic.wsee.jaxws.spi.ClientIdentityRegistry.internalAddClientRuntimeMBean(ClientIdentityRegistry.java:844)
> 	at weblogic.wsee.jaxws.spi.ClientIdentityRegistry.addClientRuntimeMBean(ClientIdentityRegistry.java:799)
> 	at weblogic.wsee.jaxws.tubeline.standard.WseeClientTube.register(WseeClientTube.java:72)
> 	at weblogic.wsee.jaxws.tubeline.standard.WseeClientTube.<init>(WseeClientTube.java:52)
> 	at weblogic.wsee.jaxws.tubeline.standard.StandardTubelineDeploymentListener$1.createClient(StandardTubelineDeploymentListener.java:52)
> 	at weblogic.wsee.jaxws.WLSTubelineAssemblerFactory$TubelineAssemblerImpl.createClient(WLSTubelineAssemblerFactory.java:124)
> 	at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:471)
> 	at com.sun.xml.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:697)
> 	at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:675)
> 	at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:362)
> 	at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
> 	at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:383)
> 	at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:387)
> 	at javax.xml.ws.Service.getPort(Service.java:161)
> 	at org.springframework.remoting.jaxws.JaxWsPortClientInterceptor.getPortStub(JaxWsPortClientInterceptor.java:414)
> 	at org.springframework.remoting.jaxws.JaxWsPortClientInterceptor.prepare(JaxWsPortClientInterceptor.java:337)
> 	at org.springframework.remoting.jaxws.JaxWsPortClientInterceptor.afterPropertiesSet(JaxWsPortClientInterceptor.java:316)
> 	at org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean.afterPropertiesSet(JaxWsPortProxyFactoryBean.java:42)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
> 	... 50 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message