[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] svnant: svnkit

From: Maciek Sakrejda <msakrejda_at_truviso.com>
Date: 2007-08-01 18:45:04 CEST

Hi, I had an svnant question:

I am trying to use the svnkit adapter but I get a NullPointerException
doing an svninfo on my repository. The verbose ant output of the whole
run follows. Any suggestions?

Thanks,
Maciek

maciek@maciek-desktop:~/svntest$ ant -v -Dsvn.use.javahl=false
-Dsvn.use.svnkit=true -f svntest.xml
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: svntest.xml
Detected Java version: 1.5 in: /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre
Detected OS: Linux
parsing buildfile /home/maciek/svntest/svntest.xml with URI =
file:/home/maciek/svntest/svntest.xml
Project base dir set to: /home/maciek/svntest
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
Importing file /home/maciek/svntest/xdeps/ant/common.xml
from /home/maciek/svntest/svntest.xml
parsing buildfile /home/maciek/svntest/xdeps/ant/common.xml with URI =
file:/home/maciek/svntest/xdeps/ant/common.xml
Override ignored for property "truviso.ant.lib"
parsing buildfile
jar:file:/home/maciek/svntest/xdeps/ant/lib/svnant.jar!/org/tigris/subversion/svnant/svnantlib.xml with URI = jar:file:/home/maciek/svntest/xdeps/ant/lib/svnant.jar!/org/tigris/subversion/svnant/svnantlib.xml
Build sequence for target(s) `testinfo' is [testinfo]
Complete build sequence is [testinfo, cleandeps, ]

testinfo:
      [svn] Using svnkit
      [svn] <Info> started ...
      [svn] <Info> failed !

BUILD FAILED
/home/maciek/svntest/svntest.xml:20: Failed to set 'info' properties
        at
org.tigris.subversion.svnant.commands.SvnCommand.executeCommand(Unknown
Source)
        at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        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:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
        at
org.tigris.subversion.svnclientadapter.javahl.JhlInfo2.getFile(Unknown
Source)
        at org.tigris.subversion.svnant.commands.Info.getValue(Unknown
Source)
        at org.tigris.subversion.svnant.commands.Info.execute(Unknown
Source)
        ... 18 more
--- Nested Exception ---
java.lang.NullPointerException
        at
org.tigris.subversion.svnclientadapter.javahl.JhlInfo2.getFile(Unknown
Source)
        at org.tigris.subversion.svnant.commands.Info.getValue(Unknown
Source)
        at org.tigris.subversion.svnant.commands.Info.execute(Unknown
Source)
        at
org.tigris.subversion.svnant.commands.SvnCommand.executeCommand(Unknown
Source)
        at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        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:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 1 second

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Wed Aug 1 18:43:45 2007

This is an archived mail posted to the Subclipse Users mailing list.