Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » internal error during importing
internal error during importing [message #532286] Fri, 07 May 2010 19:04 Go to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 22
Registered: July 2009
Junior Member
Seems like I have some bad karma Sad Yesterday I was able to solve the certificate problem and then could run the build successfully. Today I worked on making the target platform download from update-sites and also auto-installed buckminster into hudson (from the 3.6 update-site). Unfortunately ever since I started to change things I'm getting an internal error while buckminster runs its import command:

ERROR: An internal error occurred during: "Installing".
java.lang.IllegalArgumentException: Resolution not created using LocalReader
	at org.eclipse.buckminster.core.reader.LocalReaderType.getFixedLocation(LocalReaderType.java:50)
	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.getMaterialization(WorkspaceMaterializer.java:68)
	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.createBindSpec(WorkspaceMaterializer.java:241)
	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.performInstallAction(WorkspaceMaterializer.java:198)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:164)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.performInstallActions(AbstractMaterializer.java:68)
	at org.eclipse.buckminster.core.materializer.InstallerJob.runInWorkspace(InstallerJob.java:52)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


I've enabled the full debug output but there's nothing else visible in the log, all bundles and features seem to be found before that error occurs.
I've also tried to revert to the state of yesterday (reverting to the relevant commit in our scm and changing the hudson configuration back to use the
pre-installed buckminster-headless) but that didn't help either.

