You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ca...@destinymusic.com on 2001/03/27 00:38:45 UTC

More torque anguish

Ok, so using LONGVARCHAR and DATE for text and date/time values got me a lot
further along in using the cvs version of Torque, but I've still got the
following crash (see below). It doesn't seem to be related to a particular
data type anymore, just the number of tables (yes, I boosted the heap).
It works fine with 31 tables, but if I add one more, it crashes. Any help
here would be appreciated. I've put the end of the velocity log below the
trace.

Thx,
Carl

project-om:
+------------------------------------------+
|                                          |
| Generating Peer-based Object Model for   |
| YOUR Turbine project! Woo hoo!           |
|                                          |
+------------------------------------------+
./output/report.northstar.om.generation
org.apache.velocity.exception.MethodInvocationException: Invocation of method threw exception.
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:265)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:171)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:207)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:89)
        at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:151)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:89)
        at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:151)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:259)
        at org.apache.velocity.Template.merge(Template.java:286)
        at org.apache.velocity.texen.Generator.parse(Generator.java:333)
        at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:378)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:122)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at oexecuteTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:420)
        at org.apache.tools.ant.Main.main(Main.java:149)

velocity.log:
...
Mon Mar 26 14:28:04 PST 2001  [error] Method parse threw exception for reference $generator in template om/Control.vm at  [41,9]


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


Re: More torque anguish

Posted by John McNally <jm...@collab.net>.
Are you sure everything is okay with 31 tables?  You get no errors in
velocity.log and all the classes for the om/peer/map classes are
generated and the BaseXXX classes appear to have some code in them and
things compile?

I suspect you have a spelling error for a table/column/foreign-key, that
is messing things up.

John McNally

carl@destinymusic.com wrote:
> 
> Ok, so using LONGVARCHAR and DATE for text and date/time values got me a lot
> further along in using the cvs version of Torque, but I've still got the
> following crash (see below). It doesn't seem to be related to a particular
> data type anymore, just the number of tables (yes, I boosted the heap).
> It works fine with 31 tables, but if I add one more, it crashes. Any help
> here would be appreciated. I've put the end of the velocity log below the
> trace.
> 
> Thx,
> Carl
> 
> project-om:
> +------------------------------------------+
> |                                          |
> | Generating Peer-based Object Model for   |
> | YOUR Turbine project! Woo hoo!           |
> |                                          |
> +------------------------------------------+
> ./output/report.northstar.om.generation
> org.apache.velocity.exception.MethodInvocationException: Invocation of method threw exception.
>         at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:265)
>         at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:171)
>         at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:207)
>         at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:89)
>         at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316)
>         at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:151)
>         at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:89)
>         at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316)
>         at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:151)
>         at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:259)
>         at org.apache.velocity.Template.merge(Template.java:286)
>         at org.apache.velocity.texen.Generator.parse(Generator.java:333)
>         at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:378)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:122)
>         at org.apache.tools.ant.Target.execute(Target.java:142)
>         at org.apache.tools.ant.Project.runTarget(Project.java:818)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:532)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
>         at org.apache.tools.ant.Target.execute(Target.java:142)
>         at org.apache.tools.ant.Project.runTarget(Project.java:818)
>         at oexecuteTargets(Project.java:506)
>         at org.apache.tools.ant.Main.runBuild(Main.java:420)
>         at org.apache.tools.ant.Main.main(Main.java:149)
> 
> velocity.log:
> ...
> Mon Mar 26 14:28:04 PST 2001  [error] Method parse threw exception for reference $generator in template om/Control.vm at  [41,9]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

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


Re: More torque anguish

Posted by Daniel Rall <dl...@collab.net>.
"Geir Magnusson Jr." <ge...@optonline.net> writes:

> Daniel Rall wrote:
> > 
> > carl@destinymusic.com writes:
> > 
> > > ...
> > > Mon Mar 26 14:28:04 PST 2001  [error] Method parse threw exception for reference $generator in template om/Control.vm at  [41,9]
> > 
> > It would be helpful if the InvokationException indicated *why* the
> > exception was thrown.  I haven't looked closely enough to see if this
> > is easily possible...
> 
> Like a .wav file or something, so you can listen to an explination? :)

Heh.

> The MethodInvocationException contains :
> 1) the original exception thrown by your method so you can dig it out
> and look at it.
> 2) the method name that threw it
> 3) the reference used in the template to access the method
> 
> and the log contains the template and line/col where it occurred.
> 
> What else would be good to have?

I was speaking of #1.  I guess I didn't associate the huge stack trace
above the message with the IE...oops.

Daniel

Re: More torque anguish

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Daniel Rall wrote:
> 
> carl@destinymusic.com writes:
> 
> > ...
> > Mon Mar 26 14:28:04 PST 2001  [error] Method parse threw exception for reference $generator in template om/Control.vm at  [41,9]
> 
> It would be helpful if the InvokationException indicated *why* the
> exception was thrown.  I haven't looked closely enough to see if this
> is easily possible...

Like a .wav file or something, so you can listen to an explination? :)

The MethodInvocationException contains :
1) the original exception thrown by your method so you can dig it out
and look at it.
2) the method name that threw it
3) the reference used in the template to access the method

and the log contains the template and line/col where it occurred.

What else would be good to have?

geir


-- 
Geir Magnusson Jr.                               geirm@optonline.net
Developing for the web?  See http://jakarta.apache.org/velocity/

Re: More torque anguish

Posted by Daniel Rall <dl...@collab.net>.
carl@destinymusic.com writes:

> ...
> Mon Mar 26 14:28:04 PST 2001  [error] Method parse threw exception for reference $generator in template om/Control.vm at  [41,9]

It would be helpful if the InvokationException indicated *why* the
exception was thrown.  I haven't looked closely enough to see if this
is easily possible...

Daniel

Re: More torque anguish

Posted by Daniel Rall <dl...@collab.net>.
carl@destinymusic.com writes:

> ...
> Mon Mar 26 14:28:04 PST 2001  [error] Method parse threw exception for reference $generator in template om/Control.vm at  [41,9]

It would be helpful if the InvokationException indicated *why* the
exception was thrown.  I haven't looked closely enough to see if this
is easily possible...

Daniel

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