on 03-18-2019 2:56 PM
I am using web-socket to receive and send data continuously between server and the client. I am also trying to add some of the data into Hana Database and it cannot use http connection, because websocket is already using it.
I tried to use JDBC Persistence with my websocket application, but it doesn't find the dataSource
2019 03 18 13:49:35#+00#ERROR#java.lang.Throwable##anonymous#https-jsse-nio-8041-exec-5#na#a009b7635#websockettomcat8#web##na#na#na#na#java.lang.NullPointerException: while trying to invoke the method javax.sql.DataSource.getConnection() of a null object loaded from static field persistence.ws.TemperatureDAO.dataSource
I have been trying to get this work for 5 hours now and it almost seems like you can't use JDBC Persistence while having ongoing http websocket connection. I hope I am wrong and hopefully someone who is more familiar in this topic could help me out.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.