Jump to content


Photo
- - - - -

RESTFul Web Services - Internal Server Error: 500


10 replies to this topic

#1 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 18 May 2016 - 06:17 PM

Greetings,

 

I am expiriencing a problem when "testing this restful web service"

- The Gateway and the Connector, all successfully configured.The TASK stub is generated successfully by PROIV. 

- WSDL script is created successfully.

- I used parameters rather than scripts for contents because I want to generate a JSON script,all look good.

 

Below is the error I am getting:-

"Internal Server Error:
Server returned HTTP response code: 500 for URL: http://user-pc:8182/...1&cus_cuscode=1"

 

Internal Server Error: 500 in the servlet containor tells me that there is a problem with the server.

No logs registered as to what the problem is.

The attached file is the screenshot of where port 8182 is set for the webservices.

 

When running " http://user-pc:8182" in the were browser,I get a blank web page with no error exception handling and no display.

 

The extra issue is that the JSON is created for PHP and C- programming languages.

 

Your help will be highly appreciated.

 

Matthews Estrice

 

Attached Thumbnails

  • RestTheWholeDay.png


#2 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 211 posts
  • Gender:Male
  • Location:Netherlands

Posted 19 May 2016 - 06:12 AM

Maybe the settings on this screen shot help you further:

 

Attached Thumbnails

  • Control panel.PNG


#3 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 19 May 2016 - 05:02 PM

Hi Wim,

 

Thank you for responding.

 

Just few questions:-

1. Does your server run on web browser : http://user-pc:8182  (replacing user-pc with your machine name)?

2.Can you send me each body scripts on your screenshot ,I am looking for a syntax.(where can I find the manual for the script syntax on your screenshot?)please.

3. The PATHs you defined , are they defined on the fly or did you physically create them in the hard drive?

(I am sorry for asking so many questions  :) ,I am trying to adapt to your method).

 

Attached is my approach by using parameters.The reason is that the TASK I am using is working on SOAPs and WSDL in Eclipse and Netbeans IDE.

 

info@proinvestors.co.za is my email address.

 

Matthews

 

Attached Thumbnails

  • RestSOAP.png


#4 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 19 May 2016 - 05:29 PM

I am using PROIV V8.2 on windows 7



#5 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 19 May 2016 - 05:51 PM

For future reference on JSON curl scripting:-

http://spacetelescop...nce/object.html



#6 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 19 May 2016 - 06:14 PM

Even the demo tells me that the web server has a problem.

Could it be a port,or license,or installation?I wonder why  :flowers:

The thrown exception is o (ZERO).

Attached Thumbnails

  • RestJSONDemo.png


#7 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 19 May 2016 - 07:09 PM

ahaaaa, we are getting closer to home!

 

under C:\PROIVVer 8\ApplicationServices\logs log file,below is what we witness:-

 

May 18, 2016 10:14:46 AM org.restlet.ext.simple.SimpleServerHelper start
INFO: Starting the Simple [HTTP/1.1] server on port 8182
May 18, 2016 10:14:50 AM org.restlet.ext.simple.SimpleServerHelper start
INFO: Starting the Simple [HTTPS/1.1] server on port 8183
JVM Process has not received any CPU time for 204 seconds.  Extending timeouts.
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGMesPost200.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGMesPost200.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGDefaultApi.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGDefaultApi.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGObject.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGObject.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGQueryParamCollection.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGQueryParamCollection.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGApiClient.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGApiClient.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGJSONResponseSerializer.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGJSONResponseSerializer.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGJSONRequestSerializer.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGJSONRequestSerializer.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\JSONValueTransformer+ISO8601.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\JSONValueTransformer+ISO8601.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGConfiguration.m
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient\SWGConfiguration.h
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\SwaggerClient.podspec
writing file C:\Windows\TEMP\0002430240527745778837_Objective-C_2306326979888253886\README.md
 
 
Windows's Event Viewer logs tells us 
=============================
The description for Event ID 259 from source PROIV V8 Client VM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event: 
the message resource is present but the message is not found in the string/message table
 
