Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » httpexception 500 internal server error
httpexception 500 internal server error [message #1014832] Tue, 26 February 2013 10:00 Go to next message
marco giudici is currently offline marco giudici
Messages: 121
Registered: February 2013
Senior Member
Hi all,
I''m new to the use of scout ... I have developed my application and I was doing some tests. At some point, by starting Swing or SWT, Eclipse has started to give me the following message: httpexception 500 internal server error.
The strange thing is that the server starts successfully.

In the eclipse console I can read this:

!SESSION 2013-02-26 15:57:12.714 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.zeiss.mo.scout.CZVEDIController.ui.swing.product
Command-line arguments: -product org.zeiss.mo.scout.CZVEDIController.ui.swing.product -data C:\Projects\scout/../runtime-CZVEDIController-swing-client-dev.product -dev file:C:/Projects/scout/.metadata/.plugins/org.eclipse.pde.core/CZVEDIController-swing-client-dev.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.scout.rt.client 4 0 2013-02-26 15:57:19.167
!MESSAGE org.eclipse.scout.rt.client.AbstractClientSession.startSession(AbstractClientSession.java:257) load session
!STACK 0
java.lang.reflect.UndeclaredThrowableException
at $Proxy6.getAllCodeTypeClasses(Unknown Source)
at org.eclipse.scout.rt.client.services.common.code.CodeServiceClientProxy.getAllCodeTypeClasses(CodeServiceClientProxy.java:342)
at org.eclipse.scout.rt.client.services.common.code.CodeServiceClientProxy.getAllCodeTypes(CodeServiceClientProxy.java:363)
at org.eclipse.scout.rt.shared.services.common.code.CODES.getAllCodeTypes(CODES.java:64)
at org.zeiss.mo.scout.CZVEDIController.client.ClientSession.execLoadSession(ClientSession.java:48)
at org.eclipse.scout.rt.client.AbstractClientSession.startSession(AbstractClientSession.java:252)
at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService$1.runVoid(ClientSessionRegistryService.java:70)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:177)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:161)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:149)
at org.eclipse.scout.commons.job.JobEx.runNow(JobEx.java:50)
at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService.createAndStartClientSession(ClientSessionRegistryService.java:74)
at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService.newClientSession(ClientSessionRegistryService.java:45)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.getClientSession(SwingApplication.java:62)
at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.startInSubject(AbstractSwingApplication.java:179)
at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.start(AbstractSwingApplication.java:141)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.startSecure(SwingApplication.java:57)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.access$0(SwingApplication.java:49)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication$1.run(SwingApplication.java:39)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.start(SwingApplication.java:36)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: ProcessingException[ProcessingStatus[ERROR code=0 Calling ICodeService.getAllCodeTypeClasses() org.eclipse.scout.rt.shared.servicetunnel.HttpException: 500 - INTERNAL_SERVER_ERROR]]
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:163)
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.invokeService(InternalHttpServiceTunnel.java:174)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:115)
at org.eclipse.scout.rt.client.servicetunnel.ServiceTunnelInvocationHandler.invoke(ServiceTunnelInvocationHandler.java:47)
at $Proxy6.getAllCodeTypeClasses(Unknown Source)
at org.eclipse.scout.rt.client.services.common.code.CodeServiceClientProxy.getAllCodeTypeClasses(CodeServiceClientProxy.java:342)
at org.eclipse.scout.rt.client.services.common.code.CodeServiceClientProxy.getAllCodeTypes(CodeServiceClientProxy.java:363)
at org.eclipse.scout.rt.shared.services.common.code.CODES.getAllCodeTypes(CODES.java:64)
at org.zeiss.mo.scout.CZVEDIController.client.ClientSession.execLoadSession(ClientSession.java:48)
at org.eclipse.scout.rt.client.AbstractClientSession.startSession(AbstractClientSession.java:252)
at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService$1.runVoid(ClientSessionRegistryService.java:70)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:177)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:161)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:149)
at org.eclipse.scout.commons.job.JobEx.runNow(JobEx.java:50)
at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService.createAndStartClientSession(ClientSessionRegistryService.java:74)
at org.eclipse.scout.rt.client.services.common.session.internal.ClientSessionRegistryService.newClientSession(ClientSessionRegistryService.java:45)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.getClientSession(SwingApplication.java:62)
at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.startInSubject(AbstractSwingApplication.java:179)
at org.eclipse.scout.rt.ui.swing.AbstractSwingApplication.start(AbstractSwingApplication.java:141)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.startSecure(SwingApplication.java:57)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.access$0(SwingApplication.java:49)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication$1.run(SwingApplication.java:39)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.zeiss.mo.scout.CZVEDIController.ui.swing.SwingApplication.start(SwingApplication.java:36)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
at org.eclipse.scout.rt.client.servicetunnel.AbstractServiceTunnel.invokeService(AbstractServiceTunnel.java:167)
at org.eclipse.scout.rt.client.servicetunnel.http.internal.InternalHttpServiceTunnel.invokeService(InternalHttpServiceTunnel.java:174)
at org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel.invokeService(HttpServiceTunnel.java:115)
at org.eclipse.scout.rt.client.servicetunnel.ServiceTunnelInvocationHandler.invoke(ServiceTunnelInvocationHandler.java:47)
... 35 more
Caused by: org.eclipse.scout.rt.shared.servicetunnel.HttpException: 500 - INTERNAL_SERVER_ERROR
at org.eclipse.scout.rt.client.servicetunnel.http.internal.HttpBackgroundJob.runStatus(HttpBackgroundJob.java:85)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:161)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:149)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)


