db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject Antwort: [ERROR] BasePeer - A FATAL ERROR has occurred...
Date Tue, 13 Dec 2005 08:52:16 GMT




Thanks for the info. This looks like a bug in the template code for the
torque.subpackage.object generator property.
Would you mind to open a bug report in scarab about this ?
For a quick fix, I'd recommend to omit the torque.subpackage.object
property.

    Thomas

Trey Long <james_long@provima.com> schrieb am 12.12.2005 23:18:01:

> Alright. Here is the information I came up with. The most recent change
> I made was to break up the classes into separate sub packages like so:
>
> #Package paths
> torque.targetPackage = com.provima.pcsw.db
> torque.subpackage.peer = peer
> torque.subpackage.object = om
> torque.subpackage.bean = bean
> torque.subpackage.base = gen.base
> torque.subpackage.base.bean = gen.base.bean
>
> I read (and included) the stack trace and followed it the the following
> place.
>
> Inside of BaseCompanyPeer.java:
> /** A class that can be returned by this peer. */
> protected static final String CLASSNAME_DEFAULT =
>  "com.provima.pcsw.db.Company";
>
> Which is incorrect. The path should be "com.provima.pcsw.db.om.Company".
>
> I don't know if I am doing something wrong or if this is actually a bug.
> The stack trace is included below.
>
>
>     [junit] [ERROR] BasePeer - A FATAL ERROR has occurred which should
> not have happened under any circumstance.  Please notify the Torque
> developers <torque-dev@db.apache.org> and give as many details as
> possible (including the error stack trace).
> <java.lang.ClassNotFoundException:
> com.provima.pcsw.db.A>java.lang.ClassNotFoundException:
> com.provima.pcsw.db.A
>     [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     [junit]     at java.security.AccessController.doPrivileged(Native
> Method)
>     [junit]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     [junit]     at
>
org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1197)
>     [junit]     at
> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:990)
>     [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     [junit]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>     [junit]     at java.lang.Class.forName0(Native Method)
>     [junit]     at java.lang.Class.forName(Class.java:164)
>     [junit]     at
> com.provima.pcsw.db.gen.base.BaseCompanyPeer.
> initClass(BaseCompanyPeer.java:117)
>     [junit]     at
> com.provima.pcsw.db.gen.base.BaseCompanyPeer.
> <clinit>(BaseCompanyPeer.java:191)
>     [junit]     at
> com.provima.pcsw.db.gen.base.BaseCompany.<clinit>(BaseCompany.java:46)
>     [junit]     at
> com.provima.pcsw.db.test.TestDatabase.testJoin(TestDatabase.java:22)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>     [junit]     at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

>     [junit]     at
> sun.reflect.DelegatingMethodAccessorImpl.
> invoke(DelegatingMethodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:585)
>     [junit]     at junit.framework.TestCase.runTest(TestCase.java:154)
>     [junit]     at junit.framework.TestCase.runBare(TestCase.java:127)
>     [junit]     at
junit.framework.TestResult$1.protect(TestResult.java:106)
>     [junit]     at
> junit.framework.TestResult.runProtected(TestResult.java:124)
>     [junit]     at junit.framework.TestResult.run(TestResult.java:109)
>     [junit]     at junit.framework.TestCase.run(TestCase.java:118)
>     [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:208)
>     [junit]     at junit.framework.TestSuite.run(TestSuite.java:203)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
> run(JUnitTestRunner.java:297)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.
> executeInVM(JUnitTask.java:1072)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.
> execute(JUnitTask.java:682)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.
> executeOrQueue(JUnitTask.java:1434)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.
> execute(JUnitTask.java:632)
>     [junit]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>     [junit]     at org.apache.tools.ant.Task.perform(Task.java:364)
>     [junit]     at org.apache.tools.ant.Target.execute(Target.java:341)
>     [junit]     at
org.apache.tools.ant.Target.performTasks(Target.java:369)
>     [junit]     at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>     [junit]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>     [junit]     at
> org.apache.tools.ant.helper.DefaultExecutor.
> executeTargets(DefaultExecutor.java:40)
>     [junit]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>     [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
>     [junit]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
>     [junit]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>     [junit]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message