Java app fails saving to SMB share


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
Alexandre TakacsCTOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

That's a commercial product. You should ask them for a better solution, not us

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alexandre TakacsCTOAuthor Commented:
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
Alexandre TakacsCTOAuthor Commented:
Not really a solutiuon / what I as looking for but I guess my best bet
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.