BatchFTP "get" problem
All,
I would appreciate your help on the following issue.
I try to do an FTP get in my jcd but keep on getting an error.
I think the configuration in cm and environment is correct (UNIX, Manual connection Mode, ...). Is there some way to tell the Ftp Client we're in "GET" mode, and not in "PUT" mode? Any other suggestions?
An extract of the code:
public void start( ... com.stc.eways.batchext.BatchFtp batchFtp){
...
batchFtp.getClient().connect();
...
batchFtp.getClient().get();
...
It's at the "get()" the crash happens.
The stackTrace:
Batch FTP eWay error when doing data transfer operation in [get()], message=[com.stc.eways.batchext.FtpFileException: FtpFileTransferNamesAndCommandsGet.resolveTargetLocation(): Failed to list file. Got exception [java.io.IOException: FtpFileProviderImpl.listFileNames(): Got exception [java.lang.NullPointerException].].].|#]
....
at com.stc.eways.batchext.FtpFileClientImpl.sendAlertAndThrowException(FtpFileClie ntImpl.java:3042)
at com.stc.eways.batchext.FtpFileClientImpl.get(FtpFileClientImpl.java:2926)
at prj5035EbusConnectJCD.jcdEbusInFtp.start(jcdEbusInFtp.java:98)
at prj5035EbusConnect.svcEbusInFtp.jcdEbusInFtp_Runtime_Handler.handleRequest(jcdE busInFtp_Runtime_Handler.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInv ocationHandler.java:135)
at $Proxy45.handleRequest(Unknown Source)
at STC_MDB__eaSchedulerEbus_svcEbusInFtp.sendMessage(STC_MDB__eaSchedulerEbus_svcE busInFtp.java:213)
at STC_MDB__eaSchedulerEbus_svcEbusInFtp.onContents(STC_MDB__eaSchedulerEbus_svcEb usInFtp.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSe curityManager.java:940)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer .java:948)
at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListen erImpl.java:42)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(Me ssageEndpointInvocationHandler.java:136)
at $Proxy48.onContents(Unknown Source)
at com.stc.schedulerotd.scheduleradapter.FileReaderWork.run(FileReaderWork.java:77 )
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:54)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Thread PoolImpl.java:382)
Many Thanks (and have a nice weekend)
koen

