velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seth Rosenblum" <srosenb...@wgen.net>
Subject RE: quiet reference doesn't throw exception
Date Mon, 07 Jul 2008 18:44:30 GMT
Sorry, I meant org.apache.velocity.exception.ParseErrorException

Here's the trace anyway:

org.apache.velocity.exception.ParseErrorException: Error in page -
invalid reference.  
	at
org.apache.velocity.app.event.implement.ReportInvalidReferences.reportIn
validReference(ReportInvalidReferences.java:150)
	at
org.apache.velocity.app.event.implement.ReportInvalidReferences.invalidG
etMethod(ReportInvalidReferences.java:91)
	at
org.apache.velocity.app.event.InvalidReferenceEventHandler$InvalidGetMet
hodExecutor.execute(InvalidReferenceEventHandler.java:123)
	at
org.apache.velocity.app.event.EventHandlerUtil.iterateOverEventHandlers(
EventHandlerUtil.java:418)
	at
org.apache.velocity.app.event.EventHandlerUtil.callEventHandlers(EventHa
ndlerUtil.java:390)
	at
org.apache.velocity.app.event.EventHandlerUtil.invalidReferenceHandlerCa
ll(EventHandlerUtil.java:333)
	at
org.apache.velocity.app.event.EventHandlerUtil.invalidGetMethod(EventHan
dlerUtil.java:252)
	at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:179)
	at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
	at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
	at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
	at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:170)
	at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
	at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:88)
	at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
	at
org.apache.velocity.runtime.directive.Parse.render(Parse.java:224)
	at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:170)
	at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
	at org.apache.velocity.Template.merge(Template.java:254)
	at
net.wgen.aris.web.VelocityMerger.testVelocityMerge(VelocityMerger.java:6
0)
	at
net.wgen.aris.web.ListOfStudentsControllerTest.Students(ListOfStudentsCo
ntrollerTest.java:76)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTe
stMethod.java:163)
	at
org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod
(SpringMethodRoadie.java:233)
	at
org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThe
nTestThenAfters.run(SpringMethodRoadie.java:333)
	at
org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepeti
tions(SpringMethodRoadie.java:217)
	at
org.springframework.test.context.junit4.SpringMethodRoadie.runTest(Sprin
gMethodRoadie.java:197)
	at
org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMet
hodRoadie.java:143)
	at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTe
stMethod(SpringJUnit4ClassRunner.java:142)
	at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunne
r.java:51)
	at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.jav
a:44)
	at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:2
7)
	at
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
	at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:
42)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4Tes
tReference.java:38)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
va:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:460)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:673)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:386)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:196)
 

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Monday, July 07, 2008 1:21 PM
To: Velocity Users List
Subject: Re: quiet reference doesn't throw exception

Seth,

Seth Rosenblum wrote:
> Actually, in that case the $isNull inside the if statement throws the 
> ParserConfigurationException.

Uh... javax.xml.parsers.ParserConfigurationException? That seems odd...

Can you post the entire stack trace?

-chris



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


Mime
View raw message