JA works in sandbox but not Acceptance

0
Edit: It turned out to be a Firewall Problem. Mendix runtime doesnt have access to the domain. Hi, I have an application in acceptance. In that application I have a Java Action that retrieves a file from a specific network share. I have a similar Java Action for Exporting to a network share. Both of these JA's are being used by a Scheduled Event. They work perfectly when on my local machine, but when they are on acceptance the same code just doesnt work. Below you will find the methods used. I cannot use the ftp module because it is a smb share not ftp! My question is what is the difference between the servers that would cause this failure? Additionally, do java actions timeout while on the cloud? These java actions can take up to a half an hour depending on the size of the file. Thanks, Benjamin Griggs   public IMendixObject GetFile(IContext context, IMendixObject XLSFile, String netUser, String netPass) throws IOException { String Directory = XLSFileParameter1.getImportDirectory(); String path="smb:" + Directory.trim(); NtlmPasswordAuthentication auth = null; SmbFile smbFile = null; InputStream is = null; try { auth = new NtlmPasswordAuthentication("",netUser.trim(), netPass.trim()); smbFile = new SmbFile(path,auth); is = smbFile.getInputStream(); Core.storeFileDocumentContent(context, XLSFile,"Default.xlsx", is); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); XLSFile = null; } finally { is.close(); } return XLSFile; } public IMendixObject GetFile(IContext context,IMendixObject filedocument, String netUser, String netPass, String netDirectory, String fileName) throws Exception { String path="smb:" + netDirectory.trim() + "/" + fileName.trim() + ".xlsx" ; NtlmPasswordAuthentication auth = null; SmbFile smbFile = null; OutputStream os = null; InputStream is = null; try { auth = new NtlmPasswordAuthentication("",netUser.trim(), netPass.trim()); smbFile = new SmbFile(path,auth); os = smbFile.getOutputStream(); is = Core.getFileDocumentContent(getContext(), filedocument); IOUtils.copy(is, os); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); filedocument = null; } finally { is.close(); os.close(); } return filedocument; }  
asked
1 answers
0

Maybe monitor your heap space usage? Large files can pile up in your memory.

answered