db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Monroe" <Greg.Mon...@DukeCE.com>
Subject RE: Maven torque plugin incorrectly generates BaseXXXPeer.java files in torque:om goal if property torque.subpackage.object is specified
Date Tue, 13 Jun 2006 21:31:02 GMT
Hi,

For faster inclusion into Torque, could you submit this as a Jira issue.
Bugs and patchs in Jira won't be overlooked like an e-mail submission
may 
be.

http://issues.apache.org/jira

TIA 

> -----Original Message-----
> From: Mojmir.Hanes [mailto:Mojmir.Hanes@seznam.cz] 
> Sent: Tuesday, June 13, 2006 3:48 PM
> To: torque-dev@db.apache.org
> Subject: Maven torque plugin incorrectly generates 
> BaseXXXPeer.java files in torque:om goal if property 
> torque.subpackage.object is specified
> 
> Hi folks, it seems maven-torque plugin incorrectly generates 
> BaseXXXPeer 
>       java sources if property torque.subpackage.object is specified.
> 
> Error can be reproduced this way
> 
> 1. set property torque.subpackage.object (for example 
> torque.subpackage.object = object) 2. execute maven torque:om 
> goal 3. examine generated BaseXXXPeer.java files. Look for lines
> 
>      /** A class that can be returned by this peer. */
>      protected static final String CLASSNAME_DEFAULT =
>          "${package}.${table}";
> 
> (instead of velocity variables package and table  you'll see 
> substituted values, of course)
> 
> Correct lines should looks like
> 
>      /** A class that can be returned by this peer. */
>      protected static final String CLASSNAME_DEFAULT =
>          "${packageObject}.${table}";
> 
> 
> Bug is in Torque templates module, in file 
> templates/src/templates/om/Peer.vm
> 
> I'm sending you patch which corrects this minor bug.
> 
> Anyway, your Torque 'suite' is great, I love examining it.
> 
> Best regards
> 
> Mojmir Hanes aka miuek (Mojmir.Hanes@seznam.cz)
> 
> P.S. I'd commit patch to SVN, if I had/know username/password 
> for write access - could you send me it or send me link with 
> information how to obtain it ? Or it is impossible to write 
> changes to svn for non-project developers ?
> 
> P.S 2 Here is stack trace before applying patch
> 
> 13.06.2006 21:00:55 ERROR [org.apache.torque.util.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: sk.miuek.littlegolem.om.Player
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:164)
> 	at
> sk.miuek.littlegolem.om.BasePlayerPeer.initClass(BasePlayerPee
> r.java:112)
> 	at 
> sk.miuek.littlegolem.om.BasePlayerPeer.<clinit>(BasePlayerPeer
> .java:99)
> 	at 
> sk.miuek.littlegolem.om.BasePlayer.<clinit>(BasePlayer.java:41)
> 	at sk.miuek.littlegolem.Main.main(Main.java:146)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at com.werken.forehead.Forehead.run(Forehead.java:551)
> 	at com.werken.forehead.Forehead.main(Forehead.java:581)
> 13.06.2006 21:00:56 DEBUG 
> [org.apache.torque.util.Transaction] called safeRollback with 
> null argument
> 13.06.2006 21:00:56 ERROR [sk.miuek.littlegolem.Main] 
> Exception has been thrown, e
> 

Duke CE Privacy Statement
Please be advised that this e-mail and any files transmitted with it are confidential communication
or may otherwise be privileged or confidential and are intended solely for the individual
or entity to whom they are addressed.  If you are not the intended recipient you may not rely
on the contents of this email or any attachments, and we ask that you  please not read, copy
or retransmit this communication, but reply to the sender and destroy the email, its contents,
and all copies thereof immediately.  Any unauthorized dissemination, distribution or copying
of this communication is strictly prohibited.



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


Mime
View raw message