Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API : /SIMRacingApps/Data/Car/ Error 500 #204

Closed
bastienmp opened this issue May 19, 2019 · 3 comments
Closed

API : /SIMRacingApps/Data/Car/ Error 500 #204

bastienmp opened this issue May 19, 2019 · 3 comments
Labels
Milestone

Comments

@bastienmp
Copy link

@bastienmp bastienmp commented May 19, 2019

Hey

I m not sure this path is supposed to work, anyway it throws an error :
HTTP ERROR 500
Problem accessing /SIMRacingApps/Data/Car/. Reason:

Server Error

Caused by:
com.owlike.genson.JsonBindingException: Could not deserialize to type interface java.util.Map
at com.owlike.genson.Genson.deserialize(Genson.java:391)
at com.owlike.genson.Genson.deserialize(Genson.java:306)
at com.SIMRacingApps.servlets.Data.doGet(Data.java:411)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:864)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:215)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:531)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:319)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:175)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:133)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672)
at java.lang.Thread.run(Unknown Source)
Caused by: com.owlike.genson.JsonBindingException: Could not deserialize to type interface java.util.Map
at com.owlike.genson.Genson.deserialize(Genson.java:391)
at com.owlike.genson.convert.DefaultConverters$UntypedConverterFactory$UntypedConverter.deserialize(DefaultConverters.java:1074)
at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:713)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:698)
at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
at com.owlike.genson.Genson.deserialize(Genson.java:389)
... 33 more
Caused by: com.owlike.genson.JsonBindingException: Could not deserialize to type interface java.util.Map
at com.owlike.genson.Genson.deserialize(Genson.java:391)
at com.owlike.genson.convert.DefaultConverters$UntypedConverterFactory$UntypedConverter.deserialize(DefaultConverters.java:1074)
at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:713)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:698)
at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
at com.owlike.genson.Genson.deserialize(Genson.java:389)
... 39 more
Caused by: com.owlike.genson.JsonBindingException: Could not deserialize to type interface java.util.Map
at com.owlike.genson.Genson.deserialize(Genson.java:391)
at com.owlike.genson.convert.DefaultConverters$UntypedConverterFactory$UntypedConverter.deserialize(DefaultConverters.java:1074)
at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:713)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:698)
at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
at com.owlike.genson.Genson.deserialize(Genson.java:389)
... 45 more
Caused by: com.owlike.genson.stream.JsonStreamException: Illegal character around row 0 and column 975 awaited for literal (number, boolean or null) but read 'c'!
at com.owlike.genson.stream.JsonStreamException$Builder.create(JsonStreamException.java:63)
at com.owlike.genson.stream.JsonReader.consumeLiteral(JsonReader.java:524)
at com.owlike.genson.stream.JsonReader.consumeValue(JsonReader.java:395)
at com.owlike.genson.stream.JsonReader.next(JsonReader.java:379)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:712)
at com.owlike.genson.convert.DefaultConverters$MapConverter.deserialize(DefaultConverters.java:698)
at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
at com.owlike.genson.Genson.deserialize(Genson.java:389)
... 51 more

Thanks for the good work with SRA :)

@jfgilliam jfgilliam added the bug label May 19, 2019
@jfgilliam
Copy link
Contributor

@jfgilliam jfgilliam commented May 19, 2019

Ok, I see the problem. A couple of years back, I rewrote the Gauge class and never provided a serialized version of it. This will be fixed with the next BETA release.

@jfgilliam jfgilliam added this to the Version 1.10 milestone May 19, 2019
@bastienmp
Copy link
Author

@bastienmp bastienmp commented Jun 1, 2019

The same error occure for /SIMRacingApps/Data/Car/ME/Gauge :)

@jfgilliam
Copy link
Contributor

@jfgilliam jfgilliam commented Jun 1, 2019

Thanks. I've been swamped with real work, but with the new build of iRacing coming out next week. I will be updating the content and releasing the BETA.

jfgilliam added a commit to SIMRacingApps/SIMRacingAppsServer that referenced this issue Jun 2, 2019
        API : /SIMRacingApps/Data/Car/ Error 500
jfgilliam added a commit to SIMRacingApps/SIMRacingAppsServer that referenced this issue Jun 8, 2019
(SIMRacingApps/SIMRacingApps#204)
        API : /SIMRacingApps/Data/Car/ Error 500

    2.  Added new iRacing Content from the June 2019 build.
        - Wildhorse track
        - Wildwest track
        - Silverstone Circuit 2019 - 3 Configurations
        - NASCAR Ford 2019 Mustang
        - NASCAR Truck 2019 Silverado
        - Lucas Oil Off Road Pro Trucks 2 & 4
@jfgilliam jfgilliam closed this in fc61baf Jun 8, 2019
jfgilliam added a commit that referenced this issue Jun 23, 2019
configurations get corrupted.
        Unfortunately when this happens, if you have configurations
other than "default", you will have to recreate them.

    2.  Added new widgets for Text Gauges.

    3.  Close #202
(#202)
        Added new Apps called NASCAR-Digital-Dash and
NASCAR-Analog-Dash.
        These are very basic. Use these as is or copy them and customize
them.

    4.  Close #201
(#201)
        Added new G-Force widget contributed by Gary Prince.
        Added new Compteur widget contributed by Gary Prince.
        Resulted in 2 new API methods:
          /Car/(CARIDENTIFIER)/LongitudeAcceration/(UOM)
          /Car/(CARIDENTIFIER)/LatitudeAcceration/(UOM)

    5.  Fixed #203
(#203)
        CMD Black box appears, then disappears and Server does not
start.
        Exception in thread "main" java.lang.UnsatisfiedLinkError:
        Can't obtain InputStream for
com/sun/jna/win32-x86-64/jnidispatch.dll
        Updated JNA library from 4.5 to 5.3.

    6.  Fixed #204
(#204)
        API : /SIMRacingApps/Data/Car/ Error 500

    7.  Added new iRacing Content from the June 2019 build.
        - Wildhorse track
        - Wildwest track
        - Silverstone Circuit 2019 - 3 Configurations
        - NASCAR Ford 2019 Mustang
        - NASCAR Truck 2019 Silverado
        - Lucas Oil Off Road Pro Trucks 2 & 4

    8.  Updated the German translations. Thanks to H.Gieger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants