felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FELIX-3852) InstallBundle throws ClassCastException: java.util.jar.Attributes$Name cannot be cast to java.lang.String
Date Thu, 24 Jan 2013 15:19:12 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13561673#comment-13561673
] 

Richard S. Hall edited comment on FELIX-3852 at 1/24/13 3:17 PM:
-----------------------------------------------------------------

It looks like we no longer handle the case sensitivity, but the rest of what I said was valid.

Proposed patch. Sahoo, can you check that this still works for you.

Technically, I still don't think this is 100% correct if this was compiled with target jsr14
for older smaller VMs. I guess it depends on how smart the compiler is when compiling for
jsr14.
                
      was (Author: rickhall):
    Proposed patch. Sahoo, can you check that this still works for you.

Technically, I still don't think this is 100% correct if this was compiled with target jsr14
for older smaller VMs. I guess it depends on how smart the compiler is when compiling for
jsr14.
                  
> InstallBundle throws ClassCastException: java.util.jar.Attributes$Name cannot be cast
to java.lang.String
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3852
>                 URL: https://issues.apache.org/jira/browse/FELIX-3852
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.2.0
>            Reporter: Sahoo
>            Assignee: Sahoo
>            Priority: Critical
>             Fix For: framework-4.2.0
>
>         Attachments: Felix-3852.patch, FELIX-3852-updated.txt
>
>
> Caused by: org.osgi.framework.BundleException: Could not create bundle object.
>     at org.apache.felix.framework.Felix.installBundle(Felix.java:2885)
>     at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
>     at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138)
>     at org.glassfish.extras.osgicontainer.OSGiDeployer.installBundle(OSGiDeployer.java:114)
>     ... 47 more
> Caused by: java.lang.ClassCastException: java.util.jar.Attributes$Name cannot be cast
to java.lang.String
>     at org.apache.felix.framework.util.StringMap.putAll(StringMap.java:89)
>     at org.apache.felix.framework.util.StringMap.<init>(StringMap.java:43)
>     at org.apache.felix.framework.cache.DirectoryRevision.getManifestHeader(DirectoryRevision.java:92)
>     at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1188)
>     at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:95)
>     at org.apache.felix.framework.Felix.installBundle(Felix.java:2832)
>     ... 50 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message