[jboss-jira] [JBoss JIRA] (JBAS-9399) URL.getContent() returns VirtualFile instead of ImageProducer in JBoss AS 6.0.0.FINAL

Nathan Blomquist (JIRA) issues at jboss.org
Tue Jul 10 15:11:00 EDT 2018


    [ https://issues.jboss.org/browse/JBAS-9399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13603272#comment-13603272 ] 

Nathan Blomquist commented on JBAS-9399:
----------------------------------------

The workaround that was added isn't really a workaround for this.  The issue is that on a standard JVM (non-JBoss), the SimpleBeanInfo.class works fine.  On JBoss the class fails.

The SimpleBeanInfo.class is a Java library class. 
https://docs.oracle.com/javase/7/docs/api/java/beans/SimpleBeanInfo.html

In our case it was used in a third party component for which we didn't have code access.  We actually weren't trying to get the image and didn't care about the image.  The third party component tried to load it during construction.

> URL.getContent() returns VirtualFile instead of ImageProducer in JBoss AS 6.0.0.FINAL
> -------------------------------------------------------------------------------------
>
>                 Key: JBAS-9399
>                 URL: https://issues.jboss.org/browse/JBAS-9399
>             Project: Application Server 3  4  5 and 6
>          Issue Type: Bug
>          Components: VFS
>    Affects Versions: 6.0.0.Final
>         Environment: Windows XP
>            Reporter: Nathan Blomquist
>         Attachments: server.log
>
>
> URL.getContent() behaves differently within JBoss than it does in a normal JVM.  In our case, when a jar is used in a normal JVM, URL.getContent() returns an ImageProducer.  When the same jar is used from within JBoss, a VirtualFile is returned which then causes a ClassCastException.
> Note: This worked fine in JBoss 4.2.3.GA.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list