Java exception when unpublishing the stream

Hi,

-Version: 5.5.2-1043 (Amazon AWS)
-WebSDK: 2.0.247


Every time i unpublish my stream i get a java exception in the flashphoner log
Code:
20:16:51,032 INFO         RestApiRouter - HTTP-pool-3-thread-6 Use controller class com.flashphoner.rest.server.apps.echo_apps.EchoApp with path /apps/EchoApp/StreamStatusEvent
20:16:51,032 WARN         RestApiRouter - HTTP-pool-3-thread-6 Invalid UTF-8 start byte 0xae
 at [Source: org.jboss.netty.buffer.ChannelBufferInputStream@28e642fa; line: 1, column: 1281]
org.codehaus.jackson.JsonParseException: Invalid UTF-8 start byte 0xae
 at [Source: org.jboss.netty.buffer.ChannelBufferInputStream@28e642fa; line: 1, column: 1281]
        at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)
        at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
        at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidInitial(Utf8StreamParser.java:2825)
        at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidChar(Utf8StreamParser.java:2819)
        at org.codehaus.jackson.impl.Utf8StreamParser._finishString2(Utf8StreamParser.java:1978)
        at org.codehaus.jackson.impl.Utf8StreamParser._finishString(Utf8StreamParser.java:1905)
        at org.codehaus.jackson.impl.Utf8StreamParser.getText(Utf8StreamParser.java:276)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:59)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.mapObject(UntypedObjectDeserializer.java:204)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:47)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.mapArray(UntypedObjectDeserializer.java:165)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:51)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.mapObject(UntypedObjectDeserializer.java:204)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:47)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.mapObject(UntypedObjectDeserializer.java:204)
        at org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:47)
        at org.codehaus.jackson.map.deser.std.MapDeserializer._readAndBind(MapDeserializer.java:319)
        at org.codehaus.jackson.map.deser.std.MapDeserializer.deserialize(MapDeserializer.java:249)
        at org.codehaus.jackson.map.deser.std.MapDeserializer.deserialize(MapDeserializer.java:33)
        at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
        at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1909)
        at com.flashphoner.rest.server.RestApiRouter.processRequest(Unknown Source)
        at com.flashphoner.server.http.handlers.RestApiRequestHandler.process(Unknown Source)
        at com.flashphoner.server.http.G.messageReceived(Unknown Source)
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown Source)
        at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown Source)
        at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(Unknown Source)
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown Source)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
        at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(Unknown Source)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Unknown Source)
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(Unknown Source)
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown Source)
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown Source)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
        at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
        at org.jboss.netty.channel.socket.nio.NioWorker.read(Unknown Source)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(Unknown Source)
        at org.jboss.netty.channel.socket.nio.DeadlockAwareNioWorker.run(Unknown Source)
        at org.jboss.netty.util.ThreadRenamingRunnable.run(Unknown Source)
        at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)
20:16:51,033 INFO               EchoApp - HTTP-pool-3-thread-6 handleRequest method: StreamStatusEvent params:null
20:17:00,390 INFO              WSClient - WSS-pool-23-thread-7 Close connection for channel [id: 0x50d26320, /92.116.184.114:59725 => /172.31.2.124:8443] with status code: 1000 ; reason: Normal disconnect
20:17:00,390 INFO           WCS4Handler - DISCONNECT-CLIENT-pool-6-thread-4 Disconnect client: com.flashphoner.server.client.MediaWCSClient@2e784341
20:17:00,390 INFO           WCS4Handler - DISCONNECT-CLIENT-pool-6-thread-4


I haven't seen this in the 2.0.202 WebSDK. Do you know why this happens?

Best,
Thomas
 

Max

Administrator
Staff member
Good day.
You're using too old WCS build. Some new events are added on a client side, so the old WCS build cannot handle them. Please update to the latest WCS build 5.2.2036.
 
Top