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

Scott M Stark (JIRA) jira-events at lists.jboss.org
Mon Sep 3 19:58:18 EDT 2007


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
             Fix For: JBossMC-2.0.0.Beta4


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