cancel
Showing results for 
Search instead for 
Did you mean: 

Axis NullPointerException

bwagner
Champ in-the-making
Champ in-the-making
I' ve written a very basic portlet which uses Alfresco Web Services. When I try to use it from the portal I receive an Exception when calling AuthenticationUtils. Username and pasword are provided and I can reach the Service via url.


Caused by: java.lang.NullPointerException
        at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
        at org.apache.axis.client.Service.<init>(Service.java:113)
        at org.alfresco.webservice.authentication.AuthenticationServiceLocator.<init>(AuthenticationServiceLocator.java:16)
        at org.alfresco.webservice.util.WebServiceFactory.getAuthenticationService(WebServiceFactory.java:159)
        at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)

I already put the log level for the axis packages to DEBUG but can't find anything helpful.
3 REPLIES 3

openpj
Elite Collaborator
Elite Collaborator
Have you provided the endpoint address using the WebServiceFactory class?

String endpointAddress = "http://localhost:8080/alfresco/api";
WebServiceFactory.setEndpointAddress(endpointAddress);

//then you can create a new user session
AuthenticationUtils.startSession("admin","admin");

try{
….
} finally {

AuthenticationUtils.closeSession();

}
Hope this helps.

feangulo
Champ in-the-making
Champ in-the-making
I'm having similar issues.
I do set the endpoint address:

String endpointAddress = "http://www.xxxxxx.com:8080/alfresco/api";
WebServiceFactory.setEndpointAddress(endpointAddress);
         
System.out.println(WebServiceFactory.getEndpointAddress());
         
AuthenticationUtils.startSession("admin", "admin");

Attached is the debug trace that I receive. Any help is greatly appreciated.
I'm not sure what is missing. I followed the same structure as the "SDK FirstWebServiceClient" sample project.
First, I just manually put each of the dependency libraries on my build path and tried to run. This didn't work so I told my Eclipse project to use the "SDK AlfrescoRemote" project as dependency. That threw the errors also. This is all new to me. The only difference between the sample project and my project is that I don't have the WSDL files anywhere. Do I need to put them somewhere inside my project for this to work? Or does this look like some other type of error.

