cancel
Showing results for 
Search instead for 
Did you mean: 

TutWD_PdfObject_Init Deploy Errors

Former Member
0 Kudos

hi, i just finish the instruction of the tutorial of the pdfObject but there is some problem when i try to <b>Generate PDF</b> and <b>Get XML</b>

when i click on the Generate PDF it promot and display this message.

<b>Service call exception; nested exception is: java.net.ConnectException: Connection refused: connect

Error during generation of Travel Request Form</b>

when i click on the Get XML

it display this message

<b>Service call exception; nested exception is: java.net.ConnectException: Connection refused: connect</b>

may i know what happen to my code and where should i start to debug as i dont have any ideas.

Regards

Jia Jun

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi jia,

Connection refused means you connected to a server (the proxy server) but there was no server listening on the port you used.

Check you have the right host and port number.

Go to Window->preference->SAP j2ee Engine

please give ur server configuration...

Regards,

P.Manivannan.

Former Member
0 Kudos

Hi P.Manivannan,

My SAP J2EE engine is installed on remote host

Message Server Host: 172.16.3.122

Message Server Port: 3900

Former Member
0 Kudos

Hi P.Manivannan,

i yesterday try two user account.. according to the tutorial it say it must login using j2ee user with administrator rights...

so i login 1st using ADSUser after that i login J2EE_Admin..

but both seem like cannot as i try to do the test at the WebNavigator page..

Former Member
0 Kudos

Hi P.Manivannan,

when i try to use the Web Services Navigator for my 3 methods can seem like alway get the 500 Internal server error......

former_member751941
Active Contributor
0 Kudos

Hi Jia,

Check this links.

/people/community.user/blog/2007/01/22/creating-your-first-application-using-interactive-forms

SAP Note : <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler">934276</a>

<a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=807000&nlang=E&smpsrv=https%3a%2f%2fwebsmp103%2esap-ag%2ede">807000</a>

Regards,

Mithu

Former Member
0 Kudos

hi Mithu,

for me i think my j2EE engine is properly configure. by try out the ADS test

anyway this is what i get when i try to the pdfObjectWS with the method creadtPdf... but then it appear this errors

<b>Exception in method createPdf.</b>

under Request box below is the information

POST /PdfObjectWS/Config1?style=document HTTP/1.1

Host: 172.16.3.12:50100

Content-Type: text/xml; charset=UTF-8

Connection: close

Cookie: <value is hidden>

Authorization: <value is hidden>

Content-Length: 633

SOAPAction: ""

<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><pns:createPdf xmlns:pns='urn:PdfObjectWSVi'><pns:dataSource>C:\Documents and Settings\Admin\Documents\SAP\workspace\TutWD_PdfObject_Init\data.xml</pns:dataSource><pns:pdfTarget>C:\Documents and Settings\Admin\Documents\SAP\workspace\TutWD_PdfObject_Init\result1.pdf</pns:pdfTarget><pns:userName>Administrator</pns:userName><pns:locale>EN</pns:locale></pns:createPdf></SOAP-ENV:Body></SOAP-ENV:Envelope>

under the response box, this is what i show me..

HTTP/1.1 500 Internal Server Error

Connection: close

Server: SAP J2EE Engine/7.00

Content-Type: text/xml; charset=UTF-8

Date: Fri, 14 Dec 2007 05:51:13 GMT

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Exception in method createPdf.</faultstring><detail><ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>Exception in method createPdf.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

so with this result what should i do next? should i start do another testing on webservice or try to debug it....

Former Member
0 Kudos

hi Mithu,

i try to visit the links you provide seem like nor related to the topic? is there any other links or solution to it.?