Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

jfx file not signed
 Post subject: jfx file not signed Post rating: 0   New post Posted: Fri 23 Mar, 2012, 21:58 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi Dukascopy Support:

When i try to execute this simple line:

private static String strPath = System.getProperty("user.home");


e get the following error in console log:

<record>
  <date>2012-03-23T19:37:09</date>
  <millis>1332531429521</millis>
  <sequence>70</sequence>
  <logger>com.sun.deploy</logger>
  <level>FINE</level>
  <class>com.sun.deploy.trace.LoggerTraceListener</class>
  <method>print</method>
  <thread>9</thread>
  <message>23.03.2012 19:37:09.521   SEVERE                            a.f ] null
java.lang.ExceptionInInitializerError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at com.dukascopy.dds2.greed.agent.a.f.az(Unknown Source)
   at com.dukascopy.dds2.greed.agent.a.e.a(Unknown Source)
   at com.dukascopy.dds2.greed.util.d.a(Unknown Source)
   at com.dukascopy.dds2.greed.actions.CompileAndRunAction.yw(Unknown Source)
   at com.dukascopy.dds2.greed.actions.c.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.home" "read")
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
   at java.lang.System.getProperty(Unknown Source)
   at JForex.JLMH.&lt;clinit&gt;(JLMH.java:20)
   ... 10 more
</message>
</record>


I think this error occurs because jfx file not signed in compilation as a usual applet or jws application needs to access System.Properties.

TIA

JL


 
 Post subject: Re: jfx file not signed Post rating: 0   New post Posted: Mon 26 Mar, 2012, 13:14 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Have you tried running the strategy with @RequiresFullAccess annotation?


 
 Post subject: Re: jfx file not signed Post rating: 0   New post Posted: Mon 26 Mar, 2012, 14:16 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
API Support wrote:
Have you tried running the strategy with @RequiresFullAccess annotation?



Yes, i do...

Best regards

JL


 
 Post subject: Re: jfx file not signed Post rating: 0   New post Posted: Tue 27 Mar, 2012, 11:40 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
please set the property value in the onStart method.


 
 Post subject: Re: jfx file not signed Post rating: 0   New post Posted: Tue 27 Mar, 2012, 16:11 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
API Support wrote:
please set the property value in the onStart method.


Greetings Support!

That way works, Thankyou!

Best regards

JL


 

Jump to:  

  © 1998-2025 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