cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with interactive form application

Former Member
0 Kudos

Hi All,

I followed example provided by sap.I got error like this.may i know what is the problem.

500 Internal Server Error

SAP NetWeaver Application Server 7.00/Java AS 7.00

Failed to process request. Please contact your system administrator.

[Hide]

Error Summary

While processing the current request, an exception occured which could not be handled by the application or the framework.

If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).

Root Cause

The initial exception that caused the request to fail, was:

java.lang.NullPointerException

at com.test.PDFView.fillNode(PDFView.java:163)

at com.test.wdp.InternalPDFView.fillNode(InternalPDFView.java:153)

at com.test.wdp.IPrivatePDFView$IAddressNodeNode.doSupplyElements(IPrivatePDFView.java:249)

at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:406)

at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:345)

... 38 more

See full exception chain for details.

System Environment

Client

Web Dynpro Client Type HTML Client

User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

Version null

DOM version null

Client Type msie6

Client Type Profile ie6

ActiveX enabled

Cookies enabled

Frames enabled

Java Applets enabled

JavaScript enabled

Tables enabled

VB Script enabled

Server

Web Dynpro Runtime Vendor: SAP, build ID: 7.0012.20070328122954.0000 (release=645_VAL_REL, buildtime=2007-05-07:05:03:39[UTC], changelist=442613, host=pwdfm101), build date: Tue Jul 03 11:26:00 IST 2007

J2EE Engine 7.00 patchlevel 108458.44

Java VM Java HotSpot(TM) 64-Bit Server VM, version:1.4.2_12-b03, vendor: Sun Microsystems Inc.

Operating system SunOS, version: 5.10, architecture: sparcv9

Session & Other

Session Locale en_US

Time of Failure Wed Jul 25 14:23:29 IST 2007 (Java Time: 1185353609667)

Web Dynpro Code Generation Infos

local/PDF_test

SapDictionaryGenerationCore 7.0009.20060905225149.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:11:25[UTC], changelist=19458, host=PWDFM114.wdf.sap.corp)

SapDictionaryGenerationTemplates (unknown)

SapGenerationFrameworkCore 7.0009.20060905231747.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:01:40[UTC], changelist=19488, host=PWDFM114.wdf.sap.corp)

SapIdeWebDynproCheckLayer 7.0009.20060906001308.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:16:22[UTC], changelist=19554, host=PWDFM114.wdf.sap.corp)

SapMetamodelCommon 7.0009.20060905233600.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:02:20[UTC], changelist=19505, host=PWDFM114.wdf.sap.corp)

SapMetamodelCore 7.0009.20060905233600.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:02:14[UTC], changelist=19505, host=PWDFM114.wdf.sap.corp)

SapMetamodelDictionary 7.0009.20060905225317.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:09:14[UTC], changelist=19459, host=PWDFM114.wdf.sap.corp)

SapMetamodelWebDynpro 7.0009.20060906001757.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:13:41[UTC], changelist=19556, host=PWDFM114.wdf.sap.corp)

SapWebDynproGenerationCTemplates 7.0009.20061013070849.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:35:34[UTC], changelist=20651, host=pwdfm114)

SapWebDynproGenerationCore 7.0009.20060906001308.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:16:34[UTC], changelist=19554, host=PWDFM114.wdf.sap.corp)

SapWebDynproGenerationTemplates 7.0009.20061013070849.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:35:34[UTC], changelist=20651, host=pwdfm114)

sap.com/tcwddispwda

No information available null

sap.com/tcwdcorecomp

No information available null

Detailed Error Information

Detailed Exception Chain

com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:392)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.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:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: java.lang.NullPointerException

at com.test.PDFView.fillNode(PDFView.java:163)

at com.test.wdp.InternalPDFView.fillNode(InternalPDFView.java:153)

at com.test.wdp.IPrivatePDFView$IAddressNodeNode.doSupplyElements(IPrivatePDFView.java:249)

at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:406)

at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:345)

at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:333)

at com.sap.tc.webdynpro.progmodel.context.Node.getLeadSelection(Node.java:734)

at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderLeadSelectedElement(XfdRenderer.java:168)

at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.render(XfdRenderer.java:79)

at com.sap.tc.webdynpro.clientserver.renderer.AbstractRenderManager.render(AbstractRenderManager.java:62)

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.getDataStream(AdobeFormHelper.java:532)

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.getDataStream(AdobeFormHelper.java:1042)

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper.getDocumentContextForRender(AdobeFormHelper.java:652)

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:334)

... 29 more

If any body face tthe same problem.plz help me.

Thanks,

santhosh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Have you written following code in wdinit() method of controller. Here Z_Ps_Bapi_Search_Manager is my Bapi name. You have to create an instance of Bapi before executing or adding any element in it.

wdContext.nodeZ_Ps_Bapi_Search_Manager_Input().invalidate();

Z_Ps_Bapi_Search_Manager_Input searchmanager = new Z_Ps_Bapi_Search_Manager_Input();

wdContext.nodeZ_Ps_Bapi_Search_Manager_Input().bind(searchmanager);

Hope this helps.

Regards,

Amit

Former Member
0 Kudos

Hi,

i'm not using bapi.I test with view .That is also one of the example given by sap.

the problem in my application is ui element(interactive form) is not bind with context attribute.If any body have idea plz send ASAP.

Thanks,

santhosh.

amolgupta
Active Contributor
0 Kudos

hi,

goto...

