Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Get Stuck while reading from JDBC resultset (MS SQL SERVER) Driver

$
0
0

I am getting stuck threads on weblogic server when getting the data from result set.

As per my analysis, the stuck is on below class "java.nio.charset.CharsetDecoder.decode", as per JAVA documents this is not thread safe class, but this class is called from MS SQL Driver class.

 

 

"[STUCK] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'" Id=38 RUNNABLE

         

            **at sun.nio.cs.UnicodeDecoder.decodeLoop(UnicodeDecoder.java:68)

         

            at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:561)**

         

            at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:160)

         

            at java.lang.StringCoding.decode(StringCoding.java:193)

         

            at java.lang.String.<init>(String.java:416)

         

            at java.lang.String.<init>(String.java:481)

         

            at com.microsoft.sqlserver.jdbc.DDC.convertStreamToObject(DDC.java:438)

         

            at com.microsoft.sqlserver.jdbc.ServerDTVImpl.getValue(dtv.java:2536)

         

            at com.microsoft.sqlserver.jdbc.DTV.getValue(dtv.java:193)

         

            at com.microsoft.sqlserver.jdbc.Column.getValue(Column.java:132)

         

            at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getValue(SQLServerResultSet.java:2082)

         

            at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getValue(SQLServerResultSet.java:2067)

         

            at com.microsoft.sqlserver.jdbc.SQLServerResultSet.**getString**(SQLServerResultSet.java:2401)

         

            at weblogic.jdbc.wrapper.ResultSet_com_microsoft_sqlserver_jdbc_SQLServerResultSet.getString(Unknown Source)

         

            at com.sp.taskui.model.modules.shipment.ShipmentManager.fetchShipDetailsFromDS(ShipmentManager.java:742)

 

I am not able to find the similar issue, so not able to get the proper fix for this issue.

 

 

Code on ShipmentManager.java:742

//rs - > java.sql.ResultSet

rs.getString("USER")


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>