Problem s Esmskou a API

Diskuze o telefonování a telefonních službách, rady, návody, připomínky, ...
Odpovědět
Uživatelský avatar
Cujka
Příspěvky: 10
Registrován: čtv 01. lis 2012 15:24:04

Problem s Esmskou a API

Příspěvek od Cujka »

Dobry den
Prestalo mi fungovat posilani sms pres esmesku s nasledujici chybou...

Kód: Vybrat vše

Led 18, 2018 10:22:48 DOP. esmska.transfer.GatewayConnector setLanguage
FINER: Preferred language set: cs
Led 18, 2018 10:22:49 DOP. esmska.transfer.GatewayConnector doPost
FINE: Posting data to url: https://www.odorik.cz/api/v1/sms
Led 18, 2018 10:22:49 DOP. org.apache.commons.httpclient.HttpConnection open
FINE: Open connection to www.odorik.cz:443
Led 18, 2018 10:22:49 DOP. org.apache.commons.httpclient.HttpConnection releaseConnection
FINE: Releasing connection back to connection manager.
Led 18, 2018 10:22:49 DOP. esmska.transfer.SMSSender$SMSWorker done
SEVERE: Sending of SMS crashed
java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at javax.swing.SwingWorker.get(SwingWorker.java:602)
	at esmska.transfer.SMSSender$SMSWorker.done(SMSSender.java:116)
	at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
	at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
	at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
	at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
	at javax.swing.Timer.fireActionPerformed(Timer.java:313)
	at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ExceptionInInitializerError
	at javax.crypto.JceSecurityManager.<clinit>(JceSecurityManager.java:65)
	at javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2587)
	at javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2611)
	at sun.security.ssl.CipherSuite$BulkCipher.isUnlimited(CipherSuite.java:535)
	at sun.security.ssl.CipherSuite$BulkCipher.<init>(CipherSuite.java:507)
	at sun.security.ssl.CipherSuite.<clinit>(CipherSuite.java:614)
	at sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:294)
	at sun.security.ssl.SSLContextImpl.access$100(SSLContextImpl.java:42)
	at sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:425)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.security.Provider$Service.getImplClass(Provider.java:1634)
	at java.security.Provider$Service.newInstance(Provider.java:1592)
	at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
	at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
	at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
	at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)
	at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)
	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	at esmska.transfer.GatewayConnector.doPost(GatewayConnector.java:329)
	at esmska.transfer.GatewayConnector.connect(GatewayConnector.java:213)
	at esmska.transfer.GatewayExecutor.postURL(GatewayExecutor.java:158)
	at jdk.nashorn.internal.scripts.Script$Recompilation$1$909$\^eval\_.send(<eval>:58)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
	at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)
	at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386)
	at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190)
	at esmska.transfer.GatewayInterpreter.sendMessage(GatewayInterpreter.java:88)
	at esmska.transfer.SMSSender$SMSWorker.doInBackground(SMSSender.java:131)
	at esmska.transfer.SMSSender$SMSWorker.doInBackground(SMSSender.java:105)
	at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at javax.swing.SwingWorker.run(SwingWorker.java:334)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
	at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:93)
	... 44 more
Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer! (Policy files are specific per major JDK release.Ensure the correct version is installed.)
	at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:328)
	at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:378)
	at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:323)
	at javax.crypto.JceSecurity.access$000(JceSecurity.java:50)
	at javax.crypto.JceSecurity$1.run(JceSecurity.java:85)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:82)
	... 44 more

Led 18, 2018 10:22:49 DOP. esmska.data.SMS setProblem
nemuzu se se stavajicim api jmenem a heslem prihlasit ani na https://www.odorik.cz/aw/

zkusil jsem vygenerovat nove heslo, taky nepomohlo...
Uživatelský avatar
xsouku04
Administrátor
Příspěvky: 8137
Registrován: pát 15. říj 2010 11:11:44
Bydliště: Brno
Kontaktovat uživatele:

Re: Problem s Esmskou a API

Příspěvek od xsouku04 »

A o jaké se jedná api jméno?
Uživatelský avatar
Cujka
Příspěvky: 10
Registrován: čtv 01. lis 2012 15:24:04

Re: Problem s Esmskou a API

Příspěvek od Cujka »

xsouku04 píše:A o jaké se jedná api jméno?
API přihlašovací jméno (číslo uživatele): 6086133
Uživatelský avatar
Largon
Příspěvky: 448
Registrován: pon 07. lis 2011 10:14:09

Re: Problem s Esmskou a API

Příspěvek od Largon »

Dobrý den,
díval jsem se na váš účet a testoval komunikaci s API přes váš účet. Funguje mi bez problému.

Z té výjimky bych to viděl na problém v Javě, že si nedokáže poradit s certifikátem našeho web serveru.

Kód: Vybrat vše

...
Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer! (Policy files are specific per major JDK release.Ensure the correct version is installed.)
...
Máte aktuální verzi JRE?
Uživatelský avatar
Cujka
Příspěvky: 10
Registrován: čtv 01. lis 2012 15:24:04

Re: Problem s Esmskou a API

Příspěvek od Cujka »

Javu mam posledni verzi, funkcni s jinymi appkami bez problemu. Projistotu jsem i preinstaloval a chova se to stejne :-(

Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer! (Policy files are specific per major JDK release.Ensure the correct version is installed.)
Uživatelský avatar
xsouku04
Administrátor
Příspěvky: 8137
Registrován: pát 15. říj 2010 11:11:44
Bydliště: Brno
Kontaktovat uživatele:

Re: Problem s Esmskou a API

Příspěvek od xsouku04 »

Dobrý den,
zde se o tom píše. http://www.odorik.cz/w/esmska#problem_s ... na_windows
esmska používá starou přibalenou vezri javy.
Odpovědět