NullPointerException in BIRT web Services
When I am trying to run my code as application, it is working fine. But When I am running it on server, it is showing following error:
[ERROR]
java.lang.NullPointerException
at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:88)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Is it due to some thread overriding or something else? Can someone figure out the problem? Thanks in advance
What code are you trying to run?
Can you provide a sample?
What version of BIRT are you using?
Can you please provide additional details about the code and the behavior you are seeing?
Similar Messages
-
NullPointerException in Create J2EE Web Service Wizard
I created an EJB2.1 session bean that has a method which returns an user defined class and also throws user defined exception. I tried to use the Create J2EE Web Service and chose to use RPC/Encoded scheme.
The WSDL and java-wsdl mapping files were generated, but I got the following messages and exception. The webservices.xml and oracle-webservices.xml were not generated and wizard did not finish. Any ideas why would this happen?
Web Service Log :
Generating WSDL and mapping file
Generating deployment descriptors
ERROR: [failed to localize] Unable to find member message in jax-rpc mapping metadata for the exception whose wsdl message is: {http://mypackage/}MyException
Exception dialog :
java.lang.NullPointerException
at oracle.j2ee.ws.tools.wsa.Util.createDeploymentDescriptors(Util.java:482)
at oracle.j2ee.ws.tools.wsa.Util.createDeploymentDescriptors(Util.java:759)
at oracle.jdeveloper.webservices.model.Generator.generateDDFiles(Generator.java:734)
at oracle.jdeveloper.webservices.model.java.BaseJavaGenerator.doGeneration(BaseJavaGenerator.java:173)
at oracle.jdeveloper.webservices.model.Generator.generateImpl(Generator.java:447)
at oracle.jdeveloper.webservices.model.Generator.generate(Generator.java:295)
at oracle.jdeveloper.webservices.model.WebService.saveEditImpl(WebService.java:3971)
at oracle.jdeveloper.webservices.model.WebService.mav$saveEditImpl(WebService.java)
at oracle.jdeveloper.webservices.model.WebService$1.run(WebService.java:3817)
at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)Specifically, this happens only when there is an exception thrown from the session bean method.
-
Hello all, I am trying to create a virtual classroom via Adobe Connect 9 Web Services with the code below.
https://XXXXXXXX.adobeconnect.com/api/xml?action=sco-update&type=virtual-classroom&name=My Virtual Classroom&folder-id=1358451232&date-begin=2014-01-02T10:00&date-end=2014-01-02T11:00
And the result below:
<results>
<status code="internal-error">
<exception>java.lang.NullPointerException</exception>
</status>
</results>
What could be the reason of this problem? I need your help.Hi Teomanx
To create a virtual classroom, you have to give type=meeting & icon = virtual-classroom. So the correct syntax is :
https://XXXXXXXX.adobeconnect.com/api/xml?action=sco-update&type=meeting&icon=virtual-clas sroom&name=My Virtual Classroom&folder-id=1358451232&date-begin=2014-01-02T10:00&date-end=2 014-01-02T11:00.
Hope that helps.
Thank you -
NullPointerException in WebLogic while accessing web service from client
Hi all,
I have an SPML Web Service developed. The java class from WSDL was generated using wsdlc
<wsdlc srcWsdl="schema/oracle_ws_spmlv2.wsdl" destJwsDir="${classes.dir}" type="JAXWS" explode="true"/>
and then
<jwsc classpath="..." classpathref="wls.jars" srcdir="src/main" destdir="${classes.dir}" keepGenerated="yes">
<jws file="com/oracle/xmlns/idm/identity/webservice/spmlservice/SPMLService_SPMLServiceProviderSoapImpl.java" compiledWsdl="target/oracle_ws_spmlv2_wsdl.jar" type="JAXWS">
<WLHttpTransport contextPath="OIMSPMLWebService" serviceUri="${ear.deployed.name}" portName="SPMLServiceProviderSoap"/>
</jws>
</jwsc>
I have deployed the ear in WLS and generated the client classes.
<clientgen wsdl="http://${weblogic.host}:${weblogic.port}/OIMSPMLWebService/OIMspmlxsd?WSDL" destDir="${classes.dir}" type="JAXWS"/>
I run the client using java command from the terminal. First time, it runs fine. I get a valid response. But often, when I run it a second time, I get the following exception ... I need to undeploy and deploy the ear again. Any help will be appreciated!
Following error appears.
Error 500--Internal Server Error
java.lang.NullPointerException
at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:49)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java:452)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:232)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)As a workaround I can start the application in debug mode, log into the Weblogic console and stop then restart the deployment and this issue goes away, sort of a pain but it does work.
-
Internal Server Error (NullPointerException) when invoking a Web Service
I'm using SOA suite 10.1.3.3 (incl the latest patch set) on Windows XP.
I've created 3 web services using the wizard interface out of 3 existing WSDL files. The Java code inside the web services is just dummy code.
I'm testing the web services using the Test Web Service functionality in Oracle Enterprise Manager's Application Server Control.
The moment I fill in the data and press invoke, I get back the following fault:
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Internal Server Error (Caught exception while handling request: java.lang.NullPointerException)</faultstring>
</env:Fault>
</env:Body>
I know that control never reaches inside the services themselves.
I've even followed the online demo that shows users how to create, deploy and test a Web Service in JDeveloper to make sure that I wasn't doing anything silly.
What could be wrong? Please help.
Thanks in advance.Seems to be a problem in serialization??? What do I do?
When I invoke the web service from a web proxy client, this is the stack trace:
QueryGDSAsiaPackage.SearchAirline_fault: java.lang.NullPointerException
at QueryGDSAsiaPackage.runtime.SearchAirline_fault__LiteralSerializer.doDeserialize(SearchAirline_fault__LiteralSerializer.java:71)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at QueryGDSAsiaPackage.runtime.QueryGDS_Asia_PortType_searchAirline_Fault_SOAPSerializer.deserializeDetail(QueryGDS_Asia_PortType_searchAirline_Fault_SOAPSerializer.java:56)
at oracle.j2ee.ws.common.encoding.SOAPFaultInfoSerializer.doDeserializeSOAP11(SOAPFaultInfoSerializer.java:132)
at oracle.j2ee.ws.common.encoding.SOAPFaultInfoSerializer.doDeserialize(SOAPFaultInfoSerializer.java:94)
at oracle.j2ee.ws.common.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:180)
at oracle.j2ee.ws.common.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:147)
at oracleesb.QueryGDA_Asia_proxy.runtime.QueryGDS_AsiaSOAP_Stub._readBodyFaultElement(QueryGDS_AsiaSOAP_Stub.java:346)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:321)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at oracleesb.QueryGDA_Asia_proxy.runtime.QueryGDS_AsiaSOAP_Stub.searchAirline(QueryGDS_AsiaSOAP_Stub.java:155)
at QueryGDSAsiaPackage.QueryGDS_AsiaSOAPClient.searchAirline(QueryGDS_AsiaSOAPClient.java:43)
at QueryGDSAsiaPackage.QueryGDS_AsiaSOAPClient.main(QueryGDS_AsiaSOAPClient.java:30)
Process exited with exit code 0. -
Standalone Web Service Client: NullPointerException
Hello,
I failed running a standalone SAP Web Service application. I built the jar using Netweaver Developer Studio and wrote an application using the stubs. When running the client I get a NullPointerException with its root cause in a SAP provided class:
Caused by: java.lang.NullPointerException
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildRequestRpc(MimeHttpBinding.java:251)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1453)
at test.BasicTest.echoDouble(BasicTest.java:446)
... 20 more
Any hints what the problem might be?
Maybe I forgot some libraries, however, a NullPointerException is not a common exception in this case. Anyway, is there a list of SAP libraries needed for a standalone client?
Thanks,
PeterMy response is a bit late, but the problem is still occurring.
The full exception trace is not longer. I use a very simple example that invokes a webservice echoing a string:
java.rmi.RemoteException: Service call exception; nested exception is:
java.lang.NullPointerException
at xxx.webservices.client.sap.rpc.BasicFunctionsRpcPortBindingStub.echoStringBox(BasicFunctionsRpcPortBindingStub.java:903)
at Test.main(Test.java:24)
Caused by: java.lang.NullPointerException
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildRequestRpc(MimeHttpBinding.java:251)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1453)
at xxx.webservices.client.sap.rpc.BasicFunctionsRpcPortBindingStub.echoStringBox(BasicFunctionsRpcPortBindingStub.java:896)
... 1 more
The error happens before anything is sent to the server.
Thank you. -
Unifier Web Services - CreateBPRecord throws NullPOinterException
I am attempting to call the "createBPRecord" web service to add a "Vendor Log" entry, and am getting a NullPointerException. I followed the instructions in the documentation to first call getBORecord to obtain the proper structure. I did this, and with this structure I am able to call "updateBPRecord" and update a record I created through the UI. However, this same structure is throwing an error when call the "createBPRecord" service. Something strange is that the call works temporarily. Despite the error, I can perform a find for the "Vendor Log" entry and it is returned. After a brief period though, it disappears and it is no longer returned with the find operation.
Is anyone else having this, or a similar issue?Note: Following the same approach, I was able to create a "Vendor Evaluation" BP record. This problem seems to be specific to creating a BP record for the "Vendors" BP.
-
Error while deploying web service in Netweaver application
Hi,
In my group, two members working in the development of a WebDynpro based application. We have created a track and are using the same for development. For our application
the team member 1 created a Dc say DC1 for EJBS(both
entity and session) and another DC say DC2 for the application archieve 'ear'
and activated the two DCS. When another member of
the team is trying to create a webservice in the checked out DC, the
webservice was created successfully but while deploying the
application archive DC it gives an error (details furnished below).
Error:
:Caught exception during application deployment from SAP J2EE Engine's
deploy service:java.rmi.RemoteException: Cannot deploy
application asianpaints.com/pe_mgt_ear.. Reason: Webservices common
deployment exception! The reason is: Error occurred,
trying to update web services for application
asianpaints.com/pe_mgt_ear. . Additional info: none; nested exception
is:
java.lang.Exception:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment
exception! The reason is: Error occurred, trying to update web services
for application asianpaints.com/pe_mgt_ear.
WSDeploymentException: Webservices common deployment exception! The
reason is: Error occurred, trying to parse documentation
for web service NewPEProcessorService. .
So we created one more DC3(referring the entity beans of DC1) and
created the required session bean and webservice in that
DC. It got deployed successfully. Again when we are trying to create
new webservice it got created but the deployment got
aborted with the same error as mentioned above:
The detailed error description we got in both the cases is given below:
Mar 30, 2006 1:07:39 PM /userOut/deploy
(com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy
Thread,5,main]] INFO:
[005]Additional log information about the deployment
<!LOGHEADER[START]/>
<!HELP[Manual modification of the header may cause parsing problem!]/>
<!LOGGINGVERSION[1.5.3.7185 - 630]/>
<!NAME[/usr/sap/J2E/JC00/SDM/program/log/sdmcl20060330074205.log]/>
<!PATTERN[sdmcl20060330074205.log]/>
<!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
<!ENCODING[ISO8859_1]/>
<!LOGHEADER[END]/>
Mar 30, 2006 1:12:07 PM Info: -
Starting deployment -
Mar 30, 2006 1:12:07 PM Info: Loading selected archives...
Mar 30, 2006 1:12:07 PM Info: Loading
archive '/usr/sap/J2E/JC00/SDM/program/temp/temp35515asianpaints.com~pe_mgt_ear.ear'
Mar 30, 2006 1:12:17 PM Info: Selected archives successfully loaded.
Mar 30, 2006 1:12:17 PM Info: Actions per selected component:
Mar 30, 2006 1:12:17 PM Info: Update: Selected development component
'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'20060330130420' updates
currently deployed development component
'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'8008'.
Mar 30, 2006 1:12:17 PM Info: The deployment prerequisites finished
without any errors. All items are correct.
Mar 30, 2006 1:12:17 PM Info: Saved current Engine state.
Mar 30, 2006 1:12:17 PM Info: Error handling strategy: OnErrorStop
Mar 30, 2006 1:12:17 PM Info: Update strategy: UpdateAllVersions
Mar 30, 2006 1:12:17 PM Info: Starting: Update: Selected development
component
'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'20060330130420' updates
currently deployed development component
'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'8008'.
Mar 30, 2006 1:12:17 PM Info: SDA to be deployed:
/usr/sap/J2E/JC00/SDM/root/origin/asianpaints.com/pe_mgt_ear/J2E_HSSPNEW_D/20060330130420/temp35515asianpaints.com~pe_mgt_ear
.ear
Mar 30, 2006 1:12:17 PM Info: Software type of SDA: J2EE
Mar 30, 2006 1:12:17 PM Info: ***** Begin of SAP J2EE Engine
Deployment (J2EE Application) *****
Mar 30, 2006 1:15:07 PM Info: Begin of log messages of the target
system:
06/03/30 13:12:17 -
06/03/30 13:12:20 - Start updating EAR file...
06/03/30 13:12:20 - start-up mode is lazy
06/03/30 13:12:23 - EAR file updated successfully for 3161ms.
06/03/30 13:12:23 - Start updating...
06/03/30 13:12:24 - EAR file uploaded to server for 525ms.
06/03/30 13:15:07 - ERROR: Not updated. Deploy Service returned ERROR:
java.rmi.RemoteException: Cannot deploy
application asianpaints.com/pe_mgt_ear..
Reason: Webservices common deployment exception!
The reason is: Error occurred, trying to update web
services for application asianpaints.com/pe_mgt_ear. . Additional info:
none; nested exception is:
java.lang.Exception:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException:
Webservices common deployment exception! The reason is: Error occurred,
trying to update web services for application
asianpaints.com/pe_mgt_ear. . Additional info: none
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
at
com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate
(WSDeployer.java:274)
at
com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:390)
at
com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:387)
at
com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:159)
at
com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java
:290)
at
com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at
com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3027)
at
com.sap.engine.services.deploy.server.DeployServiceImpl.update
(DeployServiceImpl.java:584)
at
com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
(DeployServiceImplp4_Skel.java:1278)
at
com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
(DispatchImpl.java:294)
at
com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at
com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
(P4SessionProcessor.java:119)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
tener.java:33)
at
com.sap.engine.core.cluster.impl6.session.MessageRunner.run
(MessageRunner.java:41)
at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged
(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.execute
(SingleThread.java:95)
at
com.sap.engine.core.thread.impl3.SingleThread.run
(SingleThread.java:160) Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices
deployment exception! The reason is: Error occurred, trying to generate
web services deployment files for application
asianpaints.com/pe_mgt_ear. . The error refers to application: none,
jar: , web service: .
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
... 21 more
Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
deployment exception! The reason is: Error occurred, parsing
com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application
asianpaints.com/pe_mgt_ear, web service NewPEProcessorService, location
message: type: jar file, location:
/usr/sap/J2E/JC00/j2ee/cluster/server0/./temp/deploy/work/deploying/reader1143704544275/asianpaints.com~HSSPNEW_UserDetails.j
ar . . Additional info:
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
... 23 more
Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
deployment exception! The reason is: Error occurred, trying to parse
documentation for web service NewPEProcessorService. .
Additional info:
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseDocumentation(WSDefinitionFactory.java:1586)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDAndDocumentation(WSDefinitionFactory.java:15
60)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:814)
... 26 more
Caused by: java.lang.NullPointerException
at
com.sap.engine.services.deploy.server.DeployServiceImpl.update
(DeployServiceImpl.java:596)
at
com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
(DeployServiceImplp4_Skel.java:1278)
at
com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
(DispatchImpl.java:294)
at
com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at
com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
(P4SessionProcessor.java:119)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
tener.java:33)
at
com.sap.engine.core.cluster.impl6.session.MessageRunner.run
(MessageRunner.java:41)
at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged
(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.execute
(SingleThread.java:95)
at
com.sap.engine.core.thread.impl3.SingleThread.run
(SingleThread.java:160) Caused by:
java.lang.Exception:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The
reason is: Error occurred, trying to update web services for
application asianpaints.com/pe_mgt_ear. . Additional info: none
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
at
com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate
(WSDeployer.java:274)
at
com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:390)
at
com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:387)
at
com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:159)
at
com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java
:290)
at
com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at
com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3027)
at
com.sap.engine.services.deploy.server.DeployServiceImpl.update
(DeployServiceImpl.java:584)
at
com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
(DeployServiceImplp4_Skel.java:1278)
at
com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
(DispatchImpl.java:294)
at
com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at
com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
(P4SessionProcessor.java:119)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
tener.java:33)
at
com.sap.engine.core.cluster.impl6.session.MessageRunner.run
(MessageRunner.java:41)
at
com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged
(Native Method)
at
com.sap.engine.core.thread.impl3.SingleThread.execute
(SingleThread.java:95)
at
com.sap.engine.core.thread.impl3.SingleThread.run
(SingleThread.java:160) Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices
deployment exception! The reason is: Error occurred, trying to generate
web services deployment files for application
asianpaints.com/pe_mgt_ear. . The error refers to application: none,
jar: , web service: .
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
... 21 more
Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
deployment exception! The reason is: Error occurred, parsing
com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application
asianpaints.com/pe_mgt_ear, web service NewPEProcessorService, location
message: type: jar file, location:
/usr/sap/J2E/JC00/j2ee/cluster/server0/./temp/deploy/work/deploying/reader1143704544275/asianpaints.com~HSSPNEW_UserDetails.j
ar . . Additional info:
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
... 23 more
Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
deployment exception! The reason is: Error occurred, trying to parse
documentation for web service NewPEProcessorService. .
Additional info:
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseDocumentation(WSDefinitionFactory.java:1586)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDAndDocumentation(WSDefinitionFactory.java:15
60)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:814)
... 26 more
Caused by: java.lang.NullPointerException
at
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException.writeReplace(WSDeploymentException.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at java.io.ObjectStreamClass.invokeWriteReplace
(ObjectStreamClass.java:896)
at java.io.ObjectOutputStream.writeObject0
(ObjectOutputStream.java:1011)
at java.io.ObjectOutputStream.defaultWriteFields
(ObjectOutputStream.java:1332)
at java.io.ObjectOutputStream.writeSerialData
(ObjectOutputStream.java:1304)
at
java.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1247)
at java.io.ObjectOutputStream.writeObject0
(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject
(ObjectOutputStream.java:278)
at
com.sap.engine.services.rmi_p4.DispatchImpl.throwException
(DispatchImpl.java:135)
at
com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
(DispatchImpl.java:296)
... 8 more
For detailed information see the log file of the
Deploy Service.
06/03/30 13:15:07 -
Mar 30, 2006 1:15:07 PM Info: End of log messages of the target
system.Mar 30, 2006 1:15:07 PM Info: ***** End of SAP J2EE Engine
Deployment
(J2EE Application) *****
Mar 30, 2006 1:15:07 PM Error: Aborted: development component
'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'20060330130420':
Caught exception during application deployment from SAP J2EE Engine's
deploy service:
java.rmi.RemoteException: Cannot deploy application
asianpaints.com/pe_mgt_ear..
Reason: Webservices common deployment exception! The reason is: Error
occurred, trying to update web services for application
asianpaints.com/pe_mgt_ear. . Additional info: none; nested exception
is:
java.lang.Exception:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
deployment exception! The reason is: Error occurred, trying to update
web services for application
asianpaints.com/pe_mgt_ear. . Additional info: none
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
at
com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate
(WSDeployer.java:274)
at
com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:390)
at
com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:387)
at
com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:159)
at
com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java
:290)
at
com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at
com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3027)
at
com.sap.engine.services.deploy.server.DeployServiceImpl.update
(DeployServiceImpl.java:584)
at
com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
(DeployServiceImplp4_Skel.java:1278)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run
(DispatchImpl.java:183)
at
com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
(P4SessionProcessor.java:119)
at
com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
tener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run
(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run
(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute
(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run
(SingleThread.java:160)
Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices deployment exception! The
reason is: Error occurred, trying to generate web services deployment
files for application asianpaints.com/pe_mgt_ear. . The
error refers to application: none, jar: , web service: .
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
... 21 more
Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment
exception! The reason is: Error occurred, parsing
com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application
asianpaints.com/pe_mgt_ear, web service NewPEProcessorService, location
message: type: jar file, location:
/usr/sap/J2E/JC00/j2ee/cluster/server0/./temp/deploy/work/deploying/reader1143704544275/asianpaints.com~HSSPNEW_UserDetails.j
ar . . Additional info:
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
at
com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
... 23 more
Caused by:
com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment
exception! The reason is: Error occurred, trying to parse documentation
for web service NewPEProcessorService. . Additional
info:
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseDocumentation(WSDefinitionFactory.java:1586)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDAndDocumentation(WSDefinitionFactory.java:15
60)
at
com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:814)
... 26 more
Caused by: java.lang.NullPointerException
(message ID:
com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Mar 30, 2006 1:15:17 PM Info: J2EE Engine is in same state
(online/offline) as it has been before this deployment process.
Mar 30, 2006 1:15:17 PM Error: -
At least one of the Deployments
failed -
Deployment failure happens only when the DC contains a web service; else, it goes through properly.
Can anyone of you indicate where we are going wrong and what should be done to resolve this issue?
Thanks a lot in advance.
Regards,
RaviHi,
You can go to the Visual Administrator -> <SID> -> Server -> Services -> Deploy -> Runtime tab -> option Container at the bottom and see if everything is correct and running in the webservices_container.
If something necessary to the deployment is not started you can select it and click in start.
I hope it helps.
Thanks,
Anderson -
SmartUpgrade on Web Service - unable to generate artefact
Hi all,
I am facing a strange issue concerning SmartUpgrade on Jdev 11g. While I am trying to generate artefacts for my new 11g WS I get the following error
---------------Attention Required - Start-------------
07:09 WARNING - Action Recommended: Please rerun the command, passing all the
arguments used in this invocation, and ensure the following
additional arguments are also passed:
07:09 WARNING - 1: -output
07:09 WARNING - ---------------Attention Required - End---------------
07:09 WARNING - ***
07:09 WARNING - ***
[ERROR] Action in Web Service Artifact Generation 10.1.3javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.NullPointerException (<Unknown Source>#10) at com.sun.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:41) at oracle.migration.action.ScriptBody.execute(ScriptBody.java:122) at oracle.migration.action.Action.eval(Action.java:210) at oracle.migration.action.Action.execute(Action.java:176) at oracle.migration.action.Action.doAction(Action.java:227) at oracle.migration.action.Action.doFinally(Action.java:231) at oracle.migration.action.Action.execute(Action.java:188) at oracle.migration.rule.MigrationRule.performAction(MigrationRule.java:808) at oracle.migration.update.Updator$ActionContent.doUpdate(Updator.java:100) at oracle.migration.update.Updator.doUpdate(Updator.java:110) at oracle.migration.rule.MigrationRule.doUpdate(MigrationRule.java:788) at oracle.migration.rule.MigrationRule.doUpdate(MigrationRule.java:781) at oracle.migration.Migrator.generateArtifacts(Migrator.java:762) at oracle.migration.MigrationPlan.doMigration(MigrationPlan.java:511) at oracle.migration.MigrationPlan.execute(MigrationPlan.java:438) at oracle.weblogic.jdeveloper.migration.io.WLMigrationManager.executeArchiveFindings(WLMigrationManager.java:288) at oracle.weblogic.jdeveloper.migration.addin.application.MigrationContextManager.createMigrationContext(MigrationContextManager.java:339) at oracle.weblogic.jdeveloper.migration.addin.model.stateobject.migration.UpgradeStateObject.buildMigrationContext(UpgradeStateObject.java:636) at oracle.weblogic.jdeveloper.migration.addin.model.stateobject.migration.UpgradeStateObject.generate(UpgradeStateObject.java:851) at oracle.weblogic.jdeveloper.migration.addin.command.GenerateCommand.run(GenerateCommand.java:95) at oracle.toplink.workbench.utility.command.CommandWorker.run(CommandWorker.java:61)Caused by: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.NullPointerException (<Unknown Source>#10) at sun.org.mozilla.javascript.internal.Context.throwAsScriptRuntimeEx(Context.java:1699) at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:147) at sun.org.mozilla.javascript.internal.NativeJavaMethod.call(NativeJavaMethod.java:190) at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:3073) at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:2239) at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:138) at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:323) at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:2747) at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:149) at com.sun.script.javascript.RhinoCompiledScript.eval(RhinoCompiledScript.java:37) ... 20 moreCaused by: java.lang.NullPointerException at java.io.File.<init>(File.java:222) at oracle.migration.ws.config.cli.SmartUpgradeEntry.createContinuationStateFile(SmartUpgradeEntry.java:285) at oracle.migration.ws.config.cli.SmartUpgradeEntry.upgrade(SmartUpgradeEntry.java:174) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:132) ... 28 more[INFO]: script file:
null
script line:
extraArgs=migrator.getLocator("_cliArgs")
if (extraArgs==null) {
map = null;
} else {
leaves=extraArgs.getLeafMigrationElements(rule)
migEl=leaves.get(0)
map=migEl.getArtifact()
Packages.oracle.migration.ws.config.cli.SmartUpgradeEntry.upgrade(rule, migrationElement, map, targetVersion)
ot=Packages.oracle.migration.ws.config.cli.SmartUpgradeEntry.getOutString();
migrationElement.setAttribute("ws.upgrade.out", ot)
script code:
null
But what is very strange is that as far as I know there is no '-output' option available for smartupgrade and this error occurs only on my Linux Ubuntu 64 bits (It works on Windows 32 bits platfrom)
Is anyone know this problem and found out a solution ?
Thanks
Anthony
Edited by: user808810 on 8 avr. 2010 05:01I solved my problem, there were spaces in the project directory path
Anthony -
Null Values From MS Web Services Toolkit Client
Hi,
I've been bashing my head against a wall on this one for too long now.
I've got a JAX-WS web service deployed to Glassfish v2 b33 which works fine when called by a Java client. It also works fine when methods with no parameters are called from the MS client, i.e. simple and complex types are returned as they should be. However the problem I am having is that when the web service methods that take parameters are called from the MS client, the values received by the service are always null. I've montitored the service and values are being sent in the soap request, but a simple System.out.println statement in the first line of the method indicates a null value. I've captured a request from the Java client and the MS client to show the difference:
A java request:
<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:Header/>
<soapenv:Body>
<ns0:getConfig xmlns:ns0="http://ws.firestorm.alternativenetworks.com/">
<arg0>Inbound</arg0>
</ns0:getConfig>
</soapenv:Body>
</soapenv:Envelope>and a request from the web services toolkit:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAPSDK4:getConfig xmlns:SOAPSDK4="http://ws.firestorm.alternativenetworks.com/">
<SOAPSDK4:arg0>Inbound</SOAPSDK4:arg0>
</SOAPSDK4:getConfig>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>I've tried everything I can think of, including changing the style from RPC/LITERAL to DOCUMENT/LITERAL, but the Java web service just seem to like the way the SOAP message is wrapped up.
Any help on this would be greatly appreciated.
Cheers
TonyThanks Milan, your suggestion put me on the right track, however I've hit another snag.
I decided the best way to solve the problem was to use the Glassfish Transformation Rules feature to take the SOAP request and transform it to a valid format before reaching the code. The XSLT file I created looks like this (I'm no XSLT guru so this will definitely need some tidying up, but for now it works): <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="*">
<xsl:copy><xsl:copy-of select="@*"/><xsl:apply-templates/></xsl:copy>
</xsl:template>
<xsl:template match="/SOAP-ENV:Envelope/SOAP-ENV:Body/*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:for-each select="*">
<xsl:text disable-output-escaping="yes"><arg</xsl:text>
<xsl:value-of select="position() - 1"/>
<xsl:text disable-output-escaping="yes">></xsl:text>
<xsl:value-of select="."/>
<xsl:text disable-output-escaping="yes"></arg</xsl:text>
<xsl:value-of select="position() - 1"/>
<xsl:text disable-output-escaping="yes">></xsl:text>
</xsl:for-each>
</xsl:copy>
</xsl:template>
</xsl:stylesheet> which transforms the problem SOAP request: <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAPSDK4:getConfig xmlns:SOAPSDK4="http://ws.firestorm.alternativenetworks.com/">
<SOAPSDK4:arg0>Inbound</SOAPSDK4:arg0>
</SOAPSDK4:getConfig>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> to the following valid format: <?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAPSDK4:getConfig xmlns:SOAPSDK4="http://ws.firestorm.alternativenetworks.com/">
<arg0>Inbound</arg0>
</SOAPSDK4:getConfig>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> But when I load the .xsl file using the Transformation Rules page and call the web service using the Microsoft Web Services Toolkit, I'm getting the following exception: [#|2007-05-11T09:23:46.530+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=15;_ThreadName=Thread-15;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530]]|#]
[#|2007-05-11T09:27:31.675+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=12;_ThreadName=httpWorkerThread-4848-0;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675]]|#]
[#|2007-05-11T09:28:00.269+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=89eadb09-2894-4ace-95f6-75043c1e6988;|
ERROR: ''|#]
[#|2007-05-11T09:28:00.285+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=89eadb09-2894-4ace-95f6-75043c1e6988;|
com.sun.enterprise.admin.wsmgmt.transform.TransformException: javax.xml.transform.TransformerException: java.lang.NullPointerException
at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(FilterChain.java:238)
at com.sun.enterprise.admin.wsmgmt.transform.TransformFilter.process(TransformFilter.java:144)
at com.sun.enterprise.admin.wsmgmt.filter.spi.FilterRouter.applyFilters(FilterRouter.java:69)
at com.sun.enterprise.admin.wsmgmt.agent.GlobalMessageListenerImpl.processRequest(GlobalMessageListenerImpl.java:181)
at com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl.processRequest(WebServiceEngineImpl.java:265)
at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRequest(JAXWSEndpointImpl.java:53)
at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:127)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:79)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:70)
at com.sun.xml.ws.mex.server.MetadataServerPipe.process(MetadataServerPipe.java:97)
at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:191)
at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:113)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:79)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:208)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:374)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:100)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:74)
at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:187)
at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:101)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:328)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:651)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:281)
at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(FilterChain.java:224)
... 54 more
Caused by: java.lang.NullPointerException
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1235)
at com.sun.org.apache.xalan.internal.xsltc.trax.TrAXFilter.parse(TrAXFilter.java:105)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:588)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:642)
... 56 moreCould this be a bug or am I doing something wrong?
Cheers again,
Tony -
Web Service Call with Basic Authentication does not work
If I try to use Basic Authentication in my Web Service Client with the automatically created methods
setUsername(inUserName)
setPassword(inPassword)
setAddress(inAddress)
the application does not make a call. Did I forget something?
Is it possible to use "Test Method" with Basic Authentication?
Thank you.Thank you for your answer.
But: I already read this article. And it doesn't help me.
I use the following code:
getMyServiceClient1().setUsername(inUserName);
getMyServiceClient1().setPassword(inPassword);With this code I always get a java.lang.NullPointerException.
The methods setUsername and setPassword are definded as follows:
public void setUsername(String inUserName) {
myStub._setProperty(Stub.USERNAME_PROPERTY, inUserName);
public void setPassword(String inPassword) {
myStub._setProperty(Stub.PASSWORD_PROPERTY, inPassword);
}But if I look at the methods which are generated automatically by Sun Java Studio Creator I cannot find _setProperty.
I also found this thread in your forum:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=54773 -
How to get client Ip address from web service
Hello folks,
I am quite new to web service and developing a web service using netbeans6.0 IDE, where i have to know which client called/used the service, After googling i got code snippet like below
inject a WebServiceContext instance into your WebService class, and use it in each WebMethod to get the current request's MessageContext Map. Get the SERVLET_REQUEST item from that, cast as an HttpServletRequest. From that HttpServletRequest, you can invoke getRemoteAddr() to get the client's IP.
@WebService
public class MyService{
@Resource
WebServiceContext wsCtxt;
@WebMethod
public void myWebMethod(){
MessageContext msgCtxt = wsCtxt.getMessageContext();
HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST);
String clientIP = req.getRemoteAddr();
}But it throws error in my PC like
Service invocation threw an exception with message : null; Refer to the server log for more details
Exceptions details : java.lang.reflect.InvocationTargetExceptionIs there any way that says client pc ip address using netbeans6.0 Or what went wrong in my code?
Largely Thanks in advance.
SRI.I am afraid,
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException
at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:340)
at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121)
at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:311) ... 35 more Caused by: javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) at $Proxy102.processMessage999(Unknown Source) ... 40 more Caused by: java.lang.NullPointerException at org.shar.Handle.processMessage999(Handle.java:120) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:361) ... 2 more -
Hi,
I am trying to create an application using Web service Data control in Jdeveloper 11g TP4. This web servcie returns complex data type: that is an object.
while creating data control using wizard : Web service Data control, I am able to get the data control having input patrameter and return object and on exapnding that in data control palette I am able to get all atrribute of that objects.
Data control Palette:
operation : viewRequest(String)
Parameter
REQID
Return
viewrequest_result
ReqID
Product Code
Quantity
Price
I have created a simple JSF form by draging and droping the components fron Data control palette. There are two problems that I am facing while running the application:
1. Getting NullPointerException for the input parameter stating that input parameter can not be null: Error while building SOAP request
oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider setParameters
Value for parameter 'USRID' cannot be null
2. Setting that parameter with a default value I am able to call the web servcie and web service is successfully get invoked too and returns the response but the problem is that on Jdeveloper JSF screen it is not showing the output. I have created a read only form by dragging and dropping the return parameter from Data control palette. Even though the reponse is not getting dispalyed.
Do i need to do anything more or I am missing any step. I have referrrd the link http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html : stating the complex return type handling in Jdeveloper 10.3. Do I need to create a Java Bean for the complex type even though data control is having all object attribute of complex data type.
Thanks in advance.Please make sure that the service's return strcture follows the same strutre as described in the WSDL file. In almost all of the cases like this, I found that service returns doesn't exactly match the structure definition. In that case the WSDC fails to parse the output the way it's told to and the EL used in the pages will fetch nothing, hence a black page shows up.
-
An error when testing a web service control that takes a complexType argument
i took some wsdl file and generated a web service control in BEA Workshop 8.1.
from the jcx file, i generated the jws test file.
now, the webservice takes in a complex argument as an input. as a result, i added
specialized code in the jws test file to construct the complex type to pass into
the web service control. it compiled/built fine. but when i do the actual testing,
i get the following error:
java.lang.NullPointerException
at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:90)
at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:337)
at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
at com.bea.wlw.runtime.jws.call.SoapCall.<init>(SoapCall.java:150)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.<init>(SoapHttpCall.java:61)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:559)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
at $Proxy8.DocLitQueryByExample(Unknown Source)
at doc_lit_bs.bs_doc_litControlTest.DocLitQueryByExample(bs_doc_litControlTest.jws:31)
i checked the line of code in the jws file and it looks like this:
public doc_lit_bs.bs_doc_litControl.ListOfSampleAccount DocLitQueryByExample(java.lang.String
AccountName)
doc_lit_bs.bs_doc_litControl.ListOfSampleAccount response;
doc_lit_bs.bs_doc_litControl.ListOfSampleAccount ListOfSampleAccount =
new doc_lit_bs.bs_doc_litControl.ListOfSampleAccount();
doc_lit_bs.bs_doc_litControl.Account account = new doc_lit_bs.bs_doc_litControl.Account
account.Name = AccountName;
ListOfSampleAccount.Account = account;
response = bs_doc_litControl.DocLitQueryByExample (ListOfSampleAccount);
/* line 31 */
return (response);
what could be the problem? and how may i resolve this? any help is greatly appreciated.Hello,
There was an NPE problem reported and resolved (CR117566) concerning
using "mixed" ComplexType, something like:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:complexType name="fooType" mixed="true"/>
<xs:element name="root" type="fooType"/>
</xs:schema>
Generally speaking, an NPE will be a bug. Can you provide an small
example that generated the NPE to the support team, it would be very
helpful in resolving this issue.
Thanks,
Bruce
Bolei wrote:
>
i took some wsdl file and generated a web service control in BEA Workshop 8.1.
from the jcx file, i generated the jws test file.
now, the webservice takes in a complex argument as an input. as a result, i added
specialized code in the jws test file to construct the complex type to pass into
the web service control. it compiled/built fine. but when i do the actual testing,
i get the following error:
java.lang.NullPointerException
at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:90)
at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:337)
at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
at com.bea.wlw.runtime.jws.call.SoapCall.<init>(SoapCall.java:150)
at com.bea.wlw.runtime.jws.call.SoapHttpCall.<init>(SoapHttpCall.java:61)
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:559)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
at $Proxy8.DocLitQueryByExample(Unknown Source)
at doc_lit_bs.bs_doc_litControlTest.DocLitQueryByExample(bs_doc_litControlTest.jws:31)
i checked the line of code in the jws file and it looks like this:
public doc_lit_bs.bs_doc_litControl.ListOfSampleAccount DocLitQueryByExample(java.lang.String
AccountName)
doc_lit_bs.bs_doc_litControl.ListOfSampleAccount response;
doc_lit_bs.bs_doc_litControl.ListOfSampleAccount ListOfSampleAccount =
new doc_lit_bs.bs_doc_litControl.ListOfSampleAccount();
doc_lit_bs.bs_doc_litControl.Account account = new doc_lit_bs.bs_doc_litControl.Account
account.Name = AccountName;
ListOfSampleAccount.Account = account;
response = bs_doc_litControl.DocLitQueryByExample (ListOfSampleAccount);
/* line 31 */
return (response);
what could be the problem? and how may i resolve this? any help is greatly appreciated. -
Error on deploying a Web Service on 9iAS release 2
Hi, somebody could help me on deploying a Web Service on 9iAS release 2?, I have applied the UDDI patch through the orauddi.zip file downloaded from otn web site. But on the J2EE Web Service Deploying Wizard (OEM Web Site), at the Web Service configuration stage, a message is displayed telling me that a Web Service must be deployed if the 9iAS instance which has an infrastructure connection, and this is not my case (I don't want to install the infrastructure. The UDDISYS schema was installed on a simple 9i DB release 2 successfully and for the orauddi application deployed I had created a Data Source for this user).
On trying to do the same task from JDeveloper 9.0.3, an error ADM is displayed advincing the searching of errors in the log.xml file located on IAS_HOME/dcm/logs directory. Below I have copy the last part of this file, corresponding to the error day.
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2003-07-22T00:27:55.182-03:00</TSTZ_ORIGINATING>
<COMPONENT_ID>iAS_dcm</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_GROUP>n/a</MSG_GROUP>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>preventas-ntbk</HOST_ID>
<HOST_NWADDR>192.168.1.78</HOST_NWADDR>
<MODULE_ID>oracle/defaultLogger/ExceptionLogger</MODULE_ID>
<PROCESS_ID>null-Thread[main,5,main]</PROCESS_ID>
<USER_ID>administrator</USER_ID>
</HEADER>
<PAYLOAD>
<MSG_TEXT>[TM] Config/LoadEdit/ImportExport Adapter resync error</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[java.lang.NullPointerException
at oracle.ias.sysmgmt.repository.datastore.DataStore.getOutOfSyncPluginConfigData(Unknown Source)
at oracle.ias.sysmgmt.repository.RepositoryImpl.syncUpFromPersistence(Unknown Source)
at oracle.ias.sysmgmt.configsvc.ConfigurationServiceImpl.syncUp(Unknown Source)
at oracle.ias.sysmgmt.task.ConfigAdapter.resync(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.resync(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.resync(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2003-07-22T00:27:56.644-03:00</TSTZ_ORIGINATING>
<COMPONENT_ID>iAS_dcm</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_GROUP>n/a</MSG_GROUP>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>preventas-ntbk</HOST_ID>
<HOST_NWADDR>192.168.1.78</HOST_NWADDR>
<MODULE_ID>oracle/defaultLogger/ExceptionLogger</MODULE_ID>
<PROCESS_ID>null-Thread[main,5,main]</PROCESS_ID>
<USER_ID>administrator</USER_ID>
</HEADER>
<PAYLOAD>
<MSG_TEXT>[ RM ] Exception in repository API getDBConnect()</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[oracle.ias.repository.schema.SchemaException: Unable to connect to Directory Server:javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]
at oracle.ias.repository.directory.DirectoryReader.connect(DirectoryReader.java:104)
at oracle.ias.repository.IASSchema.getDBConnect(IASSchema.java:331)
at oracle.ias.repository.IASSchema.getDBConnect(IASSchema.java:416)
at oracle.ias.repository.SchemaManager.getDBConnect(SchemaManager.java:197)
at oracle.ias.sysmgmt.persistence.SeedDbAccess.getDBConnect(Unknown Source)
at oracle.ias.sysmgmt.persistence.PersistenceManager.getSeedInfo(Unknown Source)
at oracle.ias.sysmgmt.persistence.PersistenceManager.isDBConfigured(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>
But, I can deploy this Web Service in the OC4J embedded on JDeveloper, successfully (from JDeveloper). Any idea?
Thanks a lot in advance,
Pablo.Because you do not have an infrastructure database, you will not be able to deploy your web service from OEM as one of its steps is to register the service in the UDDI registy - the Web service deployment and UDDI registration are tied tightly together in OEM right now.
All is not lost, however. You have two routes to deploy the Web Service on Oracle9iAS:
1. Use DCM, which is the command line interface to deploy applications/webservices/wars/ears on Oracle9iAS. It does not have the dependency on UDDI.
To deploy a Web service using DCM, say your Web service ear file were named test.ear your deployment command would look something like:
c:\oracle\ora903\dcm\bin\dcmctl deployApplication -file test.ear
See the doc for much more detail to let you tailor DCM to do all the stuff that is available through EM or specific to your application:
http://download-west.oracle.com/docs/cd/A97329_03/core.902/a92171/dcm.htm#643834
2. In JDeveloper 9.0.3, there is a DCM Servlet that lets you do remote deployment to Oracle9iAS:
http://otn.oracle.com/products/jdev/htdocs/readme_9031.html#viadcm
I suspect your deployment problem from Oracle9i JDeveloper may be (this may be an incorrect assumption) due to trying to use a connection that is setup as if Oracle9iAS is a standalone OC4J.
Mike.
Maybe you are looking for
-
Changed my apple id but FaceTime didn't recognize this and when I updated to iOS 6 I can no longer get on to FaceTime. When I try, it says that the username or password is incorrect. Can anyone help
-
Can you help with a TV / Mac mini configuration?
So.... the plan is to buy a new 32-40 inch TV for the bedroom upstairs. All of my TV cables and Internet stuff are at the basement. I am not planning to bring any cables upstairs (TV or Ethernet) so this is what I am thinking: - HDTV 32-40 inch - Pow
-
Balance Brought Forward Customer Statement
Hi there, everyone Our company would like to print customer statements in a balance brought forward format. By "Balance Brought Forward" I mean that the statement starts with an Opening Balance (being the previous month's closing balance), then refle
-
How do I get rid of a download?
I have a movie that was downloaded, but now, after thinking I deleted it, it keeps coming back. How do I get rid of the movie permanently?
-
How to consume sap xi pi web services or sap RFC with oracle 11g forms.
Dear All how to consume sap xi pi web services or sap RFC with oracle 11g forms. or how to config 11g forms with sap xi.... or how to call sap xi web services in 11g forms.... or can send sample code.... Regards smfatmi Edited by: smfatmi on Oct 17,