java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Coderanch by Agraj Mangal, 11 months ago
via Stack Overflow by Unknown author, 2 years ago
via Stack Overflow by Thiru
, 1 year ago
This exception has no message.
via hibernate.org by Unknown author, 1 year ago
java.lang.NullPointerException:
at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:586)
at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:524)
at com.mysql.jdbc.PreparedStatement.toString(PreparedStatement.java:3551)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at com.mysql.jdbc.trace.Tracer.printParameters(Tracer.aj:240)
at com.mysql.jdbc.trace.Tracer.printEntering(Tracer.aj:167)
at com.mysql.jdbc.trace.Tracer.entry(Tracer.aj:126)
at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
at com.mysql.jdbc.Connection.registerStatement(Connection.java)
at com.mysql.jdbc.Statement.(Statement.java:197)
at com.mysql.jdbc.PreparedStatement.(PreparedStatement.java:442)
at com.mysql.jdbc.ServerPreparedStatement.asSql(ServerPreparedStatement.java:347)
at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:524)
at com.mysql.jdbc.ServerPreparedStatement.toString(ServerPreparedStatement.java:2327)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at com.mysql.jdbc.trace.Tracer.printParameters(Tracer.aj:240)
at com.mysql.jdbc.trace.Tracer.printEntering(Tracer.aj:167)
at com.mysql.jdbc.trace.Tracer.entry(Tracer.aj:126)
at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
at com.mysql.jdbc.Connection.registerStatement(Connection.java)
at com.mysql.jdbc.Statement.(Statement.java:197)
at com.mysql.jdbc.PreparedStatement.(PreparedStatement.java:423)
at com.mysql.jdbc.ServerPreparedStatement.(ServerPreparedStatement.java:280)
at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4363)
at com.tutorialspoint.JDBCBatchUpdateExample.batchInsertRecordsIntoTable(JDBCBatchUpdateExample.java:49)
at com.tutorialspoint.JDBCBatchUpdateExample.main(JDBCBatchUpdateExample.java:29)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.