interactive form->properties->dataSorce = <select ur node from context>

this should help.

regards,

-ag

Former Member
0 Kudos

Hi ag,

Before only i selected that context node.but that node is not bind to uielement.Is there any credential problem.Except interactive ui element other ui elements are binding with context.I run other application

I got the error like this,

Failed to process request. Please contact your system administrator.

[Hide]

Error Summary

While processing the current request, an exception occured which could not be handled by the application or the framework.

If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).

Root Cause

The initial exception that caused the request to fail, was:

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://dssdev.ril.com:50300/AdobeDocumentServices/Config?style=document"

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:985)

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1437)

at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)

at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99)

at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)

... 35 more

See full exception chain for details.

System Environment

Client

Web Dynpro Client Type HTML Client

User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

Version null

DOM version null

Client Type msie6

Client Type Profile ie6

ActiveX enabled

Cookies enabled

Frames enabled

Java Applets enabled

JavaScript enabled

Tables enabled

VB Script enabled

Server

Web Dynpro Runtime Vendor: SAP, build ID: 7.0012.20070328122954.0000 (release=645_VAL_REL, buildtime=2007-05-07:05:03:39[UTC], changelist=442613, host=pwdfm101), build date: Tue Jul 03 11:26:00 IST 2007

J2EE Engine 7.00 patchlevel 108458.44

Java VM Java HotSpot(TM) 64-Bit Server VM, version:1.4.2_12-b03, vendor: Sun Microsystems Inc.

Operating system SunOS, version: 5.10, architecture: sparcv9

Session & Other

Session Locale en_US

Time of Failure Thu Jul 26 11:13:44 IST 2007 (Java Time: 1185428624265)

Web Dynpro Code Generation Infos

local/Table_Demo

SapDictionaryGenerationCore 7.0009.20060905225149.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:11:25[UTC], changelist=19458, host=PWDFM114.wdf.sap.corp)

SapDictionaryGenerationTemplates (unknown)

SapGenerationFrameworkCore 7.0009.20060905231747.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:01:40[UTC], changelist=19488, host=PWDFM114.wdf.sap.corp)

SapIdeWebDynproCheckLayer 7.0009.20060906001308.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:16:22[UTC], changelist=19554, host=PWDFM114.wdf.sap.corp)

SapMetamodelCommon 7.0009.20060905233600.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:02:20[UTC], changelist=19505, host=PWDFM114.wdf.sap.corp)

SapMetamodelCore 7.0009.20060905233600.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:02:14[UTC], changelist=19505, host=PWDFM114.wdf.sap.corp)

SapMetamodelDictionary 7.0009.20060905225317.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:09:14[UTC], changelist=19459, host=PWDFM114.wdf.sap.corp)

SapMetamodelWebDynpro 7.0009.20060906001757.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:13:41[UTC], changelist=19556, host=PWDFM114.wdf.sap.corp)

SapWebDynproGenerationCTemplates 7.0009.20061013070849.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:35:34[UTC], changelist=20651, host=pwdfm114)

SapWebDynproGenerationCore 7.0009.20060906001308.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:16:34[UTC], changelist=19554, host=PWDFM114.wdf.sap.corp)

SapWebDynproGenerationTemplates 7.0009.20061013070849.0000 (release=NW04S_09_REL, buildtime=2006-10-25:18:35:34[UTC], changelist=20651, host=pwdfm114)

sap.com/tcwddispwda

No information available null

sap.com/tcwdcorecomp

No information available null

Detailed Error Information

Detailed Exception Chain

com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:392)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.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:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process Render Request.

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:98)

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:121)

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:336)

... 29 more

Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://dssdev.ril.com:50300/AdobeDocumentServices/Config?style=document"

at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:408)

at com.sap.tc.webdynpro.pdfobject.core.PDFObject.render(PDFObject.java:3958)

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:148)

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)

... 32 more

Caused by: java.rmi.RemoteException: Service call exception; nested exception is:

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://dssdev.ril.com:50300/AdobeDocumentServices/Config?style=document"

at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:89)

at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99)

at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)

... 35 more

Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://dssdev.ril.com:50300/AdobeDocumentServices/Config?style=document"

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:985)

at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1437)

at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)

... 37 more

For the same error in forums i saw ,That forum said that credential problem.iam not aware of credential file,where we have to change.

which property i have to change,

If any body know plz give answer ASAP.

Thanks,

santhosh.

amolgupta
Active Contributor
0 Kudos

hi,

its alright if other ui elements are also bound to the same context.

when you bind data source to Interactive form, it is just made available in the interactive form editor.

You have to create a binding between UI element and the context in the interactive form.

<b>READ THE FOLLOWING ONCE::</b>

all the UI elements in the adobe form are generally connected to your web-dynpro Context.

whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".

that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.

Likewise you can clear the form by setting all context attributes to blank eg ""

******************************************************************************************

First of all your ADS should be configured and credential file be installed.

get that checked by your admin....

regards,

-ag

Message was edited by:

amol gupta

amolgupta
Active Contributor
0 Kudos

hi,

i was also getting a NULL POINTER EXCEPTION once.

Make sure that all your UI elements have data filled in them.

if they are null and you try to work on them....

then it throws a null pointer exception.

regards,

-ag

amolgupta
Active Contributor
0 Kudos

hi,

check that the Cardinality of the node is not 0..0 or 0..n.

if it is change it to 1..1

regrds,

-ag

Former Member
0 Kudos

Hi

check these threads

regards

krishna