You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/06/13 14:26:45 UTC

[jira] Created: (FELIX-606) Exception when loading a class through DynamicImport-Package

Exception when loading a class through DynamicImport-Package
------------------------------------------------------------

                 Key: FELIX-606
                 URL: https://issues.apache.org/jira/browse/FELIX-606
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-1.0.4
            Reporter: Guillaume Nodet


ERROR: Unable to dynamically import package. (java.lang.ArrayStoreException)
java.lang.ArrayStoreException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.attemptDynamicImport(R4SearchPolicyCore.java:711)
        at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDynamicImports(R4SearchPolicyCore.java:526)
        at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:480)
        at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
        at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
        at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
        at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
        at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-606) Exception when loading a class through DynamicImport-Package

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-606:
----------------------------------

    Attachment: FELIX-606.patch

> Exception when loading a class through DynamicImport-Package
> ------------------------------------------------------------
>
>                 Key: FELIX-606
>                 URL: https://issues.apache.org/jira/browse/FELIX-606
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.4
>            Reporter: Guillaume Nodet
>            Assignee: Richard S. Hall
>         Attachments: FELIX-606.patch
>
>
> ERROR: Unable to dynamically import package. (java.lang.ArrayStoreException)
> java.lang.ArrayStoreException
>         at java.lang.System.arraycopy(Native Method)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.attemptDynamicImport(R4SearchPolicyCore.java:711)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDynamicImports(R4SearchPolicyCore.java:526)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:480)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>         at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
>         at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
>         at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-606) Exception when loading a class through DynamicImport-Package

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall reassigned FELIX-606:
-------------------------------------

    Assignee: Richard S. Hall

> Exception when loading a class through DynamicImport-Package
> ------------------------------------------------------------
>
>                 Key: FELIX-606
>                 URL: https://issues.apache.org/jira/browse/FELIX-606
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.4
>            Reporter: Guillaume Nodet
>            Assignee: Richard S. Hall
>         Attachments: FELIX-606.patch
>
>
> ERROR: Unable to dynamically import package. (java.lang.ArrayStoreException)
> java.lang.ArrayStoreException
>         at java.lang.System.arraycopy(Native Method)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.attemptDynamicImport(R4SearchPolicyCore.java:711)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDynamicImports(R4SearchPolicyCore.java:526)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:480)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>         at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
>         at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
>         at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-606) Exception when loading a class through DynamicImport-Package

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638530#action_12638530 ] 

Gert Vanthienen commented on FELIX-606:
---------------------------------------

Richard,

We recently came across this issue again in ServiceMix 4 and we fixed it by upgrading to Felix 1.2.1, so I guess your fix works.  Feel free to mark this issue resolved.

Regards,

Gert

> Exception when loading a class through DynamicImport-Package
> ------------------------------------------------------------
>
>                 Key: FELIX-606
>                 URL: https://issues.apache.org/jira/browse/FELIX-606
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.4
>            Reporter: Guillaume Nodet
>            Assignee: Richard S. Hall
>         Attachments: FELIX-606.patch
>
>
> ERROR: Unable to dynamically import package. (java.lang.ArrayStoreException)
> java.lang.ArrayStoreException
>         at java.lang.System.arraycopy(Native Method)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.attemptDynamicImport(R4SearchPolicyCore.java:711)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDynamicImports(R4SearchPolicyCore.java:526)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:480)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>         at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
>         at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
>         at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-606) Exception when loading a class through DynamicImport-Package

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-606.
---------------------------------

    Resolution: Fixed

They say it is fixed.

> Exception when loading a class through DynamicImport-Package
> ------------------------------------------------------------
>
>                 Key: FELIX-606
>                 URL: https://issues.apache.org/jira/browse/FELIX-606
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.4
>            Reporter: Guillaume Nodet
>            Assignee: Richard S. Hall
>         Attachments: FELIX-606.patch
>
>
> ERROR: Unable to dynamically import package. (java.lang.ArrayStoreException)
> java.lang.ArrayStoreException
>         at java.lang.System.arraycopy(Native Method)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.attemptDynamicImport(R4SearchPolicyCore.java:711)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDynamicImports(R4SearchPolicyCore.java:526)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:480)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>         at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
>         at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
>         at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-606) Exception when loading a class through DynamicImport-Package

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607748#action_12607748 ] 

Richard S. Hall commented on FELIX-606:
---------------------------------------

Ok, I committed the patch, since I am fairly certain that it fixes the issue. However, I am still waiting for a response from Guillaume.

> Exception when loading a class through DynamicImport-Package
> ------------------------------------------------------------
>
>                 Key: FELIX-606
>                 URL: https://issues.apache.org/jira/browse/FELIX-606
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.4
>            Reporter: Guillaume Nodet
>            Assignee: Richard S. Hall
>         Attachments: FELIX-606.patch
>
>
> ERROR: Unable to dynamically import package. (java.lang.ArrayStoreException)
> java.lang.ArrayStoreException
>         at java.lang.System.arraycopy(Native Method)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.attemptDynamicImport(R4SearchPolicyCore.java:711)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDynamicImports(R4SearchPolicyCore.java:526)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:480)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>         at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
>         at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
>         at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-606) Exception when loading a class through DynamicImport-Package

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605075#action_12605075 ] 

Richard S. Hall commented on FELIX-606:
---------------------------------------

Yes, I think I see the problem. Let me know if the attached patch fixes it.

> Exception when loading a class through DynamicImport-Package
> ------------------------------------------------------------
>
>                 Key: FELIX-606
>                 URL: https://issues.apache.org/jira/browse/FELIX-606
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.4
>            Reporter: Guillaume Nodet
>         Attachments: FELIX-606.patch
>
>
> ERROR: Unable to dynamically import package. (java.lang.ArrayStoreException)
> java.lang.ArrayStoreException
>         at java.lang.System.arraycopy(Native Method)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.attemptDynamicImport(R4SearchPolicyCore.java:711)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchDynamicImports(R4SearchPolicyCore.java:526)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:480)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
>         at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>         at org.apache.felix.moduleloader.ModuleImpl.getClass(ModuleImpl.java:146)
>         at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1501)
>         at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:358)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.