[jboss-user] [JBoss jBPM] - Error on db Test - HibernateCustomizationTest BeforeFirstTes

monkmanusa do-not-reply at jboss.com
Tue Jan 16 14:58:09 EST 2007


Hi running the mssql.test in the jbpm-db, I managed to resolve my old error, but now I seem to be getitng the following in the console:

    [junit] drop table JBPM_TRANSITION if exists
    [junit] drop table JBPM_VARIABLEACCESS if exists
    [junit] drop table JBPM_VARIABLEINSTANCE if exists
    [junit] 14:34:28,796 [main] INFO  SchemaExport : schema export complete
    [junit] 14:34:28,796 [main] INFO  DriverManagerConnectionProvider : cleaning up connection pool: jdbc:hsqldb:mem:.;sql.enforce_strict_si
ze=true
    [junit] 14:34:28,796 [main] DEBUG JbpmContext : closing JbpmContext
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 4.468 sec
    [junit] 14:34:28,953 [Finalizer] INFO  DriverManagerConnectionProvider : cleaning up connection pool: jdbc:hsqldb:mem:.;sql.enforce_stri
ct_size=true
    [junit] 14:34:28,968 [Finalizer] INFO  DriverManagerConnectionProvider : cleaning up connection pool: jdbc:hsqldb:mem:.;sql.enforce_stri
ct_size=true
    [junit] 14:34:28,968 [Finalizer] INFO  DriverManagerConnectionProvider : cleaning up connection pool: jdbc:hsqldb:mem:.;sql.enforce_stri
ct_size=true
    [junit] 14:34:28,968 [Finalizer] INFO  DriverManagerConnectionProvider : cleaning up connection pool: jdbc:hsqldb:mem:.;sql.enforce_stri
ct_size=true
    [junit] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:453)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
    [junit] Running org.jbpm.taskmgmt.log.TaskLogDbTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Tests FAILED (crashed)
    [junit] Running org.jbpm.context.exe.HibernateCustomizationTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:453)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
    [junit] Running org.jbpm.context.exe.HibernateCustomizationTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test org.jbpm.context.exe.HibernateCustomizationTest FAILED (crashed)
[junitreport] Processing C:\JBoss\jbpm-db\build\mssql\testresults\xml\TESTS-TestSuites.xml to C:\DOCUME~1\Steve\LOCALS~1\Temp\null1829066902

[junitreport] Loading stylesheet jar:file:/C:/apache/ant/apache-ant-1.7.0/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xs
l/junit-frames.xsl
[junitreport] Transform time: 438ms
[junitreport] Deleting: C:\DOCUME~1\Steve\LOCALS~1\Temp\null1829066902

BUILD SUCCESSFUL
Total time: 7 seconds
C:\JBoss\jbpm-db>


In the test results it states:

Unit Test Results
 Designed for use with JUnit and Ant. 

--------------------------------------------------------------------------------

All Errors
Class Name Status Type Time(s) 
HibernateCustomizationTest BeforeFirstTest Error Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.

junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM  

when I look at the properties of org.jbpm.context.exe.HibernateCustomizationTest :

