Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

java.lang.SecurityException: Unable to create temporary file or directory
 Post subject: java.lang.SecurityException: Unable to create temporary file or directory Post rating: 0   New post Posted: Sun 23 Mar, 2014, 23:09 
User avatar

User rating: 0
Joined: Wed 03 Jul, 2013, 14:08
Posts: 16
Location: BrazilBrazil
I'm trying to use this code: https://www.dukascopy.com/wiki/#Indicato ... a_by_group

By I get the exception.

java.lang.SecurityException: Unable to create temporary file or directory
at java.nio.file.TempFileHelper.create(Unknown Source)
at java.nio.file.TempFileHelper.createTempFile(Unknown Source)
at java.nio.file.Files.createTempFile(Unknown Source)
at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown Source)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source)
at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at com.dukascopy.api.impl.connect.cu.<init>(Unknown Source)
at com.dukascopy.api.impl.connect.be.<init>(Unknown Source)
at com.dukascopy.api.impl.connect.be.<init>(Unknown Source)
at com.dukascopy.dds2.greed.util.IndicatorHelper.b(Unknown Source)
at com.dukascopy.api.impl.cl.getDataService(Unknown Source)
at com.dukascopy.indicators.SentimentIndexBarIndicator.onStart(SentimentIndexBarIndicator.java:116)
at com.dukascopy.charts.math.a.c.a(Unknown Source)
at com.dukascopy.api.impl.cp.getIndicator(Unknown Source)
at jforex.Test.onStart(Unknown Source)
at com.dukascopy.api.impl.execution.u.call(Unknown Source)
at com.dukascopy.api.impl.execution.u.call(Unknown Source)
at com.dukascopy.api.impl.connect.ag.a(Unknown Source)
at com.dukascopy.api.impl.connect.bk.by(Unknown Source)
at com.dukascopy.api.impl.connect.bk.call(Unknown Source)
at com.dukascopy.api.impl.execution.k.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.dukascopy.api.impl.execution.g$a.f(Unknown Source)
at com.dukascopy.api.impl.execution.g$a.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Dukascopy Bank ver. 2.33.2
JForex API ver. 2.9.7



How to fix this?


Attachments:
File comment: Strategy Test to reproduce the exception
Test.java [2.07 KiB]
Downloaded 92 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: java.lang.SecurityException: Unable to create temporary file or directory Post rating: 0   New post Posted: Mon 24 Mar, 2014, 08:41 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Either by adding the @RequiresFullAccess annotation or not loading the SENTIMENTINDEXBAR indicator.


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com