Made the same changes, upgraded to 384 of bnd task and removed Service 
interface extension.

You are running on Windows 7? Everything works fine for me on XP, but not Win7.

bnd:
      [bnd] # com.boreal.comms.serial.rxtx (com.boreal.comms.serial.rxtx.jar) 
58 (not modified)
ipojo:
    [ipojo] Input bundle file : 
C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\com.boreal.comms.serial.rxtx.jar
    [ipojo] Metadata file : 
C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\metadata.xml
    [ipojo] Start manipulation
    [ipojo] Cannot get the manifest : invalid header field

BUILD FAILED
C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\build.xml:21: 
java.lang.NullPointerException: man
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
        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:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at 
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
        at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: java.lang.NullPointerException: man
        at java.util.jar.JarOutputStream.<init>(Unknown Source)
        at 
org.apache.felix.ipojo.manipulator.Pojoization.manipulateJarFile(Pojoization.java:361)
        at 
org.apache.felix.ipojo.manipulator.Pojoization.pojoization(Pojoization.java:231)
        at org.apache.felix.ipojo.task.IPojoTask.execute(IPojoTask.java:199)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
________________________________________
From: Clement Escoffier [[email protected]]
Sent: Friday, September 24, 2010 9:50 AM
To: [email protected]
Subject: Re: ipojo ant and invalid header

Hi,


On 24.09.2010, at 17:36, Joel Schuster wrote:

> Yeah... After trying to pull out the parts that gave me trouble it ended up 
> kinda dumb. Here's the two eclipse projects themselves.
>
> Thanks for the help!

Well not sure I can really help:
clem...@clement:~/Desktop/boreal_serial/boreal.comms $ ant
Buildfile: build.xml

bnd:
      [bnd] # com.boreal.comms (com.boreal.comms.jar) 2

ipojo:
    [ipojo] Input bundle file : 
/Users/clement/Desktop/boreal_serial/boreal.comms/com.boreal.comms.jar
    [ipojo] Metadata file : 
/Users/clement/Desktop/boreal_serial/boreal.comms/metadata.xml
    [ipojo] Start manipulation
    [ipojo] Neither component types, nor instances in the metadata
    [ipojo] Bundle manipulation - SUCCESS
    [ipojo] Output file : 
/Users/clement/Desktop/boreal_serial/boreal.comms/com.boreal.comms.jar

jar:
     [echo] Jar Built

BUILD SUCCESSFUL
Total time: 0 seconds
clem...@clement:~/Desktop/boreal_serial/boreal.comms $ cd 
../boreal.comms.serial.rxtx/
clem...@clement:~/Desktop/boreal_serial/boreal.comms.serial.rxtx $ ant
Buildfile: build.xml

bnd:
      [bnd] # com.boreal.comms.serial.rxtx (com.boreal.comms.serial.rxtx.jar) 58

ipojo:
    [ipojo] Input bundle file : 
/Users/clement/Desktop/boreal_serial/boreal.comms.serial.rxtx/com.boreal.comms.serial.rxtx.jar
    [ipojo] Metadata file : 
/Users/clement/Desktop/boreal_serial/boreal.comms.serial.rxtx/metadata.xml
    [ipojo] Start manipulation
    [ipojo] Neither component types, nor instances in the metadata
    [ipojo] Bundle manipulation - SUCCESS
    [ipojo] Output file : 
/Users/clement/Desktop/boreal_serial/boreal.comms.serial.rxtx/com.boreal.comms.serial.rxtx.jar

jar:
     [echo] Jar Built

BUILD SUCCESSFUL
Total time: 7 seconds


I've only removed the reference on the 'service' project (missing). I also used 
the bnd ant task version 0.0.384.

Regards,

Clement


>
> - Joel
>
>
> ________________________________________
> From: Clement Escoffier [[email protected]]
> Sent: Friday, September 24, 2010 9:22 AM
> To: [email protected]
> Subject: Re: ipojo ant and invalid header
>
> Hi,
>
> Could you send us the build.xml triggering this error ? The best would be a 
> small project that I can run.
>
> Thanks,
>
> Clement
>
> On 23.09.2010, at 09:44, Guillaume Sauthier wrote:
>
>> Not really an answer to your problem but a workaround :)
>>
>> There are some available rxtx bundles:
>> http://maven.ow2.org/maven2/org/rxtx/org.ow2.chameleon.commons.rxtx/
>>
>> BTW, having the fragment of build.xml defining the executed targets could 
>> help.
>>
>> Cheers
>> --Guillaume
>>
>> Le 22/09/2010 22:47, Joel Schuster a écrit :
>>> When using the iPojo ant task on Windows 7 I get the following error, on 
>>> WinXP I do not see this problem.
>>>
>>> If I include a pre-step to delete the end resulting jar before running, I 
>>> do not get the error. However, the jar doesn't work in felix (never loads 
>>> the service). If I build on WinXP it will work just fine.
>>>
>>> Any thoughts?
>>>
>>> Apache Ant version 1.7.1 compiled on June 27 2008
>>> Buildfile: C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\build.xml
>>> parsing buildfile 
>>> C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\build.xml with URI = 
>>> file:/C:/dev/workspaces/brooks/boreal.comms.serial.rxtx/build.xml
>>> Project base dir set to: C:\dev\workspaces\brooks\boreal.comms.serial.rxtx
>>> [antlib:org.apache.tools.ant] Could not load definitions from resource 
>>> org/apache/tools/ant/antlib.xml. It could not be found.
>>> Build sequence for target(s) `jar' is [bnd, ipojo, jar]
>>> Complete build sequence is [bnd, ipojo, jar, ]
>>> bnd:
>>>      [bnd] # com.boreal.comms.serial.rxtx 
>>> (com.boreal.comms.serial.rxtx.jar) 58 (not modified)
>>> ipojo:
>>>    [ipojo] Input bundle file : 
>>> C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\com.boreal.comms.serial.rxtx.jar
>>>    [ipojo] Metadata file : 
>>> C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\metadata.xml
>>>    [ipojo] Start manipulation
>>>    [ipojo] Cannot get the manifest : invalid header field
>>>
>>> BUILD FAILED
>>> C:\dev\workspaces\brooks\boreal.comms.serial.rxtx\build.xml:21: 
>>> java.lang.NullPointerException: man
>>>      at 
>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
>>>      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:1337)
>>>      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>>>      at 
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>>      at 
>>> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>>>      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>>>      at 
>>> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
>>>      at 
>>> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
>>> Caused by: java.lang.NullPointerException: man
>>>      at java.util.jar.JarOutputStream.<init>(Unknown Source)
>>>      at 
>>> org.apache.felix.ipojo.manipulator.Pojoization.manipulateJarFile(Pojoization.java:337)
>>>      at 
>>> org.apache.felix.ipojo.manipulator.Pojoization.pojoization(Pojoization.java:229)
>>>      at org.apache.felix.ipojo.task.IPojoTask.execute(IPojoTask.java:199)
>>>      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>      at java.lang.reflect.Method.invoke(Unknown Source)
>>>      at 
>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>>>      ... 10 more
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> <boreal_serial.zip>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to