httpexception 500 internal server errorhttps://www.eclipse.org/forums/index.php/mv/msg/457459/1014832/#msg_1014832
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.

!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]]>marco giudici2013-02-26T15:00:35-00:00Re: httpexception 500 internal server errorhttps://www.eclipse.org/forums/index.php/mv/msg/457459/1014857/#msg_1014857
What does the server console say? The client console only reports the 500 error from the server.
]]>Arthur vD2013-02-26T15:50:48-00:00Re: httpexception 500 internal server errorhttps://www.eclipse.org/forums/index.php/mv/msg/457459/1014864/#msg_1014864
this is the complete message that show me when click to start Swing or SWT (see image error.png):

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

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]]>marco giudici2013-02-26T16:02:55-00:00Re: httpexception 500 internal server errorhttps://www.eclipse.org/forums/index.php/mv/msg/457459/1014868/#msg_1014868
I find also this message in the server console:

!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]]>marco giudici2013-02-26T16:08:57-00:00Re: httpexception 500 internal server errorhttps://www.eclipse.org/forums/index.php/mv/msg/457459/1014913/#msg_1014913
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.
]]>Arthur vD2013-02-26T18:29:31-00:00Re: httpexception 500 internal server errorhttps://www.eclipse.org/forums/index.php/mv/msg/457459/1015003/#msg_1015003
At the end the problem is located on Common Service for SQL Services, I delete and recreate this service and now all works fine.