The ff. is the java package (path) in the stderroroutlog file that is giving us up hill:
===============================================================
May 19, 2016 7:17:46 PM org.restlet.ext.simple.SimpleServerHelper start
INFO: Starting the Simple [HTTP/1.1] server on port 8182
May 19, 2016 7:17:48 PM org.restlet.ext.simple.SimpleServerHelper start
INFO: Starting the Simple [HTTPS/1.1] server on port 8183
 
Where do we go from here,your help is highly appreciated please?
 
Matthews Estrice
www.proinvestors.co.za


#8 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 19 May 2016 - 07:49 PM

The jvm installed is the one that is bundled with PROIV version 8.2

CLASSPATH : JRE_HOME=C:\PROIVVer 8\_jvm7 in the pro4v8.ini file

 

When checking c:>java -version on my machine ,I get a reply 'java version 1.7.0_11' which means the jvm is compatible.

 

Some pointers regarding the 500 error are as follow:-

==========================================

PX-1055 Installer missing entries from pro4v8.ini
PX-1064 PROIV VM crashes when user with no write permissions attempts login
PX-1067 Installer needs to create jvm log files world-writable and adjust permissions on logs directories
PX-1071 Missing JRE_HOME entry in the pro4v8.ini file causes JVM startup failure
 
I have checked the permission on the high level below the proiv installation folder,all have full permission.


#9 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 211 posts
  • Gender:Male
  • Location:Netherlands

Posted 20 May 2016 - 06:23 AM

I think you better talk to proiv support for these errors.

 

An example json message that works for me is:

{
      "OrderID": "TestOrder123",
      "CustomerNumber": 412,
      "CreateInvoice": True,
      "Relations": [
         {
            "Name": "First customer name",
            "RelationId": 412
         },
         {
            "Name": "Second customer name",
            "RelationId": 413
         }
      ]
}
 
The path in my webservices are not real physical paths, you can make up anything you like, as long as you refer to it when you call the webservice.


#10 mikelandl

mikelandl

    Expert

  • Members
  • PipPipPipPip
  • 101 posts

Posted 20 May 2016 - 01:09 PM

Hi Matthews,

 

We were also having issues and ProIV support sent me the following which helped us.

 

This is an issue we have found that occurs when 8.2 is installed as an upgrade. There are a few lines that are missing from the web.xml.

 

 

Please add the following and restart the service:

 

 

<servlet>

 

<servlet-name>SwaggerCodeGenerator</servlet-name>

 

<servlet-class>com.northgateis.proiv.ws.rest.servlet.GeneratorServlet</servlet-class>

 

<load-on-startup>2</load-on-startup>

 

</servlet>

 

<servlet>

 

<servlet-name>RSDStorage</servlet-name>

 

<servlet-class>com.northgateis.proiv.ws.rest.servlet.RSDStorageServlet</servlet-class>

 

<load-on-startup>1</load-on-startup>

 

</servlet>

 

<servlet>

 

<servlet-name>ExportServlet</servlet-name>

 

<servlet-class>com.northgateis.proiv.ws.rest.servlet.ExportServlet</servlet-class>

 

</servlet>

 

<servlet>

 

<servlet-name>ImportServlet</servlet-name>

 

<servlet-class>com.northgateis.proiv.ws.rest.servlet.ImportServlet</servlet-class>

 

</servlet>

 

 

<servlet-mapping>

 

<servlet-name>RSDStorage</servlet-name>

 

<url-pattern>/rsd</url-pattern>

 

</servlet-mapping>

 

<servlet-mapping>

 

<servlet-name>SwaggerCodeGenerator</servlet-name>

 

<url-pattern>/codegen</url-pattern>

 

</servlet-mapping>

 

<servlet-mapping>

 

<servlet-name>ExportServlet</servlet-name>

 

<url-pattern>/export/*</url-pattern>

 

</servlet-mapping> /Swagger

 

<servlet-mapping>

 

<servlet-name>ImportServlet</servlet-name>

 

<url-pattern>/import</url-pattern>

 

</servlet-mapping> 



#11 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 24 May 2016 - 09:01 AM

No luck,we will wait for the next release.In the meantime we will use SOAP/WSDL.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users