ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38245] New: - NPE in FileResource.toString in <sql>
Date Thu, 12 Jan 2006 19:54:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38245>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38245

           Summary: NPE in FileResource.toString in <sql>
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: stevel@apache.org


The following code NPEs in ant, and it aint the jdbc driver.

    <sql driver="${jdbc.driver}"
         classpathref="compile.classpath"
         userid="sa"
         password=""
         url="${jdbc.url}">
      <transaction src="${hsqldb.sql}"/>
    </sql>

diary/persist/build.xml:128: java.lang.NullPointerException
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:114)
	at org.apache.tools.ant.Task.perform(Task.java:365)
	at org.apache.tools.ant.Target.execute(Target.java:356)
	at org.apache.tools.ant.Target.performTasks(Target.java:384)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1243)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1212)
	at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1095)
	at org.apache.tools.ant.Main.runBuild(Main.java:676)
	at org.apache.tools.ant.Main.startAnt(Main.java:195)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:276)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:96)
Caused by: java.lang.NullPointerException
	at
org.apache.tools.ant.types.resources.FileResource.toString(FileResource.java:280)
	at
org.apache.tools.ant.taskdefs.SQLExec$Transaction.runTransaction(SQLExec.java:713)
	at org.apache.tools.ant.taskdefs.SQLExec$Transaction.access$000(SQLExec.java:658)
	at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:393)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:104)
	... 11 more
--- Nested Exception ---
java.lang.NullPointerException
	at
org.apache.tools.ant.types.resources.FileResource.toString(FileResource.java:280)
	at
org.apache.tools.ant.taskdefs.SQLExec$Transaction.runTransaction(SQLExec.java:713)
	at org.apache.tools.ant.taskdefs.SQLExec$Transaction.access$000(SQLExec.java:658)
	at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:393)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:104)
	at org.apache.tools.ant.Task.perform(Task.java:365)
	at org.apache.tools.ant.Target.execute(Target.java:356)
	at org.apache.tools.ant.Target.performTasks(Target.java:384)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1243)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1212)
	at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1095)
	at org.apache.tools.ant.Main.runBuild(Main.java:676)
	at org.apache.tools.ant.Main.startAnt(Main.java:195)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:276)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:96)


Presumably this is new to Ant1.7 ;)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message