[wildfly-dev] HornetQException[errorType=NATIVE_ERROR_CANT_OPEN_CLOSE_FILE message=Can't open file]

Jeff Mesnil jmesnil at redhat.com
Fri Nov 22 04:17:43 EST 2013


On 22 Nov 2013, at 06:00, Arun Gupta <arun.gupta at gmail.com> wrote:

> And how would I do that ? :-)

in the XML configuration, you would add 

    <journal-type>NIO</journal-type>

to the messaging subsystem configuration.

> On Thu, Nov 21, 2013 at 6:41 PM, Jason Greene <jgreene at redhat.com> wrote:
>> Sounds like the CI system doesn't have a file system that supports direct access. Try setting the journal type to NIO.

There is something else going on here. If HornetQ is running on a system without AIO, it’d log a warning and revert to NIO:

10:11:28,080 WARN  [org.jboss.as.messaging] (MSC service thread 1-15) JBAS011600: AIO wasn't located on this platform, it will fall back to using pure Java NIO.
 If your platform is Linux, install LibAIO to enable the AIO journal

Either the detection of AIO is buggy or there is a real problem with the file.

Arun, could you open a bug on HornetQ issue tracker with a copy of your journal file?

jeff

>> 
>> Sent from my iPhone
>> 
>>> On Nov 21, 2013, at 4:20 PM, Arun Gupta <arun.gupta at gmail.com> wrote:
>>> 
>>> Trying to run Java EE 7 unit tests and the complete log is at:
>>> 
>>> https://arungupta.ci.cloudbees.com/job/Java%20EE%207%20Samples%20on%20WildFly-cb/29/consoleFull
>>> 
>>> HornetQ throws the following error:
>>> 
>>> [0m [0m10:51:36,892 INFO  [org.jboss.ws.common.management] (MSC
>>> service thread 1-2) JBWS022052: Starting JBoss Web Services - Stack
>>> CXF Server 4.2.3.Final
>>> [0m [33m10:51:37,031 WARN  [org.hornetq.core.server] (ServerService
>>> Thread Pool -- 58) HQ222010: Critical IO Error, shutting down the
>>> server. file=AIOSequentialFile:/scratch/jenkins/workspace/Java EE 7
>>> Samples on WildFly-cb/wildfly-8.0.0.Beta2-SNAPSHOT/standalone/data/messagingjournal/hornetq-data-1.hq.tmp,
>>> message=Can't open file:
>>> HornetQException[errorType=NATIVE_ERROR_CANT_OPEN_CLOSE_FILE
>>> message=Can't open file]
>>>   at org.hornetq.core.asyncio.impl.AsynchronousFileImpl.init(Native
>>> Method) [hornetq-journal-2.4.0.Beta2.jar:]
>>>   at org.hornetq.core.asyncio.impl.AsynchronousFileImpl.open(AsynchronousFileImpl.java:220)
>>> [hornetq-journal-2.4.0.Beta2.jar:]
>>>   at org.hornetq.core.journal.impl.AIOSequentialFile.open(AIOSequentialFile.java:190)
>>> [hornetq-journal-2.4.0.Beta2.jar:]
>>> 
>>> Several test deployments are failing with the following reason:
>>> 
>>> Caused by: java.lang.Exception: {"JBAS014771: Services with
>>> missing/unavailable dependencies" =>
>>> ["jboss.naming.context.java.module.test.test.DefaultJMSConnectionFactory
>>> is missing [jboss.naming.context.java.jboss.DefaultJMSConnectionFactory]"]}
>>>   at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
>>>   at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
>>> 
>>> If I run in the default Web profile then this error does not occur as shown at:
>>> 
>>> https://arungupta.ci.cloudbees.com/job/Java%20EE%207%20Samples%20on%20WildFly-cb/30/consoleFull
>>> 
>>> But JMS tests fail.
>>> 
>>> I can't reproduce this issue with the latest workspace on my machine.
>>> 
>>> Any suggestions ?
>>> 
>>> Arun
>>> 
>>> --
>>> http://blog.arungupta.me
>>> http://twitter.com/arungupta
>>> 
>>> _______________________________________________
>>> wildfly-dev mailing list
>>> wildfly-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
> 
> 
> 
> -- 
> http://blog.arungupta.me
> http://twitter.com/arungupta
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev

-- 
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/




More information about the wildfly-dev mailing list