0 Replies Latest reply on May 26, 2005 1:53 PM by Mick Jordan

    AOP on by default causing a crash

    Mick Jordan Newbie

      I'm running JBoss 4.0.2 out of the box under JDK 1.5.0 using the default configuration with the RUBiS benchmark application and getting a null pointer exception that seems to be caused by the application of some tracing AOP. From reading the manual it seems that AOP has to be turned on explicitly, which is not the case. RUBiS is slightly odd in that it bundles a MySQL driver in the war file and it is these files that are getting the NullPointer Exception. I'd sure like to know how to disable this AOP transformation and would appreciate any insight from experienced users. Here is the stack trace showing what I believe to be AOP frames:

      09:47:54,712 INFO [STDOUT] java.lang.NullPointerException
      09:47:54,714 INFO [STDOUT] at com.mysql.jdbc.PreparedStatement.asSql(PreparedStatement.java:1845)
      09:47:54,714 INFO [STDOUT] at com.mysql.jdbc.PreparedStatement.toString(PreparedStatement.java:1770)
      09:47:54,714 INFO [STDOUT] at java.lang.String.valueOf(String.java:2577)
      09:47:54,715 INFO [STDOUT] at java.lang.StringBuffer.append(StringBuffer.java:220)
      09:47:54,715 INFO [STDOUT] at com.mysql.jdbc.trace.Tracer.printParameters(Tracer.aj:240)
      09:47:54,715 INFO [STDOUT] at com.mysql.jdbc.trace.Tracer.printEntering(Tracer.aj:167)
      09:47:54,715 INFO [STDOUT] at com.mysql.jdbc.trace.Tracer.entry(Tracer.aj:126)
      09:47:54,715 INFO [STDOUT] at com.mysql.jdbc.trace.Tracer.ajc$before$com_mysql_jdbc_trace_Tracer$1$f51c62b8(Tracer.aj:45)
      09:47:54,716 INFO [STDOUT] at com.mysql.jdbc.Connection.registerStatement(Connection.java)
      09:47:54,716 INFO [STDOUT] at com.mysql.jdbc.Statement.(Statement.java:171)
      09:47:54,716 INFO [STDOUT] at com.mysql.jdbc.PreparedStatement.(PreparedStatement.java:139)
      09:47:54,716 INFO [STDOUT] at com.mysql.jdbc.Connection.clientPrepareStatement(Connection.java:1053)
      09:47:54,716 INFO [STDOUT] at com.mysql.jdbc.Connection.clientPrepareStatement(Connection.java