[jboss-jira] [JBoss JIRA] (WFLY-856) Error "Null Path" during VFS get virtual file
Kabir Khan (JIRA)
issues at jboss.org
Wed Dec 6 12:20:21 EST 2017
[ https://issues.jboss.org/browse/WFLY-856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kabir Khan updated WFLY-856:
----------------------------
Fix Version/s: 9.0.0.Final
> Error "Null Path" during VFS get virtual file
> ---------------------------------------------
>
> Key: WFLY-856
> URL: https://issues.jboss.org/browse/WFLY-856
> Project: WildFly
> Issue Type: Bug
> Components: VFS
> Reporter: Zhang Lan
> Assignee: David Lloyd
> Labels: jboss
> Fix For: 9.0.0.Final
>
>
> I have a jar file ,in which have "seam.properties" to load the seam components in it.
> I put the jar file as a module.
> But I got the following error when I start jboss.
> java.lang.IllegalArgumentException: Null path
> at org.jboss.vfs.VFS.getChild(VFS.java:187) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
> at org.jboss.vfs.VFS.getChild(VFS.java:173) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
> at org.jboss.vfs.VFS.getChild(VFS.java:154) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
> at org.jboss.seam.integration.jbossas.vfs.VFSScanner.getRoot(VFSScanner.java:36) [jboss-seam-int.jar:6.0.0.GA]
> VFS.java:187 is following source.
> return getChild(uri.getPath());
> But in my case ,the uri pattern is create by org.jboss.modules.JarFileResourceLoader#getJarURI use the following method.
> return new URI("jar", b.toString(), null);
> It is the [scheme:]scheme-specific-part[#fragment] pattern 's URI.it's path is null.
> So when I change the VFS.java:187 to the following ,my problem is ok.IT's a bug?
> public static VirtualFile getChild(URI uri) {
> if(uri.getPath() != null){
> return getChild(uri.getPath());
> }else{
> return getChild(uri.getSchemeSpecificPart());
> }
> }
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list