[DEBUG 2010-03-28 11:57:20,659] getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,…) [org.apache.axis.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:264)]
[DEBUG 2010-03-28 11:57:20,668] loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.resource, locale en_US [org.apache.axis.i18n.ProjectResourceBundle$Context.loadBundle(ProjectResourceBundle.java:423)]
[DEBUG 2010-03-28 11:57:20,669] Created org.apache.axis.i18n.resource, linked to parent null [org.apache.axis.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:318)]
[DEBUG 2010-03-28 11:57:20,670] getBundle(org.apache.axis,org.apache.axis.utils,resource,null,…) [org.apache.axis.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:264)]
[DEBUG 2010-03-28 11:57:20,672] loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.utils.resource, locale en_US [org.apache.axis.i18n.ProjectResourceBundle$Context.loadBundle(ProjectResourceBundle.java:423)]
[DEBUG 2010-03-28 11:57:20,673] loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.resource, locale en_US [org.apache.axis.i18n.ProjectResourceBundle$Context.loadBundle(ProjectResourceBundle.java:423)]
[DEBUG 2010-03-28 11:57:20,674] Root package not found, cross link to org.apache.axis.i18n.resource [org.apache.axis.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:328)]
[DEBUG 2010-03-28 11:57:20,674] Root package not found, cross link to org.apache.axis.i18n.resource [org.apache.axis.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:328)]
[DEBUG 2010-03-28 11:57:20,675] org.apache.axis.i18n.resource::handleGetObject(engineConfigLoadFactory) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:20,675] Factory org.apache.axis.configuration.EngineConfigurationFactoryServlet Ignored: unable to load/resolve class. [org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:206)]
[DEBUG 2010-03-28 11:57:20,676] org.apache.axis.i18n.resource::handleGetObject(engineFactory) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:20,676] Got EngineFactory: org.apache.axis.configuration.EngineConfigurationFactoryDefault [org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:141)]
[DEBUG 2010-03-28 11:57:20,684] Enter: AxisEngine::init [org.apache.axis.AxisEngine.init(AxisEngine.java:165)]
[DEBUG 2010-03-28 11:57:20,702] org.apache.axis.i18n.resource::handleGetObject(warning00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:20,703] Warning: URI=null Line=1: URI was not reported to parser for entity [document] [org.apache.axis.utils.XMLUtils$ParserErrorHandler.warning(XMLUtils.java:713)]
[DEBUG 2010-03-28 11:57:20,779] org.apache.axis.i18n.resource::handleGetObject(attachEnabled) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:20,780] Attachment support is enabled?  true [org.apache.axis.utils.JavaUtils.isAttachmentSupported(JavaUtils.java:1305)]
[DEBUG 2010-03-28 11:57:20,840] Enter/Exit: JAFDataHandlerDeserializerFactory(class java.lang.String, {http://xml.apache.org/xml-soap}PlainText) [org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.<init>(JAFDataHandlerDeserializerFactory.java:39)]
[DEBUG 2010-03-28 11:57:20,845] org.apache.axis.i18n.resource::handleGetObject(oddDigits00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:20,845] org.apache.axis.i18n.resource::handleGetObject(badChars01) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:20,890] Enter/Exit: JAFDataHandlerDeserializerFactory(class java.awt.Image, {http://xml.apache.org/xml-soap}Image) [org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.<init>(JAFDataHandlerDeserializerFactory.java:39)]
[DEBUG 2010-03-28 11:57:20,892] Enter/Exit: JAFDataHandlerDeserializerFactory(class javax.mail.internet.MimeMultipart, {http://xml.apache.org/xml-soap}Multipart) [org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.<init>(JAFDataHandlerDeserializerFactory.java:39)]
[DEBUG 2010-03-28 11:57:20,894] Enter/Exit: JAFDataHandlerDeserializerFactory(interface javax.xml.transform.Source, {http://xml.apache.org/xml-soap}Source) [org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.<init>(JAFDataHandlerDeserializerFactory.java:39)]
[DEBUG 2010-03-28 11:57:20,896] Enter/Exit: JAFDataHandlerDeserializerFactory(class org.apache.axis.attachments.OctetStream, {http://xml.apache.org/xml-soap}octet-stream) [org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.<init>(JAFDataHandlerDeserializerFactory.java:39)]
[DEBUG 2010-03-28 11:57:20,897] Enter/Exit: JAFDataHandlerDeserializerFactory() [org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.<init>(JAFDataHandlerDeserializerFactory.java:44)]
[DEBUG 2010-03-28 11:57:20,924] Exit: AxisEngine::init [org.apache.axis.AxisEngine.init(AxisEngine.java:195)]
[DEBUG 2010-03-28 11:57:20,936] @739495b8 added parameter >name:       {http://www.alfresco.org/ws/service/authentication/1.0}username
typeEntry:  null
mode:       IN
position:   0
isReturn:   false
typeQName:  {http://www.w3.org/2001/XMLSchema}string
javaType:   class java.lang.String
inHeader:   false
outHeader:  false
@1ff19e50<total parameters:1 [org.apache.axis.description.OperationDesc.addParameter(OperationDesc.java:265)]
[DEBUG 2010-03-28 11:57:20,936] @739495b8 added parameter >name:       {http://www.alfresco.org/ws/service/authentication/1.0}password
typeEntry:  null
mode:       IN
position:   1
isReturn:   false
typeQName:  {http://www.w3.org/2001/XMLSchema}string
javaType:   class java.lang.String
inHeader:   false
outHeader:  false
@2fd0a692<total parameters:2 [org.apache.axis.description.OperationDesc.addParameter(OperationDesc.java:265)]
[DEBUG 2010-03-28 11:57:20,937] @739495b8setReturnType({http://www.alfresco.org/ws/service/authentication/1.0}AuthenticationResult) [org.apache.axis.description.OperationDesc.setReturnType(OperationDesc.java:173)]
[DEBUG 2010-03-28 11:57:20,941] @6495a1b6 added parameter >name:       {http://www.alfresco.org/ws/service/authentication/1.0}ticket
typeEntry:  null
mode:       IN
position:   0
isReturn:   false
typeQName:  {http://www.w3.org/2001/XMLSchema}string
javaType:   class java.lang.String
inHeader:   false
outHeader:  false
@1babe751<total parameters:1 [org.apache.axis.description.OperationDesc.addParameter(OperationDesc.java:265)]
[DEBUG 2010-03-28 11:57:20,942] @6495a1b6setReturnType({http://xml.apache.org/axis/}Void) [org.apache.axis.description.OperationDesc.setReturnType(OperationDesc.java:173)]
[DEBUG 2010-03-28 11:57:20,958] org.apache.axis.i18n.resource::handleGetObject(transport00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:20,959] Transport is org.apache.axis.transport.http.HTTPTransport@3383e109 [org.apache.axis.client.Call.setTransport(Call.java:2119)]
[DEBUG 2010-03-28 11:57:20,967] Enter: Call::invoke(ns, meth, args) [org.apache.axis.client.Call.invoke(Call.java:2351)]
[DEBUG 2010-03-28 11:57:20,978] operation=name:        startSession
returnQName: {http://www.alfresco.org/ws/service/authentication/1.0}startSessionReturn
returnType:  {http://www.alfresco.org/ws/service/authentication/1.0}AuthenticationResult
returnClass: class org.alfresco.webservice.authentication.AuthenticationResult
elementQName:null
soapAction:  null
style:       wrapped
use:         literal
numInParams: 2
method:null
ParameterDesc[0]:
  name:       {http://www.alfresco.org/ws/service/authentication/1.0}username
  typeEntry:  null
  mode:       IN
  position:   0
  isReturn:   false
  typeQName:  {http://www.w3.org/2001/XMLSchema}string
  javaType:   class java.lang.String
  inHeader:   false
  outHeader:  false

ParameterDesc[1]:
  name:       {http://www.alfresco.org/ws/service/authentication/1.0}password
  typeEntry:  null
  mode:       IN
  position:   1
  isReturn:   false
  typeQName:  {http://www.w3.org/2001/XMLSchema}string
  javaType:   class java.lang.String
  inHeader:   false
  outHeader:  false

FaultDesc[0]:
  name: null
  qname: {http://www.alfresco.org/ws/service/authentication/1.0}AuthenticationFault
  type: {http://www.alfresco.org/ws/service/authentication/1.0}AuthenticationFault
  Class: org.alfresco.webservice.authentication.AuthenticationFault

[org.apache.axis.client.Call.getParamList(Call.java:2043)]
[DEBUG 2010-03-28 11:57:20,978] operation.getNumParams()=2 [org.apache.axis.client.Call.getParamList(Call.java:2045)]
[DEBUG 2010-03-28 11:57:20,979] getParamList number of params: 2 [org.apache.axis.client.Call.getParamList(Call.java:2068)]
[DEBUG 2010-03-28 11:57:20,989] Enter: Call::invoke(RPCElement) [org.apache.axis.client.Call.invoke(Call.java:2405)]
[DEBUG 2010-03-28 11:57:21,003] org.apache.axis.i18n.resource::handleGetObject(attachEnabled) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,003] Attachment support is enabled?  true [org.apache.axis.Message.isAttachmentSupportEnabled(Message.java:289)]
[DEBUG 2010-03-28 11:57:21,008] Enter: SOAPPart ctor(FORM_SOAPENVELOPE) [org.apache.axis.SOAPPart.<init>(SOAPPart.java:182)]
[DEBUG 2010-03-28 11:57:21,009] org.apache.axis.i18n.resource::handleGetObject(setMsgForm) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,009] Setting current message form to: FORM_SOAPENVELOPE (currentMessage is now org.apache.axis.message.SOAPEnvelope) [org.apache.axis.SOAPPart.setCurrentForm(SOAPPart.java:374)]
[DEBUG 2010-03-28 11:57:21,010] Exit: SOAPPart ctor() [org.apache.axis.SOAPPart.<init>(SOAPPart.java:188)]
[DEBUG 2010-03-28 11:57:21,010] org.apache.axis.i18n.resource::handleGetObject(addBody00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,011] Adding body element to message… [org.apache.axis.message.SOAPBody.addBodyElement(SOAPBody.java:168)]
[DEBUG 2010-03-28 11:57:21,012] Enter: Call::invoke() [org.apache.axis.client.Call.invoke(Call.java:2638)]
[DEBUG 2010-03-28 11:57:21,012] MessageContext: setTargetService(AuthenticationService) [org.apache.axis.MessageContext.setTargetService(MessageContext.java:749)]
[DEBUG 2010-03-28 11:57:21,013] org.apache.axis.i18n.resource::handleGetObject(noService10) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,014] Exception:  [org.apache.axis.ConfigurationException.logException(ConfigurationException.java:110)]
org.apache.axis.ConfigurationException: No service named AuthenticationService is available
org.apache.axis.ConfigurationException: No service named AuthenticationService is available
   at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
   at org.apache.axis.client.Call.invoke(Call.java:2690)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)
   at yaipan.gui.CampoImagenAlfresco.<init>(CampoImagenAlfresco.java:76)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
   at java.awt.Component.processMouseEvent(Component.java:6345)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
   at java.awt.Component.processEvent(Component.java:6113)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4714)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

   at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
   at org.apache.axis.client.Call.invoke(Call.java:2690)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)
   at yaipan.gui.CampoImagenAlfresco.<init>(CampoImagenAlfresco.java:76)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
   at java.awt.Component.processMouseEvent(Component.java:6345)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
   at java.awt.Component.processEvent(Component.java:6113)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4714)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[DEBUG 2010-03-28 11:57:21,016] MessageContext: setServiceHandler(null) [org.apache.axis.MessageContext.setService(MessageContext.java:793)]
[DEBUG 2010-03-28 11:57:21,016] org.apache.axis.i18n.resource::handleGetObject(targetService) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,017] Target service:  AuthenticationService [org.apache.axis.client.Call.invoke(Call.java:2715)]
[DEBUG 2010-03-28 11:57:21,017] MessageContext: setTargetService(http://www.alfresco.org/ws/service/authentication/1.0/startSession) [org.apache.axis.MessageContext.setTargetService(MessageContext.java:749)]
[DEBUG 2010-03-28 11:57:21,017] org.apache.axis.i18n.resource::handleGetObject(noService10) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,018] Exception:  [org.apache.axis.ConfigurationException.logException(ConfigurationException.java:110)]
org.apache.axis.ConfigurationException: No service named http://www.alfresco.org/ws/service/authentication/1.0/startSession is available
org.apache.axis.ConfigurationException: No service named http://www.alfresco.org/ws/service/authentication/1.0/startSession is available
   at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
   at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89)
   at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46)
   at org.apache.axis.client.Call.invoke(Call.java:2738)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)
   at yaipan.gui.CampoImagenAlfresco.<init>(CampoImagenAlfresco.java:76)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
   at java.awt.Component.processMouseEvent(Component.java:6345)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
   at java.awt.Component.processEvent(Component.java:6113)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4714)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

   at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
   at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
   at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
   at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89)
   at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46)
   at org.apache.axis.client.Call.invoke(Call.java:2738)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)
   at yaipan.gui.CampoImagenAlfresco.<init>(CampoImagenAlfresco.java:76)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
   at java.awt.Component.processMouseEvent(Component.java:6345)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
   at java.awt.Component.processEvent(Component.java:6113)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4714)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[DEBUG 2010-03-28 11:57:21,019] MessageContext: setServiceHandler(null) [org.apache.axis.MessageContext.setService(MessageContext.java:793)]
[DEBUG 2010-03-28 11:57:21,023] Enter: SOAPPart::getAsSOAPEnvelope() [org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:661)]
[DEBUG 2010-03-28 11:57:21,024] org.apache.axis.i18n.resource::handleGetObject(currForm) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,024] current form is FORM_SOAPENVELOPE [org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:662)]
[DEBUG 2010-03-28 11:57:21,025] org.apache.axis.i18n.resource::handleGetObject(register00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,025] register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/' [org.apache.axis.encoding.SerializationContext.registerPrefixForURI(SerializationContext.java:472)]
[DEBUG 2010-03-28 11:57:21,025] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,026] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,026] org.apache.axis.i18n.resource::handleGetObject(register00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,026] register 'soapenv' - 'http://schemas.xmlsoap.org/soap/envelope/' [org.apache.axis.encoding.SerializationContext.registerPrefixForURI(SerializationContext.java:472)]
[DEBUG 2010-03-28 11:57:21,027] org.apache.axis.i18n.resource::handleGetObject(register00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,027] register 'xsd' - 'http://www.w3.org/2001/XMLSchema' [org.apache.axis.encoding.SerializationContext.registerPrefixForURI(SerializationContext.java:472)]
[DEBUG 2010-03-28 11:57:21,027] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,028] org.apache.axis.i18n.resource::handleGetObject(register00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,028] register 'xsi' - 'http://www.w3.org/2001/XMLSchema-instance' [org.apache.axis.encoding.SerializationContext.registerPrefixForURI(SerializationContext.java:472)]
[DEBUG 2010-03-28 11:57:21,028] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,029] org.apache.axis.i18n.resource::handleGetObject(startElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,029] Start element [http://schemas.xmlsoap.org/soap/envelope/]:Envelope [org.apache.axis.encoding.SerializationContext.startElement(SerializationContext.java:1098)]
[DEBUG 2010-03-28 11:57:21,032] org.apache.axis.i18n.resource::handleGetObject(startElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,033] Start element [http://schemas.xmlsoap.org/soap/envelope/]:Body [org.apache.axis.encoding.SerializationContext.startElement(SerializationContext.java:1098)]
[DEBUG 2010-03-28 11:57:21,033] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,034] org.apache.axis.i18n.resource::handleGetObject(register00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,034] register '' - 'http://www.alfresco.org/ws/service/authentication/1.0' [org.apache.axis.encoding.SerializationContext.registerPrefixForURI(SerializationContext.java:472)]
[DEBUG 2010-03-28 11:57:21,034] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,035] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,035] org.apache.axis.i18n.resource::handleGetObject(startElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,035] Start element [http://www.alfresco.org/ws/service/authentication/1.0]:startSession [org.apache.axis.encoding.SerializationContext.startElement(SerializationContext.java:1098)]
[DEBUG 2010-03-28 11:57:21,037] org.apache.axis.i18n.resource::handleGetObject(startElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,038] Start element [http://www.alfresco.org/ws/service/authentication/1.0]:username [org.apache.axis.encoding.SerializationContext.startElement(SerializationContext.java:1098)]
[DEBUG 2010-03-28 11:57:21,038] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,042] org.apache.axis.i18n.resource::handleGetObject(endElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,042] End element username [org.apache.axis.encoding.SerializationContext.endElement(SerializationContext.java:1208)]
[DEBUG 2010-03-28 11:57:21,042] NSPop (32) [org.apache.axis.utils.NSStack.pop(NSStack.java:119)]
[DEBUG 2010-03-28 11:57:21,043] org.apache.axis.i18n.resource::handleGetObject(startElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,043] Start element [http://www.alfresco.org/ws/service/authentication/1.0]:password [org.apache.axis.encoding.SerializationContext.startElement(SerializationContext.java:1098)]
[DEBUG 2010-03-28 11:57:21,044] NSPush (32) [org.apache.axis.utils.NSStack.push(NSStack.java:85)]
[DEBUG 2010-03-28 11:57:21,044] org.apache.axis.i18n.resource::handleGetObject(endElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,044] End element password [org.apache.axis.encoding.SerializationContext.endElement(SerializationContext.java:1208)]
[DEBUG 2010-03-28 11:57:21,045] NSPop (32) [org.apache.axis.utils.NSStack.pop(NSStack.java:119)]
[DEBUG 2010-03-28 11:57:21,045] org.apache.axis.i18n.resource::handleGetObject(endElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,045] End element startSession [org.apache.axis.encoding.SerializationContext.endElement(SerializationContext.java:1208)]
[DEBUG 2010-03-28 11:57:21,046] NSPop (32) [org.apache.axis.utils.NSStack.pop(NSStack.java:119)]
[DEBUG 2010-03-28 11:57:21,046] org.apache.axis.i18n.resource::handleGetObject(endElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,046] End element soapenv:Body [org.apache.axis.encoding.SerializationContext.endElement(SerializationContext.java:1208)]
[DEBUG 2010-03-28 11:57:21,047] NSPop (32) [org.apache.axis.utils.NSStack.pop(NSStack.java:119)]
[DEBUG 2010-03-28 11:57:21,047] org.apache.axis.i18n.resource::handleGetObject(endElem00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,047] End element soapenv:Envelope [org.apache.axis.encoding.SerializationContext.endElement(SerializationContext.java:1208)]
[DEBUG 2010-03-28 11:57:21,048] org.apache.axis.i18n.resource::handleGetObject(empty00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
java.lang.NullPointerException
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:82)
   at yaipan.gui.CampoImagenAlfresco.<init>(CampoImagenAlfresco.java:76)
   at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
   at java.awt.Component.processMouseEvent(Component.java:6345)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
   at java.awt.Component.processEvent(Component.java:6113)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4714)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
   at java.awt.Container.dispatchEventImpl(Container.java:2129)
   at java.awt.Window.dispatchEventImpl(Window.java:2475)
   at java.awt.Component.dispatchEvent(Component.java:4544)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[DEBUG 2010-03-28 11:57:21,048] NSPop (empty) [org.apache.axis.utils.NSStack.pop(NSStack.java:113)]
[DEBUG 2010-03-28 11:57:21,089] <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><startSession xmlns="http://www.alfresco.org/ws/service/authentication/1.0"><username>admin</username><password>admin</password></startSession></soapenv:Body></soapenv:Envelope> [org.apache.axis.client.Call.invoke(Call.java:2762)]
[DEBUG 2010-03-28 11:57:21,090] Enter: AxisClient::invoke [org.apache.axis.client.AxisClient.invoke(AxisClient.java:77)]
[DEBUG 2010-03-28 11:57:21,090] EngineHandler: null [org.apache.axis.client.AxisClient.invoke(AxisClient.java:90)]
[DEBUG 2010-03-28 11:57:21,099] Enter: SimpleChain::invoke [org.apache.axis.SimpleChain.invoke(SimpleChain.java:79)]
[DEBUG 2010-03-28 11:57:21,100] Exit: SimpleChain::invoke [org.apache.axis.SimpleChain.invoke(SimpleChain.java:86)]
[DEBUG 2010-03-28 11:57:21,100] org.apache.axis.i18n.resource::handleGetObject(semanticCheck00) [org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72)]
[DEBUG 2010-03-28 11:57:21,101] Doing SOAP semantic checks… [org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:55)]
[DEBUG 2010-03-28 11:57:21,101] Exit: AxisClient::invoke [org.apache.axis.client.AxisClient.invoke(AxisClient.java:226)]
[DEBUG 2010-03-28 11:57:21,101] Exit: Call::invoke() [org.apache.axis.client.Call.invoke(Call.java:2773)]
[DEBUG 2010-03-28 11:57:21,102] Exit: Call::invoke(ns, meth, args) [org.apache.axis.client.Call.invoke(Call.java:2369)]
[DEBUG 2010-03-28 11:57:21,102] axis.Call.invoke: 135 {http://www.alfresco.org/ws/service/authentication/1.0}startSession [org.apache.axis.client.Call.invoke(Call.java:1816)]

vijayakumaro
Champ in-the-making
Champ in-the-making
I have java code which is running fine in the eclipse . But when I create a java agent and run from the lotus notes . It is throwing the same error which is posted above.


Any help would be appreciated.