Hi Martin,

neither the JAR Manifest spec nor the OSGi Core Spec does explicitly forbid manifest headers with empty values.

The Meta-Persistence: header of the JPA Service Spec (OSGi Enterprise) is a positive example allowing an empty value.

The problem you're having seems to be caused by Karaf or one of its dependencies.

The root cause may be the following class:

http://grepcode.com/file/repo1.maven.org/maven2/org.apache.felix/org.apache.felix.utils/1.2.0/org/apache/felix/utils/manifest/Parser.java?av=f

Best regards,
Harald

Am 12.11.2012 15:39, schrieb Martin Lichtin:> Hi Harald
>
>
> I believe this is caused by a header which has no value.
> And looking at below Pax output, my guess is that it's the
> Ignore-Package header:
>
> [Probe ID: 8993aba2d6f876a26cf518285b454259b8b59ede]
> [Probe Location: file:/tmp/1352730073273-0/tinybundles_8993aba2d6f876a26cf518285b454259b8b59ede.bin]
> [Tests:
> SIG=[TestAddress:PaxExam-322ddfc2-4e03-43d7-b595-a978221a3885 root:PaxExam-322ddfc2-4e03-43d7-b595-a978221a3885]
> ]
> [Headers:
>      DynamicImport-Package=*
>      Ignore-Package=
>      PaxExam-Executable=PaxExam-322ddfc2-4e03-43d7-b595-a978221a3885,
>      Built-By=jenkins
>      TinybundlesVersion=pax-tinybundles-1.0.0
>      Manifest-Version=1.0
>      Tool=pax-tinybundles-1.0.0
> PaxExam-322ddfc2-4e03-43d7-b595-a978221a3885=ch.bbp.fmp.inuc.stp.environment.ruleexecfact.RuleExecFactPaxITest;test
>      Created-By=pax-tinybundles-1.0.0
> Bundle-SymbolicName=PAXEXAM-PROBE-e55c4beb-8734-4ccd-a6af-f62a3b380c3d
> ]
>



Am 04.09.2012 14:59, schrieb Martin Lichtin:
Hi
I'm using paxexam-karaf-container.
The test code seems to be magically put into a bundle and loaded.
However, when trying to view its headers, I get the following error.

karaf@root> ls 162

Bundle 162 provides:
--------------------
objectClass = org.ops4j.pax.exam.ProbeInvoker
Probe-Signature = PaxExam-cc17232a-95a2-4dea-9f08-632343905642
service.id = 269
----
objectClass = org.osgi.service.blueprint.container.BlueprintContainer
osgi.blueprint.container.symbolicname =
PAXEXAM-PROBE-693610c7-c192-47b1-b0d4-24e188564e3b
osgi.blueprint.container.version = 0.0.0
service.id = 277
karaf@root> headers 162

Bundle 162
----------
Error executing command: The header cannot be an empty string.
karaf@root>




_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general



_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to