1 Reply Latest reply on Jan 6, 2010 4:21 AM by Jeff Mesnil

    failing test after latest refactoring

    Andy Taylor Master

      I am seeing the following failing test after the latest refactoring, do I need to recompile something in the native layer? any ideas

       

      [main] 09:00:03,031 INFO [org.hornetq.tests.util.UnitTestCase]  ###### starting test org.hornetq.tests.unit.core.asyncio.AsynchronousFileTest.testInvalidReads
      [Thread-0 (group:HornetQ-AIO-poller-pool33109165-6744085)] 09:00:03,157 SEVERE [org.hornetq.core.asyncio.impl.AsynchronousFileImpl]  Libaio event generated errors, callback object was informed about it
      [Thread-0 (group:HornetQ-AIO-poller-pool33109165-6744085)] 09:00:03,159 WARNING [org.hornetq.core.asyncio.impl.AsynchronousFileImpl]  CallbackError: Error:= Invalid argument
      Couldn't throw exception message:= Invalid Buffer used, libaio requires NativeBuffer instead of Java ByteBuffer

      java.lang.RuntimeException: Can't find Exception class
          at org.hornetq.core.asyncio.impl.AsynchronousFileImpl.read(Native Method)
          at org.hornetq.core.asyncio.impl.AsynchronousFileImpl.read(AsynchronousFileImpl.java:356)
          at org.hornetq.tests.unit.core.asyncio.AsynchronousFileTest.testInvalidReads(AsynchronousFileTest.java:303)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108)
          at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42)
          at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:165)
          at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)