uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject Re: javax.jms.JMSException: acknowledgeMode SESSION_TRANSACTED cannot be used for an non-transacted Session
Date Fri, 27 Mar 2009 15:39:45 GMT
Jaroslaw Cwiklik wrote:
> Jörn, I think you may have found a problem in our code that creates a
> Session object via:
>
> connection.createSession(false, 0);
>
> The first problem is that we use hard coded value of 0 instead of
> Session.AUTO_ACKNOWLEDGE which
> is what we intended. The second problem is the fact that 0 <<<IS NOT>>>
> equal to Session.AUTO_ACKNOWLEDGE!
> So this is a bug. Can you verify that changing 0 to Session.AUTO_ACKNOWLEDGE
> fixes your problem.
>   
Yes, thanks now it works :-) I did the same changes you did
in UIMA-1303 to my downlaoded 2.2.2-incubating source code
and run mvn install.

BTW, mvn install only works if the path the the uima as src folder does 
not contain
a whitespace, not sure if that is already fixed. I think the error 
occurs during testing,
but I am not sure. See my console output for further details.

Jörn

[INFO] [site:attach-descriptor]
[INFO] [antrun:run {execution: DeleteLicenseNoticeDisclaimer}]
[INFO] Executing tasks
   [delete] Deleting directory /home/joern/Desktop/apache-uima-as 
(2)/uimaj-as/src/main/resources/META-INF
[INFO] Executed tasks
[INFO] [install:install]
[INFO] Installing /home/joern/Desktop/apache-uima-as 
(2)/uimaj-as/pom.xml to 
/home/joern/.m2/repository/org/apache/uima/uimaj-as/2.2.2-incubating/uimaj-as-2.2.2-incubating.pom
[INFO] 
------------------------------------------------------------------------
[INFO] Building Apache UIMA Async Scaleout core
[INFO]    task-segment: [install]
[INFO] 
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [antrun:run {execution: CopyLicenseNoticeDisclaimer}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [buildnumber:create {execution: default}]
[INFO] Storing buildNumber: 2009-03-27 16:13:24 at timestamp: 1238166804303
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: /home/joern/Desktop/apache-uima-as 
(2)/uimaj-as-core/target/surefire-reports
/bin/sh: Syntax error: "(" unexpected
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /home/joern/Desktop/apache-uima-as 
(2)/uimaj-as-core/target/surefire-reports for the individual test results.
[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Fri Mar 27 16:13:24 CET 2009
[INFO] Final Memory: 16M/81M
[INFO] 
------------------------------------------------------------------------



Mime
View raw message