You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, i have a problem with starting containers, sometimes it displays me this error, here is an example of the JSON that is sent to Docker Engine API to create the container. The creation is always successful, but startup isn't. But it doesn't happen only for this container. Char 80 corresponds to a random char in the JSON. It tells me each times char 80.
Exception in thread "main" javax.json.stream.JsonParsingException: Unexpected char 80 at (line no=1, column no=1, offset=0)
at org.glassfish.json.JsonTokenizer.unexpectedChar(JsonTokenizer.java:532)
at org.glassfish.json.JsonTokenizer.nextToken(JsonTokenizer.java:415)
at org.glassfish.json.JsonParserImpl$NoneContext.getNextEvent(JsonParserImpl.java:222)
at org.glassfish.json.JsonParserImpl$StateIterator.next(JsonParserImpl.java:172)
at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:149)
at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:101)
at com.amihaiemil.docker.PayloadOf.lambda$new$1(PayloadOf.java:81)
at com.amihaiemil.docker.JsonResource.(JsonResource.java:64)
at com.amihaiemil.docker.PayloadOf.(PayloadOf.java:77)
at com.amihaiemil.docker.MatchStatus.handleResponse(MatchStatus.java:95)
at com.amihaiemil.docker.MatchStatus.handleResponse(MatchStatus.java:43)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)
at com.amihaiemil.docker.HttpClientEnvelope.execute(HttpClientEnvelope.java:103)
at com.amihaiemil.docker.RtContainer.start(RtContainer.java:93)
at dev.lyramc.seedplant.modules.lobby.LobbyInstance.start(LobbyInstance.java:50)
at dev.lyramc.seedplant.managers.docker.DockerManager.load(DockerManager.java:40)
at dev.lyramc.seedplant.managers.Manager.initManagers(Manager.java:21)
at dev.lyramc.seedplant.SeedPlant.(SeedPlant.java:18)
at dev.lyramc.seedplant.Main.main(Main.java:6)
The text was updated successfully, but these errors were encountered:
@amihaiemil I know, don't worry the lib has everything I need! I looked the src. And for unimplemented features I can always use the queries by hand. I prefer that to using other java libs that are not documented at all and not clear about the methods.
@rootxls to be honest, I'm not sure what the problem might be. First of all, make sure you're using the right instance of Docker (see here). I guess you're using the right class, otherwise it wouldn't work at all.
Have you tried debugging? We also publish the sources of this lib, so you should have them in your IDE, to go into the PayloadOf class and see what comes there.
Most likely, the problem is that the status is correct (e.g. 200 OK), but the body payload is not a JSON as expected. Have a look into the API documentation of your Docker version, maybe it returns something else if the container is already started. If you find something, please post it here.
Hey, i have a problem with starting containers, sometimes it displays me this error, here is an example of the JSON that is sent to Docker Engine API to create the container. The creation is always successful, but startup isn't. But it doesn't happen only for this container. Char 80 corresponds to a random char in the JSON. It tells me each times char 80.
Exception in thread "main" javax.json.stream.JsonParsingException: Unexpected char 80 at (line no=1, column no=1, offset=0)
at org.glassfish.json.JsonTokenizer.unexpectedChar(JsonTokenizer.java:532)
at org.glassfish.json.JsonTokenizer.nextToken(JsonTokenizer.java:415)
at org.glassfish.json.JsonParserImpl$NoneContext.getNextEvent(JsonParserImpl.java:222)
at org.glassfish.json.JsonParserImpl$StateIterator.next(JsonParserImpl.java:172)
at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:149)
at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:101)
at com.amihaiemil.docker.PayloadOf.lambda$new$1(PayloadOf.java:81)
at com.amihaiemil.docker.JsonResource.(JsonResource.java:64)
at com.amihaiemil.docker.PayloadOf.(PayloadOf.java:77)
at com.amihaiemil.docker.MatchStatus.handleResponse(MatchStatus.java:95)
at com.amihaiemil.docker.MatchStatus.handleResponse(MatchStatus.java:43)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)
at com.amihaiemil.docker.HttpClientEnvelope.execute(HttpClientEnvelope.java:103)
at com.amihaiemil.docker.RtContainer.start(RtContainer.java:93)
at dev.lyramc.seedplant.modules.lobby.LobbyInstance.start(LobbyInstance.java:50)
at dev.lyramc.seedplant.managers.docker.DockerManager.load(DockerManager.java:40)
at dev.lyramc.seedplant.managers.Manager.initManagers(Manager.java:21)
at dev.lyramc.seedplant.SeedPlant.(SeedPlant.java:18)
at dev.lyramc.seedplant.Main.main(Main.java:6)
The text was updated successfully, but these errors were encountered: