Java app fails saving to SMB share

Alexandre Takacs
Alexandre Takacs used Ask the Experts™

I am having an issue with a third party Java application running under Win10/64

The problem is that the app can't seem to be able to write into an SMB share (referenced as UNC or mapped to a drive letter).

It can save into the local drives(s) and, interestingly enough, it manages to create a file in the share but doesn't complete the write operation.

Looking into the generated logs I see:

2016-03-25 14:38:22,941 [Thread-2] DEBUG - runner started
2016-03-25 14:38:23,104 [Thread-2] DEBUG - runner terminated
2016-03-25 14:38:35,606 [main] DEBUG - Opening tax file version 3
2016-03-25 14:38:35,645 [main] DEBUG - Successfuly loaded 1307 model item(s) into memory
2016-03-25 14:38:35,692 [main] DEBUG - Opening tax file version 3
2016-03-25 14:38:35,708 [main] DEBUG - Successfuly loaded 1307 model item(s) into memory
2016-03-25 14:38:35,724 [main] INFO - CDI support level: FULL.
2016-03-25 14:38:35,974 [main] INFO - Table REPARTITION initialized (update count: 219).
2016-03-25 14:38:35,989 [main] INFO - Table REPARTITION_KEYS initialized (update count: 182).
2016-03-25 14:38:35,989 [main] INFO - Populated repartition tables in 31 ms.
2016-03-25 14:38:36,442 [main] DEBUG - dataModelKey validation took 0ms
2016-03-25 14:38:36,442 [main] DEBUG - executing async update dmk=Deductions.DeductionsLPP.MontantEnfants updates left=7
2016-03-25 14:38:36,442 [main] DEBUG - executing async update dmk=Deductions.DeductionsLPP.MontantConjoint updates left=6
2016-03-25 14:38:36,458 [main] DEBUG - executing async update dmk=Deductions.DeductionsLPP.MontantContribuable updates left=5
2016-03-25 14:38:36,458 [main] DEBUG - executing async update dmk=Deductions.AutresDeductions.DeductionPourChargeDeFamilleIFD updates left=4
2016-03-25 14:38:36,458 [main] DEBUG - executing async update dmk=Deductions.AutresDeductions.DeductionPourChargeDeFamilleICC updates left=3
2016-03-25 14:38:36,458 [main] DEBUG - executing async update dmk=Deductions.AutresDeductions.DeductionSurFortuneCommercInvestieConjoint updates left=2
2016-03-25 14:38:36,458 [main] DEBUG - executing async update dmk=Deductions.AutresDeductions.DeductionSurFortuneCommercInvestieContribuable updates left=1
2016-03-25 14:39:36,824 [main] ERROR - Error saving fileAs
java.nio.file.ReadOnlyFileSystemException: null
	at com.sun.nio.zipfs.ZipFileSystem.checkWritable( ~[zipfs.jar:1.8.0_60]
	at com.sun.nio.zipfs.ZipFileSystem.createDirectory( ~[zipfs.jar:1.8.0_60]
	at com.sun.nio.zipfs.ZipPath.createDirectory( ~[zipfs.jar:1.8.0_60]
	at com.sun.nio.zipfs.ZipFileSystemProvider.createDirectory( ~[zipfs.jar:1.8.0_60]
	at java.nio.file.Files.createDirectory( ~[na:1.8.0_60]
	at java.nio.file.Files.createAndCheckIsDirectory( ~[na:1.8.0_60]
	at java.nio.file.Files.createDirectories( ~[na:1.8.0_60]
	at$1.preVisitDirectory( ~[getax-pp-cd.jar:na]
	at$1.preVisitDirectory( ~[getax-pp-cd.jar:na]
	at java.nio.file.Files.walkFileTree( ~[na:1.8.0_60]
	at java.nio.file.Files.walkFileTree( ~[na:1.8.0_60]
	at ~[getax-pp-cd.jar:na]
	at ~[dvbtax-common-cd-getax.jar:8.8.1]
	at [dvbtax-common-cd-getax.jar:8.8.1]
	at org.eclipse.jface.action.Action.runWithEvent( [org.eclipse.jface.jar:na]
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection( [org.eclipse.jface.jar:na]
	at org.eclipse.jface.action.ActionContributionItem.access$2( [org.eclipse.jface.jar:na]
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent( [org.eclipse.jface.jar:na]
	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) [swt_32.jar:na]
	at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source) [swt_32.jar:na]
	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) [swt_32.jar:na]
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) [swt_32.jar:na]
	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) [swt_32.jar:na]
	at [dvbtax-common-cd-getax.jar:8.8.1]
	at [dvbtax-common-cd-getax.jar:8.8.1]
	at [getax-pp-cd.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
	at sun.reflect.NativeMethodAccessorImpl.invoke( ~[na:1.8.0_60]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[na:1.8.0_60]
	at java.lang.reflect.Method.invoke( ~[na:1.8.0_60]
	at ch.dvbern.lib.update.Launcher.launchApplication( [dvbern-lib-update.jar:2.6.6]
	at ch.dvbern.lib.update.Launcher.main( [dvbern-lib-update.jar:2.6.6]
2016-03-25 14:39:44,663 [Thread-3] DEBUG - Autosaving has been interrupted
2016-03-25 14:39:44,676 [Thread-1] DEBUG - Shutting down weld

Open in new window

I have contacted the editor of the software (a tax declaration application) and their advise is to save to local drive and then copy paste to share... I'd like to get back to them with something more specific.

Any comment most welcome
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
That's a commercial product. You should ask them for a better solution, not us


Well on the principle I would tend to agree but I wonder if there is not an infrastructure issue at play here, ie some system setting that would restrict access to network ressources for Java apps
Top Expert 2016



Not really a solutiuon / what I as looking for but I guess my best bet

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial