Menu

#8 different behaviours within netbeans

open
nobody
None
5
2012-09-14
2012-09-14
Jo Vark
No

Hello,
I tried using the VFSJFileChooser within a Netbeans Java application and things worked fine.

However, switching to a Netbeans Platform application and trying to use VFSJFileChooser within a module, never ends up showing me the contents of the remote folder.

For eg:, After going through Connections, or Bookmarks->Manage->Open, etc, connecting via the application, my remote host name is listed as ftp://ftpserver whereas within the Platform application, it is always listed as ftp://ftpserver:21 and no files or folders appear in the FileChooser dialog.

I see these two warnings:
WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.apache.commons.net.ftp.FTPFile arbitrarily from one of ModuleCL@3fa801ba[org.netbeans.libs.commons_net] and ModuleCL@1020c6a5[dummy] starting from SystemClassLoader[375 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.apache.commons.httpclient.HttpClient arbitrarily from one of NetbinoxLoader delegating to org.apache.commons.httpclient_3.1.0 and ModuleCL@1020c6a5[dummy] starting from SystemClassLoader[375 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE

I've attached my two projects created with Netebeans7.2

For the Platform based test, Go to Window->TopComponent to bring up a top component that contains a button. Clicking on this button will bring up the VFSJFileChooser dialog.

I would really appreciate a workaround or solution to this issue as I plan on using the dialog in my platform based app.

Let me know if any more information is required.

Thanks and regards.

Discussion

  • Jo Vark

    Jo Vark - 2012-09-14
     
  • Jo Vark

    Jo Vark - 2012-09-14

    I'm having trouble uploading the Platform based test project since it crosses the 256K limit, so can email it directly to anyone who is interested..

     
  • Jo Vark

    Jo Vark - 2012-09-14
     
  • Jo Vark

    Jo Vark - 2012-09-14

    Uploaded the Platform project also after removing the jar files from Dummy->Dummy2->release/modules/ext
    The following jar files should be placed in the above folder before the project can be used:

    commons-compress-20050911.jar
    commons-httpclient-2.0.2.jar
    commons-lang-2.0.jar
    commons-logging-1.0.4.jar
    commons-net-1.4.0.jar
    commons-vfs-1.1-SNAPSHOT.jar
    commons-vfs-sandbox-1.1-SNAPSHOT.jar
    jakarta-slide-webdavlib-20050629.161100.jar
    jcifs-1.2.9.jar
    jsch-0.1.29.jar
    junit.jar
    oro-2.0.8.jar
    VFSJFileChooser-0.0.2.jar

     
  • Jo Vark

    Jo Vark - 2012-09-14
     
  • Jo Vark

    Jo Vark - 2012-09-14
     

Log in to post a comment.