I'm a bit at a loss where to start digging (except for starting with the buckminster sources)? Let me know if I should provide any other information.
Re: internal error during importing [message #532913 is a reply to message #532286] Tue, 11 May 2010 14:35 Go to previous messageGo to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 22
Registered: July 2009
Junior Member
Andreas Pakulat wrote on Fri, 07 May 2010 15:04

I'm a bit at a loss where to start digging (except for starting with the buckminster sources)? Let me know if I should provide any other information.


What I've found out so far is that running the commandline that I see in the hudson log to execute the buckminster build step does fail in the same way.
If I remove the -jar start-argument and use the buckminster executable instead of java it works however.

That is to say this shows the problem:
/home/andreas/.hudson/tools/1.5_JDK/bin/java -Dbuckminster.output.root=/home/andreas/.hudson/jobs/myrcp/workspace/buckminster.output -Dbuckminster.temp.root=/home/andreas/.hudson/jobs/myrcp/workspace/buckminster.temp -jar /home/andreas/.hudson/tools/bucky_download/buckminster/plugins/org.eclipse.equinox.launcher_1.1.0.v20100419.jar -application org.eclipse.buckminster.cmdline.headless -data /home/andreas/.hudson/jobs/myrcp/workspace --loglevel info -S /home/andreas/.hudson/jobs/myrcp/workspace/commands.txt


And running this instead works just fine:
export JAVA_HOME=/home/andreas/.hudson/tools/1.5_JDK/                                                                  
export PATH=$JAVA_HOME/bin:$PATH

/home/andreas/.hudson/tools/bucky_download/buckminster/buckminster -Dbuckminster.output.root=/home/andreas/.hudson/jobs/myrcp/workspace/buckminster.output -Dbuckminster.temp.root=/home/andreas/.hudson/jobs/myrcp/workspace/buckminster.temp -application org.eclipse.buckminster.cmdline.headless -data /home/andreas/.hudson/jobs/myrcp/workspace --loglevel info -S /home/andreas/.hudson/jobs/myrcp/workspace/commands.txt


Does that ring a bell for anybody?
Re: internal error during importing [message #534359 is a reply to message #532913] Tue, 18 May 2010 20:30 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Andreas,

I'm really not sure what the problem might be. There's currently only
one more thing I can think of:
Try adding a new action to one of your cspec/cspex that calls an ant
script and let this ant script simply dump all environment variables
(the env.* ones) or maybe even all properties into a file or the hudson
log. You can use the echoproperties for that.
There's also a test project you can use for that:
http://issues.hudson-ci.org/browse/HUDSON-6488

There's a possibility that one of the environment variables in the
hudson environment break something. That seems to be the only real
difference compared to how you manually invoke buckminster.


Best regards and good luck,
Johannes
Re: internal error during importing [message #534517 is a reply to message #534359] Wed, 19 May 2010 12:10 Go to previous messageGo to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 22
Registered: July 2009
Junior Member
Johannes Utzig wrote on Tue, 18 May 2010 16:30
Hi Andreas,

I'm really not sure what the problem might be. There's currently only
one more thing I can think of:
Try adding a new action to one of your cspec/cspex that calls an ant
script and let this ant script simply dump all environment variables
(the env.* ones) or maybe even all properties into a file or the hudson
log. You can use the echoproperties for that.
There's also a test project you can use for that:
http://issues.hudson-ci.org/browse/HUDSON-6488

There's a possibility that one of the environment variables in the
hudson environment break something. That seems to be the only real
difference compared to how you manually invoke buckminster.


Unfortunately I currently don't see how this should work (but that may just be because I don't know buckminster that well yet). The reason is that
to be able to run a perform xxx@save.env I'd first have to do an import to make the component known to buckminster. At least buckminster complains
about not knowing the component when I do the perform first and then the import. And as the import triggers the failure the perform after it won't be
executed. I've hence specified an ant-job that runs before buckminster that calls the echoproperties (see the end of this message for the content).

Please also see my last messages to the post in the buckminster-dev group ( http://www.eclipse.org/forums/index.php?t=msg&th=168194& amp;start=0&) I've already tried to replicate the environment thats printed by hudson in the console output without any luck.

The other option I thought about to at least find out what it tries to resolve there that throws the error would be building buckminster myself,
but unfortunately I didn't find instructions that worked for that.

#Ant properties
#Wed May 19 13:02:17 GMT+01:00 2010
ant.core.lib=/usr/share/ant/lib/ant.jar
ant.file=/home/andreas/.hudson/jobs/squishide/workspace/debug_bucky/test.ant
ant.file.Test=/home/andreas/.hudson/jobs/squishide/workspace/debug_bucky/test.ant
ant.file.type=file
ant.file.type.Test=file
ant.home=/usr/share/ant
ant.java.version=1.5
ant.library.dir=/usr/share/ant/lib
ant.project.invoked-targets=save.environment
ant.project.name=Test
ant.version=Apache Ant version 1.8.0 compiled on March 11 2010
basedir=/home/andreas/.hudson/jobs/squishide/workspace/debug_bucky
env.ANTHOME=/usr/share/ant
env.BUILD_ID=2010-05-19_14-02-15
env.BUILD_NUMBER=126
env.BUILD_TAG=hudson-squishide-126
env.BUILD_URL=http\://warnemuende\:9080/hudson/job/squishide/126/
env.COLORFGBG=0;15
env.DBUS_SESSION_BUS_ADDRESS=unix\:abstract\=/tmp/dbus-KaMk1fxh0T,guid\=051d175714eb4aa86bfe5271000aa59a
env.DESKTOP_SESSION=default
env.DISPLAY=\:0
env.DM_CONTROL=/var/run/xdmctl
env.EDITOR=/usr/bin/vim
env.EMAIL=andreas@froglogic.com
env.EXECUTOR_NUMBER=1
env.GDK_NATIVE_WINDOWS=1
env.GDK_USE_XFT=1
env.GIT_BRANCH=finish_bucky_support
env.GS_LIB=/home/andreas/.fonts
env.GTK2_RC_FILES=/etc/gtk-2.0/gtkrc\:/home/andreas/.gtkrc-2.0\:/home/andreas/.gtkrc-2.0-kde\:/home/andreas/.kde/share/config/gtkrc-2.0
env.GTK_IM_MODULE=simple
env.GTK_RC_FILES=/etc/gtk/gtkrc\:/home/andreas/.gtkrc\:\:/home/andreas/.kde/share/config/gtkrc
env.HISTCONTROL=ignoredups\:ignorespace\:erasedups
env.HOME=/home/andreas
env.HUDSON_COOKIE=9e6539f3-c28a-4f27-9555-2a7ebace8cc4
env.HUDSON_HOME=/home/andreas/.hudson
env.HUDSON_URL=http\://warnemuende\:9080/hudson/
env.INSTALL=/usr/bin/install -p
env.JAVA_HOME=/home/andreas/.hudson/tools/1.5_JDK
env.JOB_NAME=squishide
env.JOB_URL=http\://warnemuende\:9080/hudson/job/squishide/
env.KDEDIRS=/home/andreas/kdevelop\:/usr/
env.KDE_FULL_SESSION=true
env.KDE_LANG=en_US.UTF-8
env.KDE_MULTIHEAD=false
env.KDE_NO_IPV6=true
env.KDE_SESSION_UID=1000
env.KDE_SESSION_VERSION=4
env.KONSOLE_DBUS_SERVICE=\:1.30
env.KONSOLE_DBUS_SESSION=/Sessions/35
env.LANG=en_US.UTF-8
env.LD_LIBRARY_PATH=/home/andreas/.hudson/tools/1.5_JDK/jre/lib/i386/server\:/home/andreas/.hudson/tools/1.5_JDK/jre/lib/i386\:/home/andrea
s/.hudson/tools/1.5_JDK/jre/../lib/i386\:/usr/lib/jvm/java-6-sun-1.6.0.19/jre/lib/i386/server\:/usr/lib/jvm/java-6-sun-1.6.0.19/jre/lib/i386\:/usr/lib/jvm/java-6
-sun-1.6.0.19/jre/../lib/i386
env.LESSCLOSE=/usr/bin/lesspipe %s %s
env.LESSOPEN=| /usr/bin/lesspipe %s
env.LOGNAME=andreas
env.NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
env.OLDPWD=/home/andreas/downloads/apache-tomcat-6.0.18/webapps
env.PATH=/home/andreas/.hudson/tools/1.5_JDK/bin\:/home/andreas/bin\:/usr/lib/ccache\:/home/andreas/downloads/firefox-
3.5\:/home/andreas/gdbcvs/bin\:/home/andreas/kdevelop/bin\:/var/lib/gems/1.9.0/bin\:/usr/local/bin\:/usr/bin\:/bin\:/usr/games
env.PS1=\\[\\033[32m\\]\\D{%H\:%M\:%S}    \\u@\\h$(__my__git_ps1)\\n\\w>\\[\\033[39m\\]
env.PWD=/home/andreas/.hudson/jobs/squishide/workspace/debug_bucky
env.QT_IM_MODULE=simple
env.QT_PLUGIN_PATH=/home/andreas/.kde/lib/kde4/plugins/\:/usr/lib/kde4/plugins/
env.QT_XFT=true
env.SESSION_MANAGER=local/warnemuende\:@/tmp/.ICE-unix/11161,unix/warnemuende\:/tmp/.ICE-unix/11161
env.SHELL=/bin/bash
env.SHLVL=1
env.SSH_AGENT_PID=11109
env.SSH_ASKPASS=/usr/bin/ssh-askpass
env.SSH_AUTH_SOCK=/tmp/ssh-vxvTM11059/agent.11059
env.TERM=xterm
env.USER=andreas
env.WINDOWID=39845913
env.WINDOWPATH=7
env.WORKSPACE=/home/andreas/.hudson/jobs/squishide/workspace
env.XCURSOR_THEME=default
env.XDG_DATA_DIRS=/usr/share\:/usr/share\:/usr/local/share
env.XDG_SESSION_COOKIE=4c5304283e3b7e87382af4d547825071-1271326358.15282-1382179274
env.XDM_MANAGED=method\=classic
env.XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
env._=./startup.sh
env.buildid=N2010-05-19_10
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/usr/share/ant/lib/ant-launcher.jar\:/usr/share/java/xmlParserAPIs.jar\:/usr/share/java/xercesImpl.jar\:/home/andreas/.ant/lib/squish
-ant-plugin.jar\:/usr/share/ant/lib/ant-apache-xalan2.jar\:/usr/share/ant/lib/ant-jdepend.jar\:/usr/share/ant/lib/ant-apache-oro.jar\:/usr/share/ant/lib/ant-
apache-bcel.jar\:/usr/share/ant/lib/ant-apache-bsf.jar\:/usr/share/ant/lib/ant-jsch.jar\:/usr/share/ant/lib/ant-trax.jar\:/usr/share/ant/lib/ant-commons-logging.jar\:/usr/share/ant/lib/ant.jar\:/usr/share/ant/lib/ant-stylebook.jar\:/usr/share/ant/lib/ant-apache-resolver.jar\:/usr/share/ant/lib/ant-
junit.jar\:/usr/share/ant/lib/ant-swing.jar\:/usr/share/ant/lib/ant-launcher.jar\:/usr/share/ant/lib/ant-commons-net.jar\:/usr/share/ant/lib/ant-
jmf.jar\:/usr/share/ant/lib/ant-antlr.jar\:/usr/share/ant/lib/ant-javamail.jar\:/usr/share/ant/lib/ant-apache-regexp.jar\:/usr/share/ant/lib/ant-
nodeps.jar\:/usr/share/ant/lib/ant-apache-log4j.jar\:/home/andreas/.hudson/tools/1.5_JDK/lib/tools.jar
java.class.version=49.0
java.endorsed.dirs=/home/andreas/.hudson/tools/1.5_JDK/jre/lib/endorsed
java.ext.dirs=/home/andreas/.hudson/tools/1.5_JDK/jre/lib/ext
java.home=/home/andreas/.hudson/tools/1.5_JDK/jre
java.io.tmpdir=/tmp
java.library.path=/home/andreas/.hudson/tools/1.5_JDK/jre/lib/i386/server\:/home/andreas/.hudson/tools/1.5_JDK/jre/lib/i386\:/home/andreas/.huds
on/tools/1.5_JDK/jre/../lib/i386\:/usr/lib/jvm/java-6-sun-1.6.0.19/jre/lib/i386/server\:/usr/lib/jvm/java-6-sun-1.6.0.19/jre/lib/i386\:/usr/lib/jvm/java-6-sun
-1.6.0.19/jre/../lib/i386
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_17-b04
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http\://java.sun.com/
java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_17
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_17-b04
line.separator=\n
os.arch=i386
os.name=Linux
os.version=2.6.32-trunk-686
path.separator=\:
sun.arch.data.model=32
sun.boot.class.path=/home/andreas/.hudson/tools/1.5_JDK/jre/lib/rt.jar\:/home/andreas/.hudson/tools/1.5_JDK/jre/lib/i18n.jar\:/home/andreas/.huds
on/tools/1.5_JDK/jre/lib/sunrsasign.jar\:/home/andreas/.hudson/tools/1.5_JDK/jre/lib/jsse.jar\:/home/andreas/.hudson/tools/1.5_JDK/jre/lib/jce.jar\:/
home/andreas/.hudson/tools/1.5_JDK/jre/lib/chars
ets.jar\:/home/andreas/.hudson/tools/1.5_JDK/jre/classes
sun.boot.library.path=/home/andreas/.hudson/tools/1.5_JDK/jre/lib/i386
sun.cpu.endian=little
sun.cpu.isalist=
sun.io.unicode.encoding=UnicodeLittle
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot Server Compiler
sun.os.patch.level=unknown
user.country=US
user.dir=/home/andreas/.hudson/jobs/squishide/workspace/debug_bucky
user.home=/home/andreas
user.language=en
user.name=andreas
user.timezone=
Re: internal error during importing [message #534527 is a reply to message #534517] Wed, 19 May 2010 12:48 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Andreas,

comments inline

Am 19.05.2010 14:10, schrieb Andreas Pakulat:
>
> Unfortunately I currently don't see how this should work (but that may
> just be because I don't know buckminster that well yet). The reason is that
> to be able to run a perform mailto:xxx@save.env I'd first have to do an
> import to make the component known to buckminster. At least buckminster
> complains
> about not knowing the component when I do the perform first and then the
> import. And as the import triggers the failure the perform after it
> won't be
> executed. I've hence specified an ant-job that runs before buckminster
> that calls the echoproperties (see the end of this message for the
> content).

That's right of course, stupid suggestion from my side :)
But your idea with the ant build step works just fine of course.

>
> The other option I thought about to at least find out what it tries to
> resolve there that throws the error would be building buckminster myself,
> but unfortunately I didn't find instructions that worked for that.
>
>

You don't really need to build buckminster yourself. As long as you have
the source code available in Eclipse you should be able to do a remote
debugging in Eclipse if you add something like this as an additional
startup parameter to your Buckminster build step:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=104 4


I don't really understand the behavior you're observing, it just doesn't
make sense that it works if you invoke it manually, but not from within
Hudson. The only explanation seems to be the env.vars.
Before version 1.0.3 of the Hudson Plugin the environment variables
given by hudson were not passed to buckminster (a bug).
Maybe if you uninstall the plugin and then install 1.0.2
( http://hudson-ci.org/download/plugins/buckminster/1.0.2/buck minster.hpi) it
would get clearify if it really is caused by one of the environment
variables or not.

I wish I could do more to help you find this issue, but local resolution
works just fine on my build server and I don't know how I'd be able to
reproduce this.

Regards,
Johannes
Re: internal error during importing [message #534534 is a reply to message #534527] Wed, 19 May 2010 13:00 Go to previous message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Andreas,

ok, I've just seen your latest post in buckminster-dev. I guess that
shows clearly that it's not related to any environment variables so
ignore the idea with the 1.0.2 version of the plugin...


Best regards,
Johannes
Previous Topic:site.p2.zip signing problem
Next Topic:How to hide org.eclipse.equinox.executable?
Goto Forum:
  


Current Time: Thu Oct 18 11:19:27 GMT 2018

Powered by FUDForum. Page generated in 0.03496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top