users@glassfish.java.net

problem accessing webservices inside ejb

From: <glassfish_at_javadesktop.org>
Date: Wed, 13 Aug 2008 21:54:30 PDT

Hi,

i am trying to access 3rd web-services inside my beans and i get the following exception
===============
Caused by: org.codehaus.xfire.fault.XFireFault: NamespaceURI cannot be null
        at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
        at org.codehaus.xfire.util.dom.DOMSerializer.writeMessage(DOMSerializer.java:47)
        at org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:56)
        at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.getByteArrayRequestEntity(CommonsHttpMessageSender.java:422)
        at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:360)
        at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
        at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
        at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
        at org.codehaus.xfire.client.Client.invoke(Client.java:336)
        at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at $Proxy141.runInstances(Unknown Source)
        at com.amazon.aes.webservices.client.Jec2.runInstances(Jec2.java:768)
        at com.singularity.ee.controller.beans.manage.aws.EC2CloudCenter.createMachineInstance(EC2CloudCenter.java:88)
        ... 41 more
Caused by: javax.xml.stream.XMLStreamException: NamespaceURI cannot be null
        at com.sun.xml.stream.writers.XMLStreamWriterImpl.writeAttribute(XMLStreamWriterImpl.java:632)
        at org.codehaus.xfire.util.STAXUtils.writeElement(STAXUtils.java:366)
        at org.codehaus.xfire.util.STAXUtils.writeNode(STAXUtils.java:391)
        at org.codehaus.xfire.util.STAXUtils.writeElement(STAXUtils.java:380)
        at org.codehaus.xfire.util.STAXUtils.writeNode(STAXUtils.java:391)
        at org.codehaus.xfire.util.STAXUtils.writeElement(STAXUtils.java:380)
        at org.codehaus.xfire.util.STAXUtils.writeNode(STAXUtils.java:391)
        at org.codehaus.xfire.util.STAXUtils.writeElement(STAXUtils.java:380)
        at org.codehaus.xfire.util.STAXUtils.writeDocument(STAXUtils.java:285)
        at org.codehaus.xfire.util.dom.DOMSerializer.writeMessage(DOMSerializer.java:40)
==============

if i run whatever i have done in the bean as a standalone java program then it runs fine...
[Message sent by forum member 'eligetiv' (eligetiv)]

http://forums.java.net/jive/thread.jspa?messageID=293237