Someone have had the same thing? How can I fix?

thanks in advance for the help
Re: httpexception 500 internal server error [message #1014857 is a reply to message #1014832] Tue, 26 February 2013 10:50 Go to previous messageGo to next message
Arthur vD is currently offline Arthur vD
Messages: 50
Registered: March 2010
Member
Hi
What does the server console say? The client console only reports the 500 error from the server.
Re: httpexception 500 internal server error [message #1014864 is a reply to message #1014857] Tue, 26 February 2013 11:02 Go to previous messageGo to next message
marco giudici is currently offline marco giudici
Messages: 121
Registered: February 2013
Senior Member
Hi Arthur,
this is the complete message that show me when click to start Swing or SWT (see image error.png):

index.php/fa/13565/0/

the console reports the message that I post in the first message (italic section).
I find in "error log" the following message (see image eventerror.png):

index.php/fa/13566/0/

I hope I have given you all the necessary information to be able to help me, otherwise try to explain to me how to get what you could serve.

sorry if the error messages are in Italian, but the system automatically presents them to me so
  • Attachment: Error.png
    (Size: 30.24KB, Downloaded 530 times)
  • Attachment: eventerror.png
    (Size: 75.44KB, Downloaded 533 times)
Re: httpexception 500 internal server error [message #1014868 is a reply to message #1014864] Tue, 26 February 2013 11:08 Go to previous messageGo to next message
marco giudici is currently offline marco giudici
Messages: 121
Registered: February 2013
Senior Member
Hi Arthur,
I find also this message in the server console:

!SESSION 2013-02-26 16:52:18.604 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments: -product org.zeiss.mo.scout.CZVEDIController.server.product
Command-line arguments: -product org.zeiss.mo.scout.CZVEDIController.server.product -data C:\Projects\scout/../runtime-CZVEDIController-server-dev.product -dev file:C:/Projects/scout/.metadata/.plugins/org.eclipse.pde.core/CZVEDIController-server-dev.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.scout.rt.server 4 0 2013-02-26 16:53:10.145
!MESSAGE org.eclipse.scout.rt.server.ServiceTunnelServlet.doPost(ServiceTunnelServlet.java:322) Session=r7h5o7k35fgh1kvf35chpc5bb, Client=admin@127.0.0.1/127.0.0.1
!STACK 0
ProcessingException[ProcessingStatus[ERROR code=0 Unexpected java.lang.NullPointerException]]
at org.eclipse.scout.commons.job.JobEx.throwOnError(JobEx.java:69)
at org.eclipse.scout.rt.server.services.common.session.ServerSessionRegistryService.newServerSession(ServerSessionRegistryService.java:61)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.lookupScoutServerSessionOnHttpSession(ServiceTunnelServlet.java:207)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.doPost(ServiceTunnelServlet.java:290)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.scout.http.servletfilter.HttpServletEx.access$0(HttpServletEx.java:1)
at org.eclipse.scout.http.servletfilter.HttpServletEx$1.service(HttpServletEx.java:38)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:44)
at org.eclipse.scout.http.servletfilter.helper.HttpAuthJaasFilter.doFilter(HttpAuthJaasFilter.java:62)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.helper.DevelopmentAuthFilter.doFilter(DevelopmentAuthFilter.java:61)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.doFilter(AbstractChainableSecurityFilter.java:103)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.doFilterInternal(AbstractChainableSecurityFilter.java:220)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.access$0(AbstractChainableSecurityFilter.java:219)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter$1.run(AbstractChainableSecurityFilter.java:157)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.eclipse.scout.http.servletfilter.security.AbstractChainableSecurityFilter.doFilter(AbstractChainableSecurityFilter.java:149)
at org.eclipse.scout.http.servletfilter.internal.FilterChainImpl.doFilter(FilterChainImpl.java:41)
at org.eclipse.scout.http.servletfilter.ServletFilterDelegate.delegateServiceMethod(ServletFilterDelegate.java:57)
at org.eclipse.scout.http.servletfilter.HttpServletEx.service(HttpServletEx.java:35)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:384)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.eclipse.scout.rt.server.services.common.jdbc.SQL.selectInto(SQL.java:117)
at org.zeiss.mo.scout.CZVEDIController.server.ServerSession.execLoadSession(ServerSession.java:47)
at org.eclipse.scout.rt.server.AbstractServerSession.loadSession(AbstractServerSession.java:212)
at org.eclipse.scout.rt.server.services.common.session.ServerSessionRegistryService$1.runTransaction(ServerSessionRegistryService.java:56)
at org.eclipse.scout.rt.server.ServerJob.runTransactionWrapper(ServerJob.java:202)
at org.eclipse.scout.rt.server.ServerJob.access$0(ServerJob.java:190)
at org.eclipse.scout.rt.server.ServerJob$1.run(ServerJob.java:161)
at org.eclipse.scout.rt.server.ServerJob$1.run(ServerJob.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.eclipse.scout.rt.server.ServerJob.run(ServerJob.java:156)
at org.eclipse.scout.commons.job.JobEx.runNow(JobEx.java:50)
at org.eclipse.scout.rt.server.ServerJob.runNow(ServerJob.java:148)
at org.eclipse.scout.rt.server.services.common.session.ServerSessionRegistryService.newServerSession(ServerSessionRegistryService.java:60)
... 49 more
Re: httpexception 500 internal server error [message #1014913 is a reply to message #1014868] Tue, 26 February 2013 13:29 Go to previous messageGo to next message
Arthur vD is currently offline Arthur vD
Messages: 50
Registered: March 2010
Member
marco giudici wrote on Tue, 26 February 2013 11:08

Caused by: java.lang.NullPointerException
at org.eclipse.scout.rt.server.services.common.jdbc.SQL.selectInto(SQL.java:117)
at org.zeiss.mo.scout.CZVEDIController.server.ServerSession.execLoadSession(ServerSession.java:47)
at org.eclipse.scout.rt.server.AbstractServerSession.loadSession(AbstractServerSession.java:212
[/i]

That's the part you are looking for. I don't have a Scout installation at hand at the moment, but it looks as though something in the session startup wants to call the database using the SQL helper class, which in turn looks for an ISqlService which it can't find. Hence the NPE. Check http://wiki.eclipse.org/Scout/Tutorial/3.8/Minicrm/Set_up_SQL_Service on how to setup a simple Derby database or search the forum and the wiki for more info.
Have fun.
Re: httpexception 500 internal server error [message #1015003 is a reply to message #1014913] Wed, 27 February 2013 02:53 Go to previous message
marco giudici is currently offline marco giudici
Messages: 121
Registered: February 2013
Senior Member
I check link that you suggest me.

At the end the problem is located on Common Service for SQL Services, I delete and recreate this service and now all works fine.

Thank you for your help.

[Updated on: Wed, 27 February 2013 03:21]

Report message to a moderator

Previous Topic:Eclipse Scout Maven Tycho Build
Next Topic:Multi-threading issue when using Scout Swing client
Goto Forum:
  


Current Time: Mon Jul 28 06:26:20 EDT 2014

Powered by FUDForum. Page generated in 0.04307 seconds