Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » NoClassDefFoundError when trying to create target platform using Hudson/Buckminster
NoClassDefFoundError when trying to create target platform using Hudson/Buckminster [message #629893] Wed, 29 September 2010 20:53 Go to next message
Daniel Ford is currently offline Daniel Ford
Messages: 138
Registered: July 2009
Location: New York
Senior Member
I'm trying to get Hudson and Buckminster to work together to build an
RCP. I think I have most things installed and configured correctly, but
I've run into an issue that I can't resolve.

Basically, I have a Hudson Job that whose purpose is to create the
target platform. It does this with the buckminster
"importtartgetdefinition" command using the target definition I use in
the IDE. Things seem to work until the command is executed at which
point I get a "NoClassDefFoundError".

Any ideas?

Thanks

Dan

> [workspace] $ "C:\Documents and Settings\daford\.hudson\tools\Sun_Java_6_SE\bin\java.exe" "-Dbuckminster.output.root=C:\Documents and Settings\daford\.hudson\jobs\Create e4 Target Platform\workspace\buckminster.output" "-Dbuckminster.temp.root=C:\Documents and Settings\daford\.hudson\jobs\Create e4 Target Platform\workspace\buckminster.temp" -Xmx256m -Xmx1024m -jar "C:\Documents and Settings\daford\.hudson\tools\Default_Buckminster\buckminste r\plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar " -application org.eclipse.buckminster.cmdline.headless -data "C:\Documents and Settings\daford\.hudson\jobs\Create e4 Target Platform\workspace" --loglevel info -S "C:\Documents and Settings\daford\.hudson\jobs\Create e4 Target Platform\workspace\commands.txt"
> INFO: importtargetdefinition '-A' '/C:/Documents and Settings/daford/.hudson/jobs/Create e4 Target Platform/workspace/com.forddaniel.arm.releng/targetPlatforms /e4RCP20100727.target'
> Archiving artifacts
> FATAL: Could not initialize class sun.nio.ch.FileChannelImpl
> java.lang.NoClassDefFoundError: Could not initialize class sun.nio.ch.FileChannelImpl
> at java.io.FileInputStream.getChannel(Unknown Source)
> at org.apache.tools.ant.util.ResourceUtils.copyResource(Resourc eUtils.java:469)
> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 519)
> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 481)
> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 310)
> at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.jav a:841)
> at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java: 1434)
> at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
Re: NoClassDefFoundError when trying to create target platform using Hudson/Buckminster [message #629908 is a reply to message #629893] Wed, 29 September 2010 21:40 Go to previous messageGo to next message
Daniel Ford is currently offline Daniel Ford
Messages: 138
Registered: July 2009
Location: New York
Senior Member
I did a bit of experimentation and discovered that if I unchecked the
"Archive and publish an Eclipse Target Platform" option on the Hudson
Job then Job would complete without throwing the Error. I was using

".metadata/.plugins/org.eclipse.pde.core/.bundle_pool"

As the "Path to Target Platform"

Again, any ideas?

Thanks

Dan


On 9/29/2010 4:53 PM, Daniel Ford wrote:
> I'm trying to get Hudson and Buckminster to work together to build an
> RCP. I think I have most things installed and configured correctly, but
> I've run into an issue that I can't resolve.
>
> Basically, I have a Hudson Job that whose purpose is to create the
> target platform. It does this with the buckminster
> "importtartgetdefinition" command using the target definition I use in
> the IDE. Things seem to work until the command is executed at which
> point I get a "NoClassDefFoundError".
>
> Any ideas?
>
> Thanks
>
> Dan
>
>> [workspace] $ "C:\Documents and
>> Settings\daford\.hudson\tools\Sun_Java_6_SE\bin\java.exe"
>> "-Dbuckminster.output.root=C:\Documents and
>> Settings\daford\.hudson\jobs\Create e4 Target
>> Platform\workspace\buckminster.output"
>> "-Dbuckminster.temp.root=C:\Documents and
>> Settings\daford\.hudson\jobs\Create e4 Target
>> Platform\workspace\buckminster.temp" -Xmx256m -Xmx1024m -jar
>> "C:\Documents and
>> Settings\daford\.hudson\tools\Default_Buckminster\buckminste r\plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar "
>> -application org.eclipse.buckminster.cmdline.headless -data
>> "C:\Documents and Settings\daford\.hudson\jobs\Create e4 Target
>> Platform\workspace" --loglevel info -S "C:\Documents and
>> Settings\daford\.hudson\jobs\Create e4 Target
>> Platform\workspace\commands.txt"
>> INFO: importtargetdefinition '-A' '/C:/Documents and
>> Settings/daford/.hudson/jobs/Create e4 Target
>> Platform/workspace/com.forddaniel.arm.releng/targetPlatforms /e4RCP20100727.target'
>>
>> Archiving artifacts
>> FATAL: Could not initialize class sun.nio.ch.FileChannelImpl
>> java.lang.NoClassDefFoundError: Could not initialize class
>> sun.nio.ch.FileChannelImpl
>> at java.io.FileInputStream.getChannel(Unknown Source)
>> at
>> org.apache.tools.ant.util.ResourceUtils.copyResource(Resourc eUtils.java:469)
>>
>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 519)
>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 481)
>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 310)
>> at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.jav a:841)
>> at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java: 1434)
>> at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
>
>
>
Re: NoClassDefFoundError when trying to create target platform using Hudson/Buckminster [message #629953 is a reply to message #629908] Thu, 30 September 2010 06:20 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
No idea. A NoClassDefFoundError is generally an indication on classpath
problems of some sort. Perhaps a version incompatibility somewhere. A
class is found but it's definition cannot be initialized.

- thomas

On 09/29/2010 11:40 PM, Daniel Ford wrote:
> I did a bit of experimentation and discovered that if I unchecked the
> "Archive and publish an Eclipse Target Platform" option on the Hudson
> Job then Job would complete without throwing the Error. I was using
>
> ".metadata/.plugins/org.eclipse.pde.core/.bundle_pool"
>
> As the "Path to Target Platform"
>
> Again, any ideas?
>
> Thanks
>
> Dan
>
>
> On 9/29/2010 4:53 PM, Daniel Ford wrote:
>> I'm trying to get Hudson and Buckminster to work together to build an
>> RCP. I think I have most things installed and configured correctly, but
>> I've run into an issue that I can't resolve.
>>
>> Basically, I have a Hudson Job that whose purpose is to create the
>> target platform. It does this with the buckminster
>> "importtartgetdefinition" command using the target definition I use in
>> the IDE. Things seem to work until the command is executed at which
>> point I get a "NoClassDefFoundError".
>>
>> Any ideas?
>>
>> Thanks
>>
>> Dan
>>
>>> [workspace] $ "C:\Documents and
>>> Settings\daford\.hudson\tools\Sun_Java_6_SE\bin\java.exe"
>>> "-Dbuckminster.output.root=C:\Documents and
>>> Settings\daford\.hudson\jobs\Create e4 Target
>>> Platform\workspace\buckminster.output"
>>> "-Dbuckminster.temp.root=C:\Documents and
>>> Settings\daford\.hudson\jobs\Create e4 Target
>>> Platform\workspace\buckminster.temp" -Xmx256m -Xmx1024m -jar
>>> "C:\Documents and
>>> Settings\daford\.hudson\tools\Default_Buckminster\buckminste r\plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar "
>>>
>>> -application org.eclipse.buckminster.cmdline.headless -data
>>> "C:\Documents and Settings\daford\.hudson\jobs\Create e4 Target
>>> Platform\workspace" --loglevel info -S "C:\Documents and
>>> Settings\daford\.hudson\jobs\Create e4 Target
>>> Platform\workspace\commands.txt"
>>> INFO: importtargetdefinition '-A' '/C:/Documents and
>>> Settings/daford/.hudson/jobs/Create e4 Target
>>> Platform/workspace/com.forddaniel.arm.releng/targetPlatforms /e4RCP20100727.target'
>>>
>>>
>>> Archiving artifacts
>>> FATAL: Could not initialize class sun.nio.ch.FileChannelImpl
>>> java.lang.NoClassDefFoundError: Could not initialize class
>>> sun.nio.ch.FileChannelImpl
>>> at java.io.FileInputStream.getChannel(Unknown Source)
>>> at
>>> org.apache.tools.ant.util.ResourceUtils.copyResource(Resourc eUtils.java:469)
>>>
>>>
>>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 519)
>>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 481)
>>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 310)
>>> at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.jav a:841)
>>> at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java: 1434)
>>> at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
>>
>>
>>
>
Re: NoClassDefFoundError when trying to create target platform using Hudson/Buckminster [message #630119 is a reply to message #629953] Thu, 30 September 2010 16:04 Go to previous message
Daniel Ford is currently offline Daniel Ford
Messages: 138
Registered: July 2009
Location: New York
Senior Member
I installed an update to Java on my machine and now things magically
work. Go figure.

Thanks!

Dan


On 9/30/2010 2:20 AM, Thomas Hallgren wrote:
> No idea. A NoClassDefFoundError is generally an indication on classpath
> problems of some sort. Perhaps a version incompatibility somewhere. A
> class is found but it's definition cannot be initialized.
>
> - thomas
>
> On 09/29/2010 11:40 PM, Daniel Ford wrote:
>> I did a bit of experimentation and discovered that if I unchecked the
>> "Archive and publish an Eclipse Target Platform" option on the Hudson
>> Job then Job would complete without throwing the Error. I was using
>>
>> ".metadata/.plugins/org.eclipse.pde.core/.bundle_pool"
>>
>> As the "Path to Target Platform"
>>
>> Again, any ideas?
>>
>> Thanks
>>
>> Dan
>>
>>
>> On 9/29/2010 4:53 PM, Daniel Ford wrote:
>>> I'm trying to get Hudson and Buckminster to work together to build an
>>> RCP. I think I have most things installed and configured correctly, but
>>> I've run into an issue that I can't resolve.
>>>
>>> Basically, I have a Hudson Job that whose purpose is to create the
>>> target platform. It does this with the buckminster
>>> "importtartgetdefinition" command using the target definition I use in
>>> the IDE. Things seem to work until the command is executed at which
>>> point I get a "NoClassDefFoundError".
>>>
>>> Any ideas?
>>>
>>> Thanks
>>>
>>> Dan
>>>
>>>> [workspace] $ "C:\Documents and
>>>> Settings\daford\.hudson\tools\Sun_Java_6_SE\bin\java.exe"
>>>> "-Dbuckminster.output.root=C:\Documents and
>>>> Settings\daford\.hudson\jobs\Create e4 Target
>>>> Platform\workspace\buckminster.output"
>>>> "-Dbuckminster.temp.root=C:\Documents and
>>>> Settings\daford\.hudson\jobs\Create e4 Target
>>>> Platform\workspace\buckminster.temp" -Xmx256m -Xmx1024m -jar
>>>> "C:\Documents and
>>>> Settings\daford\.hudson\tools\Default_Buckminster\buckminste r\plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar "
>>>>
>>>>
>>>> -application org.eclipse.buckminster.cmdline.headless -data
>>>> "C:\Documents and Settings\daford\.hudson\jobs\Create e4 Target
>>>> Platform\workspace" --loglevel info -S "C:\Documents and
>>>> Settings\daford\.hudson\jobs\Create e4 Target
>>>> Platform\workspace\commands.txt"
>>>> INFO: importtargetdefinition '-A' '/C:/Documents and
>>>> Settings/daford/.hudson/jobs/Create e4 Target
>>>> Platform/workspace/com.forddaniel.arm.releng/targetPlatforms /e4RCP20100727.target'
>>>>
>>>>
>>>>
>>>> Archiving artifacts
>>>> FATAL: Could not initialize class sun.nio.ch.FileChannelImpl
>>>> java.lang.NoClassDefFoundError: Could not initialize class
>>>> sun.nio.ch.FileChannelImpl
>>>> at java.io.FileInputStream.getChannel(Unknown Source)
>>>> at
>>>> org.apache.tools.ant.util.ResourceUtils.copyResource(Resourc eUtils.java:469)
>>>>
>>>>
>>>>
>>>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 519)
>>>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 481)
>>>> at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java: 310)
>>>> at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.jav a:841)
>>>> at hudson.FilePath$31$1CopyImpl.doFileOperations(FilePath.java: 1434)
>>>> at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
>>>
>>>
>>>
>>
>
Previous Topic:P2 Repository can not be found
Next Topic:Materializing non-Java and non-plugin projects
Goto Forum:
  


Current Time: Wed Oct 22 12:24:38 GMT 2014

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

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