Petals BC FTP

Fix a potential NPE listing file on remote FTP server

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.9.0
  • Fix Version/s: 3.10.0
  • Component/s: Runtime
  • Security Level: Public
  • Description:
    Hide

    If a problem occurs listing files on remote FTP server, an NPE can occur:

    Error: java.lang.NullPointerException
    	at org.ow2.petals.bc.ftp.connection.WrappedFTPClient.fileExistOnRemoteDirectory(WrappedFTPClient.java:497)
    	at org.ow2.petals.bc.ftp.connection.WrappedFTPClient.putString(WrappedFTPClient.java:456)
    	at org.ow2.petals.bc.ftp.service.FTPService.processPut(FTPService.java:622)
    	at org.ow2.petals.bc.ftp.listener.JBIListener.onJBIMessage(JBIListener.java:129)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:590)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:557)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:282)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:182)
    	at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    	at java.base/java.lang.Thread.run(Thread.java:833)
    	at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
    Show
    If a problem occurs listing files on remote FTP server, an NPE can occur:
    Error: java.lang.NullPointerException
    	at org.ow2.petals.bc.ftp.connection.WrappedFTPClient.fileExistOnRemoteDirectory(WrappedFTPClient.java:497)
    	at org.ow2.petals.bc.ftp.connection.WrappedFTPClient.putString(WrappedFTPClient.java:456)
    	at org.ow2.petals.bc.ftp.service.FTPService.processPut(FTPService.java:622)
    	at org.ow2.petals.bc.ftp.listener.JBIListener.onJBIMessage(JBIListener.java:129)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.invokeJBIListener(MessageExchangeProcessor.java:590)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:557)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:282)
    	at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:182)
    	at org.ow2.petals.component.framework.process.JBIProcessorThreadPoolExecutor$ExchangeRunnable.run(JBIProcessorThreadPoolExecutor.java:90)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    	at java.base/java.lang.Thread.run(Thread.java:833)
    	at org.ow2.petals.component.framework.process.JBIProcessorThreadFactory$JBIProcessorThread.run(JBIProcessorThreadFactory.java:99)
  • Environment:
    -

People

Dates

  • Created:
    Tue, 8 Apr 2025 - 15:34:46 +0200
    Updated:
    Tue, 8 Apr 2025 - 15:37:05 +0200
    Resolved:
    Tue, 8 Apr 2025 - 15:37:05 +0200