Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 FordFriend
Messages: 148
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 FordFriend
Messages: 148
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 HallgrenFriend
Messages: 3240
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 FordFriend
Messages: 148
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: Thu Apr 25 01:03:48 GMT 2024

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

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

Back to the top