[jboss-jira] [JBoss JIRA] Resolved: (JBMICROCONT-205) Accessing content of vfsfile url fails

Ales Justin (JIRA) jira-events at lists.jboss.org
Sun Nov 4 05:15:08 EST 2007


     [ http://jira.jboss.com/jira/browse/JBMICROCONT-205?page=all ]

Ales Justin resolved JBMICROCONT-205.
-------------------------------------

    Fix Version/s: JBossMC-2.0.0.Beta6
                       (was: JBossMC-2.0.0.CR1)
       Resolution: Done

Overriding getContent to return VirtualFile.
Eventually replace URLConnection impl with this work: https://svn.jboss.org/repos/jbossas/projects/vfs/branches/urlconn-work/

> Accessing content of vfsfile url fails
> --------------------------------------
>
>                 Key: JBMICROCONT-205
>                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-205
>             Project: JBoss MicroContainer
>          Issue Type: Bug
>          Components: VFS
>            Reporter: Scott M Stark
>         Assigned To: Ales Justin
>             Fix For: JBossMC-2.0.0.Beta6
>
>
> When trying to create a ManagedProperty for a URL type with a vfsfile: url value, the content fails to be obtained:
> Caused by: java.net.UnknownServiceException: no content-type
>         at java.net.URLConnection.getContentHandler(URLConnection.java:1167)
>         at java.net.URLConnection.getContent(URLConnection.java:683)
>         at java.net.URL.getContent(URL.java:1021)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
>         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
>         at org.jboss.beans.info.plugins.AbstractPropertyInfo.get(AbstractPropertyInfo.java:172)
>         at org.jboss.beans.info.plugins.AbstractBeanInfo.getProperty(AbstractBeanInfo.java:238)
>         at org.jboss.metatype.plugins.values.DefaultMetaValueFactory.createCompositeValue(DefaultMetaValueFactory.java:371)
>         ... 23 more
> VirtualFileURLConnection should be overriding the getContent method to return the VirtualFile I suppose.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list