Properties of org.jbpm.context.exe.HibernateCustomizationTest
Close
Name Value 
ant.core.lib C:\apache\ant\apache-ant-1.7.0\lib\ant.jar 
ant.file C:\JBoss\jbpm-db\build.xml 
ant.file.jbpm.db C:\JBoss\jbpm-db\build.xml 
ant.home C:\apache\ant\apache-ant-1.7.0 
ant.java.version 1.5 
ant.library.dir C:\apache\ant\apache-ant-1.7.0\lib 
ant.project.name jbpm.db 
ant.version Apache Ant version 1.7.0 compiled on December 13 2006 
awt.toolkit sun.awt.windows.WToolkit 
basedir C:\JBoss\jbpm-db 
db mssql 
file.encoding Cp1252 
file.encoding.pkg sun.io 
file.separator \ 
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment 
java.awt.printerjob sun.awt.windows.WPrinterJob 
java.class.path C:\apache\ant\apache-ant-1.7.0\lib\ant-launcher.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-antlr.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-apache-bcel.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-apache-bsf.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-apache-log4j.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-apache-oro.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-apache-regexp.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-apache-resolver.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-commons-logging.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-commons-net.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-jai.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-javamail.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-jdepend.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-jmf.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-jsch.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-junit.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-launcher.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-netrexx.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-nodeps.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-starteam.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-stylebook.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-swing.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-testutil.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-trax.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant-weblogic.jar;C:\apache\ant\apache-ant-1.7.0\lib\ant.jar;C:\apache\ant\apache-ant-1.7.0\lib\xercesImpl.jar;C:\apache\ant\apache-ant-1.7.0\lib\xml-apis.jar;C:\Program Files\Java\jdk1.5.0_10\lib\tools.jar 
java.class.version 49.0 
java.endorsed.dirs C:\Program Files\Java\jdk1.5.0_10\jre\lib\endorsed 
java.ext.dirs C:\Program Files\Java\jdk1.5.0_10\jre\lib\ext 
java.home C:\Program Files\Java\jdk1.5.0_10\jre 
java.io.tmpdir C:\DOCUME~1\Steve\LOCALS~1\Temp\ 
java.library.path C:\Program Files\Java\jdk1.5.0_10\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\apache\ant\apache-ant-1.7.0\bin\;C:\JBoss\Eclipse Plugins\eclipse\plugins\org.hibernate.eclipse_3.1.0.beta4a\lib\hibernate\ 
java.runtime.name Java(TM) 2 Runtime Environment, Standard Edition 
java.runtime.version 1.5.0_10-b03 
java.specification.name Java Platform API Specification 
java.specification.vendor Sun Microsystems Inc. 
java.specification.version 1.5 
java.vendor Sun Microsystems Inc. 
java.vendor.url http://java.sun.com/ 
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi 
java.version 1.5.0_10 
java.vm.info mixed mode, sharing 
java.vm.name Java HotSpot(TM) Client VM 
java.vm.specification.name Java Virtual Machine Specification 
java.vm.specification.vendor Sun Microsystems Inc. 
java.vm.specification.version 1.0 
java.vm.vendor Sun Microsystems Inc. 
java.vm.version 1.5.0_10-b03 
jboss.home c:/software/jboss-4.0.3 
jboss.source.configuration default 
jboss.version 4.0.x 
jbpm.3.location ../jbpm 
jbpm.gpd.version 3.0.4 
jbpm.home C:JBossjbpm 
jbpm.version 3.1.2 
line.separator  
os.arch x86 
os.name Windows XP 
os.version 5.1 
path.separator ; 
sun.arch.data.model 32 
sun.boot.class.path C:\Program Files\Java\jdk1.5.0_10\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_10\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_10\jre\classes 
sun.boot.library.path C:\Program Files\Java\jdk1.5.0_10\jre\bin 
sun.cpu.endian little 
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 
sun.desktop windows 
sun.io.unicode.encoding UnicodeLittle 
sun.jnu.encoding Cp1252 
sun.management.compiler HotSpot Client Compiler 
sun.os.patch.level Service Pack 2 
upgrade.hibernate.properties hsqldb/hibernate.properties 
upgrade.libdir hsqldb/lib 
upgrade.old.schema.script hsqldb/upgrade.scripts/hsqldb.create.jbpm.3.0.2.sql 
user.country US 
user.dir C:\JBoss\jbpm-db 
user.home C:\Documents and Settings\Steve 
user.language en 
user.name Steve 
user.timezone  
user.variant 

Anyone any ideas?

Or do tyou think this still relates to a classpath problem for Hibernate?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002409#4002409

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002409




More information about the jboss-user mailing list