Hi Guys
I am using the torque 3.1. I have the following schema

<table name="USABO_STUDENT">

        <column name="USABO_SID" required="true" primaryKey="true" type="integer" />
        <column name="FIRST_NAME" required="true"  type="VARCHAR" size="50" />
        <column name="LAST_NAME" required="true" type="VARCHAR" size="50" />
        <column name="PHONE" required="true" type="VARCHAR" size="30" />
        <column name="TEACHER_ID" required="true" type="integer" />
        <column name="STATUS" required="true" type="VARCHAR" size="30" />
        <column name="YEAR" type="VARCHAR" size="4" />

        <foreign-key foreignTable="PERSON">
                <reference local="TEACHER_ID" foreign="ID" />
        </foreign-key>

</table>

I get an error only when i have this table in the schema other wise the
build is successful. I do not understand what the reason is for this. The
error is as follows:

 Exception thrown by 'generator.parse'. For more information consult the
velocity log, or invoke ant with the -debug flag.When i used the debug
flag i get these exceptions at the end

Exception thrown by 'generator.parse'. For more information consult the
velocity log, or invoke ant with the -debug flag.
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:564)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)



Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'parse' in  class org.apache.velocity.texen.Generator
threw exception class
org.apache.velocity.exception.MethodInvocationException : Invocation of
method 'get' in  class java.util.Properties threw exception class
java.lang.NullPointerException : null
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
        at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357)
        at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:135)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
        at org.apache.velocity.Template.merge(Template.java:296)
        at org.apache.velocity.texen.Generator.parse(Generator.java:425)
        at org.apache.velocity.texen.Generator.parse(Generator.java:361)
        at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
        at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)


Please help me if any one can figure out the reason for this. This happens
only when the schema has this table. But when i remover this table from
the schema the rest of the schema works just fine.


--Mohan







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to