cancel
Showing results for 
Search instead for 
Did you mean: 

While Deploying and running the application

Former Member
0 Kudos

Dear all,

While deploying and running the application, after importing the relevant files into my local amchine workspace from another machine, i am facinf exception/error message as below:

'Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found'.

Would someone suggest for the same.

With Regards,

Lux.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello again,

This time it's about the 404 error. Are you trying to call a web service from your web dynpro? In that case make sure the web service model points to the correct server.

From the exception it seems it cannot find the web service requested, which could mean that the WS-model is pointing to the wrong machine, maybe it points to "localhost"?

Regards

Mattias

Former Member
0 Kudos

Hello Mattias,

Yes, i am trying to call a webservice.

After Going Model-->Logical port, i selected the checkbox field Use Http Proxy and made appropriate entry in the field Proxy host and Proxy port as 'proxy' and '8080'.

Target address remains the same as :"http://localhost:50000/OrgDataWebservice/Config1?style=document"

Now i am getting the error exception as below:

"Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (403) Access Denied".

Former Member
0 Kudos

Hello Again,

I tried to deploy and run in remote system with same files,it doesnt give any Exception or errror like in my local machine.It works fine.

Could you suggest me your opinion.

With regards,

Lux.

Former Member
0 Kudos

Hello,

I don't really know what to do, it means either the proxy or the web service requires authentication/authorization. But I have not used the Web Service Model that much.

If they're running on the same WAS (which it seems like) you could turn on authentication on your web dynpro application (right-click on you Application in the Web Dynpro Explorer and choose edit). Then you'll have to logon to your application, just make suer you log on with a user that has access to your web service.

But it's hard to tell without knowing your landscape.

Regards

mattias

Message was edited by: Mattias Johansson

Former Member
0 Kudos

Hi mattias,

Thanks for your help.I have solved that problem.

I have re-build all the project, <b>deployed the Dictionary project as well as EJB EAR project</b> which i didnt done before and then run and deployed in my local machine whereas in another machine it was already it was deployed.

Now the error

"Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found." doent appears in the bottom.

Regards,

Lakshmanan.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you explain your problem in some more detail?

Regards,

Satyajit.

Former Member
0 Kudos

Hi,

This is the message i am receving during runtime

Web Dynpro client:

HTML Client

Web Dynpro client capabilities:

User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322), 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

Web Dynpro runtime:

Vendor: SAP, Build ID: 6.4013.00.0000.20050607163945.0000 (release=630_SP_REL, buildtime=2005-06-07:21:12:54[UTC], changelist=351986, host=PWDFM067)

Web Dynpro code generators of DC local/SurveysOverview:

SapDictionaryGenerationCore: 6.4013.00.0000.20050606171348.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:02:28[UTC], changelist=351717, host=PWDFM026.wdf.sap.corp)

SapMetamodelWebDynpro: 6.4013.00.0000.20050609113138.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:05:41[UTC], changelist=352442, host=PWDFM026.wdf.sap.corp)

SapMetamodelCore: 6.4013.00.0000.20050606171700.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:56:40[UTC], changelist=351724, host=PWDFM026.wdf.sap.corp)

SapWebDynproGenerationTemplates: 6.4013.00.0000.20050628104636.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:21:22[UTC], changelist=356134, host=PWDFM026)

SapWebDynproGenerationCTemplates: 6.4013.00.0000.20050628104636.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:21:22[UTC], changelist=356134, host=PWDFM026)

SapGenerationFrameworkCore: 6.4013.00.0000.20041104141254.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:55:55[UTC], changelist=298452, host=PWDFM026.wdf.sap.corp)

SapIdeWebDynproCheckLayer: 6.4013.00.0000.20050606172055.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:09:17[UTC], changelist=351729, host=PWDFM026.wdf.sap.corp)

SapMetamodelDictionary: 6.4013.00.0000.20050606171352.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:59:56[UTC], changelist=351719, host=PWDFM026.wdf.sap.corp)

SapMetamodelCommon: 6.4013.00.0000.20050606171700.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:56:48[UTC], changelist=351724, host=PWDFM026.wdf.sap.corp)

SapWebDynproGenerationCore: 6.4013.00.0000.20050606172055.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:09:46[UTC], changelist=351729, host=PWDFM026.wdf.sap.corp)

SapDictionaryGenerationTemplates: (unknown)

Web Dynpro code generators of DC sap.com/tcwddispwda:

No information available

Web Dynpro code generators of DC sap.com/tcwdcorecomp:

No information available

J2EE Engine:

No information available

Java VM:

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

Operating system:

Windows XP, version: 5.1, architecture: x86

-


Error stacktrace:

java.lang.NullPointerException

at com.sap.survey.NewSurveyView.onActionCreateSurvey(NewSurveyView.java:180)

at com.sap.survey.wdp.InternalNewSurveyView.wdInvokeEventHandler(InternalNewSurveyView.java:198)

.........

Former Member
0 Kudos

Hi,

and also while debugging mode,i am getting

'Source not found for DispatcherServlet.doWebDynproProcessing(Task, HttpServletRequest, HttpServletResponse) line: 155'

With regards,

Lux.

Former Member
0 Kudos

Hi,

Perhaps the generation error is caused by some kind of corrupt state in the Developer Studio.

Close the project, restart the IDE and re-import the project. Then try to apply the Repair - project structure and classpath tool in the Web Dynpro explorer (you'll find it on the context menu for the project node). Then reload and rebuild the project.

Check that the project builds properly before running it.

Regards,

Satyajit.

Former Member
0 Kudos

Hello,

You're getting a NullPointerException at line 180 in the view NewSurveyView, which means that one of the objects used on that line has not been initialized. If the error stems from one of your own classes (in this case NewSurvey View) it's most likely a programming error and not a "system" error.

What does the method onActionCreateSurvey look like?

The message you are getting while using the debugger just means that the debugger cannot find the source code for the class DispatcherServlet, which is one of SAPs compiled classes. This is normal, and not an error.

If you step out of it and back into your own code you should get back to the ordinary debug-view. This happens every time you try to debug a class that you don't have the source code of.

Regards

Mattias

Former Member
0 Kudos

Hi Satyajit,

I tried as you said, but couldn't Solve the problem.

'Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.'

Is there any other suggestion?

With regards,

Lux.

Former Member
0 Kudos

Hello Mattias,

Thanks for your reply.

onActionCreateSurvey method looks like this:

public void onActionCreateSurvey(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

wdContext.currentCreateSurveyElement().setStartDate(wdContext.currentContextElement().getStartDate().toString());

This is the line 180.

If the user doesnt initilize the date in UI , then the above errror NullPointerException at line 180 pops up.

With regards,

Lux.

Former Member
0 Kudos

Hello,

That makes sense, then the getSartDate returns a null referens, which means that when you try to run the method toString() it will throw a NullPointerException.

You need to initialize wdContext.startDate, this can be done in the view's wdDoInit().


Date today = new Date(Calendar.getInstance().getTimeInMillis());
wdContext.currentContextElement().setStartDate( today );

Former Member
0 Kudos

Hi,

Mattias is right. You should check for a null date before setting it to the context. Or else you can set the date to the current date as Mattias suggested.

Regards,

Satyajit