cancel
Showing results for 
Search instead for 
Did you mean: 

ADS (401) Unauthorized.

Former Member
0 Kudos

Hey i am using Interactive Form in order to produce PDF files. When im running my application i get this error:

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.

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

at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:224)

at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:483)

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

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)

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

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

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

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)

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

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

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

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

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

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

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

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

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

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

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:95)

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

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

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.

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

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

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

... 27 more

Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.

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

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

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

... 29 more

This is what i have done:

Client:

Installed Adobe Reader 7.0.5

Installed xACF SP 14

Enabled Active X

Server

Installed ADS additionally to the 6.40 SP 13

Created ADSUser and ADSGroup, and tested that it works in the Config Test

Enabled Basic Authentification

Im not using any credentials or java crypt toolkit, or published ADS to SLD (ADS and Dynpro runtime on same J2EE engines)

Can someplease please help me out? I have checked the other topics on the forum, but none that has really helped me out..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Engh,

The http response code 401 indicates that you've got an authorization problem.

So, just check if you've installed the credentials and configured the basic authentication for the ADS?

For a detailed explanation, take a look at

<a href="/people/achim.hauck/blog/2005/02/04/my-struggles-with-the-adobe-document-services-in-was640:///people/achim.hauck/blog/2005/02/04/my-struggles-with-the-adobe-document-services-in-was640

<i>Please reward appropriate points.</i>

Bala

Former Member
0 Kudos

Thanx!

I have configured a basic authentication, but wich credentials do i need? I dont want to set extra reader rights or other security on the pdf files.

So that meens that i dont need none credentials or java crypt toolkit?

Former Member
0 Kudos

The weblog alsy says to find the correct SP for the ACF.

In the note i can only find ACF SP 13, when im running on NWDS sp 13 on WAS SP 13.

Could it be this?

Former Member
0 Kudos

I figured out the problem. It was the ADSuser wasnt orderly defined in the VA.

Now i get this new error message:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation. Request start time: Tue Jan 03 15:00:56 CET 2006

But i guess that is something wrong with the user rights credential

Former Member
0 Kudos

solved this as well, and yes.. the userrights credentials wasnt added in the VA

Answers (2)

Answers (2)

srinivasarao_kambala4
Active Participant
0 Kudos

Hi,

Check this Transaction code SICF

Thanks

Srinivas

Former Member
0 Kudos

Hi Kristoffer,

Can you please explain me the solution u got in detail. I am also facing the same problem .