Closed ashu8006kumar closed 6 years ago
Thank you for response!
I didn't notice change in WebRTC project. Please change your adapter.js URL from https://webrtc.github.io/samples/src/js/adapter.js to https://webrtc.github.io/adapter/adapter-latest.js
Without this change connection won't be able to start.
Best regards
2016-12-16 13:52 GMT+01:00 ashu8006kumar notifications@github.com:
https://webrtc.github.io/samples/src/js/adapter.js not exits
nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/signaling'
i tried this too nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/ videochat/signaling'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-example-videochat/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRYaGvzVGwNv54xV99l5kcYt_-1_yks5rIomRgaJpZM4LPKH- .
-- Marcin Ślósarz
JS path changed ,
but still same error
For further investigation I'll need the logs from web browser and servlet container (e. g. tomcat)
2016-12-16 15:21 GMT+01:00 ashu8006kumar notifications@github.com:
JS path changed ,
but still same error
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-example-videochat/issues/10#issuecomment-267603868, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRRPnVLaIXy8z7zUkhACEfJkkoFF7ks5rIp5vgaJpZM4LPKH- .
-- Marcin Ślósarz
No error on tomcat
on browser console i Got this
nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/signaling'
i tried this too nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/ videochat/signaling'
How did you run tomcat? If you did that according to readme only one issue that I know is with certificate please check localhost instead of ip and put that addres in cert too
19 gru 2016 06:34 "ashu8006kumar" notifications@github.com napisał(a):
No error on tomcat
on browser console i Got this
nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/signaling'
i tried this too nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/ videochat/signaling'
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-example-videochat/issues/10#issuecomment-267885514, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRUsipz-9xjC3DExMHZNdYP9Qgggpks5rJhdPgaJpZM4LPKH- .
I exported project as war file and running tomcat as service tomcat start . I have my own certificate installed on server
SEVERE: Failed to call onError method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError(PojoEndpointBase.java:134) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:94) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:127) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:703) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onError(NextRTCEndpoint.java:49) ... 15 more
Dec 19, 2016 12:02:08 PM org.apache.tomcat.websocket.pojo.PojoEndpointBase onClose SEVERE: Failed to call onClose method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose(PojoEndpointBase.java:107) at org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:542) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:491) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:455) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:449) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:96) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:127) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:703) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onClose(NextRTCEndpoint.java:42) ... 20 more
Try to remove: @Bean public MyEndpoint myEndpoint() { return new MyEndpoint(); } @Bean public ServerEndpointExporter serverEndpointExporter() { return new ServerEndpointExporter(); } from EndpointConfig Then remove configuration from commit commit 12d7de1a09a1167d27ca495b2782ecd06b4a5b06 rebuild app and deploy again :)
2016-12-19 7:44 GMT+01:00 ashu8006kumar notifications@github.com:
I exported project as war file and running tomcat as service tomcat start . I have my own certificate installed on server
SEVERE: Failed to call onError method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError( PojoEndpointBase.java:134) at org.apache.tomcat.websocket.pojo.PojoEndpointBase. handleOnOpenOrCloseError(PojoEndpointBase.java:94) at org.apache.tomcat.websocket.pojo.PojoEndpointBase. doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer. onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler. init(WsHttpUpgradeHandler.java:127) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler. process(AbstractProtocol.java:703) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor. doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor. run(NioEndpoint.java:1476) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run( TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onError( NextRTCEndpoint.java:49) ... 15 more
Dec 19, 2016 12:02:08 PM org.apache.tomcat.websocket.pojo.PojoEndpointBase onClose SEVERE: Failed to call onClose method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose( PojoEndpointBase.java:107) at org.apache.tomcat.websocket.WsSession.fireEndpointOnClose( WsSession.java:542) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:491) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:455) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:449) at org.apache.tomcat.websocket.pojo.PojoEndpointBase. handleOnOpenOrCloseError(PojoEndpointBase.java:96) at org.apache.tomcat.websocket.pojo.PojoEndpointBase. doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer. onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler. init(WsHttpUpgradeHandler.java:127) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler. process(AbstractProtocol.java:703) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor. doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor. run(NioEndpoint.java:1476) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run( TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onClose( NextRTCEndpoint.java:42) ... 20 more
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-example-videochat/issues/10#issuecomment-267893239, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRdagvRLo6qDPHaCsa-6rwrQ0K5RVks5rJie6gaJpZM4LPKH- .
-- Marcin Ślósarz
Same error
Which Tomcat version do you have?
2016-12-19 14:31 GMT+01:00 ashu8006kumar notifications@github.com:
Same error
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-example-videochat/issues/10#issuecomment-267964411, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRWxoNKx-RcD7udRftCIFf8fdQkhcks5rJodDgaJpZM4LPKH- .
-- Marcin Ślósarz
same error too. tomcat 8.
1월 31, 2017 1:33:41 오후 org.apache.tomcat.websocket.pojo.PojoEndpointBase onError SEVERE: Failed to call onError method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException 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.apache.tomcat.websocket.pojo.PojoEndpointBase.onError(PojoEndpointBase.java:134) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:94) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:128) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:705) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1502) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1458) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onError(NextRTCEndpoint.java:49) ... 16 more
Hello,
Same issue, tomcat 8.
21-Aug-2017 15:20:49.537 SEVERE [http-nio-8433-exec-3] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError Failed to call onError method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError(PojoEndpointBase.java:134) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:94) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:701) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onError(NextRTCEndpoint.java:75) ... 16 more
21-Aug-2017 15:20:49.542 SEVERE [http-nio-8433-exec-3] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose Failed to call onClose method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose(PojoEndpointBase.java:107) at org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:527) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:479) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:445) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:439) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:96) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:701) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onClose(NextRTCEndpoint.java:68) ... 20 more
21-Aug-2017 15:20:49.542 SEVERE [http-nio-8433-exec-3] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError Failed to call onError method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError(PojoEndpointBase.java:134) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:94) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose(PojoEndpointBase.java:112) at org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:527) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:479) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:445) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:439) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:96) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:701) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onError(NextRTCEndpoint.java:75) ... 22 more
I had a little mess in my dependencies deployed on nexus. Please update project to latest version and check if it is working now.
Hello, Thanks for the quick reply! Unfortunately, I tested with an updated version and getted the same issue. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 24-Aug-2017 10:46:05.121 SEVERE [http-nio-8433-exec-3] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError Failed to call onError method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError(PojoEndpointBase.java:134) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:94) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:701) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onError(NextRTCEndpoint.java:75) ... 16 more
24-Aug-2017 10:46:05.127 SEVERE [http-nio-8433-exec-3] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose Failed to call onClose method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose(PojoEndpointBase.java:107) at org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:527) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:479) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:445) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:439) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:96) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:701) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onClose(NextRTCEndpoint.java:68) ... 20 more
24-Aug-2017 10:46:05.128 SEVERE [http-nio-8433-exec-3] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError Failed to call onError method of POJO end point for POJO of type [org.nextrtc.examples.videochat.MyEndpoint] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError(PojoEndpointBase.java:134) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:94) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.onClose(PojoEndpointBase.java:112) at org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:527) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:479) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:445) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:439) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.handleOnOpenOrCloseError(PojoEndpointBase.java:96) at org.apache.tomcat.websocket.pojo.PojoEndpointBase.doOnOpen(PojoEndpointBase.java:79) at org.apache.tomcat.websocket.pojo.PojoEndpointServer.onOpen(PojoEndpointServer.java:70) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:701) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.nextrtc.signalingserver.api.NextRTCEndpoint.onError(NextRTCEndpoint.java:75) ... 22 more
Please execute the following commands
$ git rev-parse --verify HEAD
b28286441f218398f4a456c5c420edb6438cae8f
$ java -version
java version "1.8.0_144"
$ mvn -version
Apache Maven 3.3.9
$ mvn clean install && java -jar target/videochat.war
Then in console what I can see is:
[...]
2017-08-24 19:32:44.053 INFO 5919 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8433 (https)
2017-08-24 19:32:44.063 INFO 5919 --- [ main] o.n.e.v.SampleWebStaticApplication : Started SampleWebStaticApplication in 9.59 seconds (JVM running for 10.283)
2017-08-24 19:36:11.425 INFO 5919 --- [nio-8433-exec-3] o.n.signalingserver.api.NextRTCEventBus : POSTED EVENT: SESSION_OPENED (0) <- null -> (null)
2017-08-24 19:39:09.296 INFO 5919 --- [nio-8433-exec-7] o.n.signalingserver.api.NextRTCEndpoint : Handling message from: 0
2017-08-24 19:39:09.299 INFO 5919 --- [nio-8433-exec-7] o.nextrtc.signalingserver.domain.Server : Incoming: (0 -> null)[create]: a |{}
2017-08-24 19:39:09.789 INFO 5919 --- [nio-8433-exec-7] o.n.signalingserver.api.NextRTCEventBus : POSTED EVENT: CONVERSATION_CREATED (0) <- MeshConversation: a -> (null)
2017-08-24 19:39:09.794 INFO 5919 --- [nio-8433-exec-7] o.n.signalingserver.api.NextRTCEventBus : POSTED EVENT: MEMBER_JOINED (0) <- MeshConversation: a -> (null)
2017-08-24 19:39:09.798 INFO 5919 --- [nio-8433-exec-7] o.n.s.domain.InternalMessage : Outgoing: (null -> 0)[created]: a |{type=MESH
So I can create conversation, connect to it. The logs that you're provided shows that the endpoint wasn't created and in parallel some connection failed. Could you please provides me all information about your environment and the way how you're deploying your app? I can prepare configuration for codehause cargo, so then you'll have working tomcat setup in directory /target/tomcat-X-X-X/
Hello,
For making it simple, I installed maven/tomcat and jdk without Netbeans. I'm on Windows 10.
Installed JDK from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Installed Maven from https://maven.apache.org/download.cgi
Installed tomcat from https://tomcat.apache.org/
Launch my Tomcat, works!
$ java -version java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
$ mvn -version Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00) Maven home: C:\java\apache-maven Java version: 1.8.0_144, vendor: Oracle Corporation Java home: C:\java\jdk Default locale: fr_FR, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
mvn clean install && java -jar target/videochat.war [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building videochat 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ nextrtc-example-videochat --- [INFO] Deleting C:\java\apache-tomcat\webapps\nextrtc-example-videochat\target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ nextrtc-example-videochat --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ nextrtc-example-videochat --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to C:\java\apache-tomcat\webapps\nextrtc-example-videochat\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.955 s [INFO] Finished at: 2017-08-28T12:07:07+02:00 [INFO] Final Memory: 16M/227M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project nextrtc-example-videochat: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I'm sre to use the jdk!
Any ideas?
Fixed: a bad configuration from my side (my "javac" was in another part of my computer). Dziękuję za pomoc!
https://webrtc.github.io/samples/src/js/adapter.js not exits
nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/signaling'
i tried this too nextRTC.js:12 WebSocket connection to 'wss://127.0.0.1:8433/videochat/signaling'