[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    [Carbon-dev] Error while Building Project for Microservice-GW
From:       Dushan Abeyruwan <dushan () wso2 ! com>
Date:       2018-06-29 17:41:07
Message-ID: CACyyj6c4hFKW54VUqBeSDy4i7PzqKAyNtq3hv2j2jC_-ep+Uag () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Folks,
 This is what I have tried with wso2am-micro-gw-toolkit-2.5.0-SNAPSHOT

w-toolkit-2.5.0-SNAPSHOT/lib/platform
MICROGW_TOOLKIT_HOME environment variable is set to
/Users/xx/xx/wso2/dev/xxx/wso2am-micro-gw-toolkit-2.5.0-SNAPSHOT
Enter Username:
admin
Enter Password for admin:

Enter APIM base URL [https://localhost:9443/]:

Enter Trust store location: [lib/platform/bre/security/
ballerinaTruststore.p12]

Enter Trust store password: [ use default? ]

micro-gw: Internal error occurred while executing command.
xx-xx-Pro-3:APIM250 dushan$

The error.

Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException:
Error constructing implementation (algorithm: Default, provider: SunJSSE,
class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
at javax.net.ssl.DefaultSSLSocketFactory.throwException(
SSLSocketFactory.java:248)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.
java:255)
at sun.net.www.protocol.https.HttpsClient.createSocket(HttpsClient.java:409)
at sun.net.NetworkClient.doConnect(NetworkClient.java:162)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnec
tion.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(
HttpURLConnection.java:1104)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(
HttpURLConnection.java:998)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(
AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(
HttpURLConnection.java:1282)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(
HttpURLConnection.java:1257)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(
HttpsURLConnectionImpl.java:250)
at org.wso2.apimgt.gateway.cli.oauth.OAuthServiceImpl.
generateClientIdAndSecret(OAuthServiceImpl.java:103)
... 4 more
Caused by: java.security.NoSuchAlgorithmException: Error constructing
implementation (algorithm: Default, provider: SunJSSE, class:
sun.security.ssl.SSLContextImpl$DefaultSSLContext)
at java.security.Provider$Service.newInstance(Provider.java:1617)
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 javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(
HttpsURLConnection.java:332)
at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:289)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(
HttpsURLConnectionImpl.java:85)
at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
at java.net.URL.openConnection(URL.java:972)
at org.wso2.apimgt.gateway.cli.oauth.OAuthServiceImpl.
generateClientIdAndSecret(OAuthServiceImpl.java:94)
... 4 more
Caused by: java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:650)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
at java.security.KeyStore.load(KeyStore.java:1445)
at sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(
TrustManagerFactoryImpl.java:226)
at sun.security.ssl.SSLContextImpl$DefaultSSLContext.getDefaultTrustManager(
SSLContextImpl.java:767)
at sun.security.ssl.SSLContextImpl$DefaultSSLContext.<init>(
SSLContextImpl.java:733)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.security.Provider$Service.newInstance(Provider.java:1595)
... 16 more



-- 
Dushan Abeyruwan | Architect
Technical Support,MV
PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:*http://www.dushantech.com/ <http://www.dushantech.com/>*
LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
<https://www.linkedin.com/in/dushanabeyruwan>*
Mobile:(001)408-987-1348

[Attachment #5 (text/html)]

<div dir="ltr"><div>Folks,</div><div>  This is what I have tried with  \
wso2am-micro-gw-toolkit-<wbr>2.5.0-SNAPSHOT</div><div><br></div><div>w-toolkit-2.5.0-SNAPSHOT/lib/<wbr>platform</div><div>MICROGW_TOOLKIT_HOME \
environment variable is set to \
/Users/xx/xx/wso2/dev/xxx/<wbr>wso2am-micro-gw-toolkit-2.5.0-<wbr>SNAPSHOT</div><div>Enter \
Username:</div><div>admin</div><div>Enter Password for \
admin:</div><div><br></div><div>Enter APIM base URL [<a \
href="https://localhost:9443/" \
target="_blank">https://localhost:9443/</a>]:</div><div><br></div><div>Enter Trust \
store location: [lib/platform/bre/security/<wbr>ballerinaTruststore.p12]</div><div><br></div><div>Enter \
Trust store password: [ use default? ]</div><div><br></div><div>micro-gw: Internal \
error occurred while executing command.</div><div>xx-xx-Pro-3:APIM250 \
dushan$</div><div><br></div><div>The error.</div><div><br></div><div><div>Caused by: \
java.net.SocketException: java.security.<wbr>NoSuchAlgorithmException: Error \
constructing implementation (algorithm: Default, provider: SunJSSE, class: \
sun.security.ssl.<wbr>SSLContextImpl$<wbr>DefaultSSLContext)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.net.ssl.<wbr>DefaultSSLSocketFactory.<wbr>throwException(<wbr>SSLSocketFactory.java:248)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.net.ssl.<wbr>DefaultSSLSocketFactory.<wbr>createSocket(SSLSocketFactory.<wbr>java:255)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>HttpsClient.createSocket(<wbr>HttpsClient.java:409)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.NetworkClient.<wbr>doConnect(NetworkClient.java:<wbr>162)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.http.HttpClient.<wbr>openServer(HttpClient.java:<wbr>432)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.http.HttpClient.<wbr>openServer(HttpClient.java:<wbr>527)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>HttpsClient.&lt;init&gt;(<wbr>HttpsClient.java:275)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>HttpsClient.New(HttpsClient.<wbr>java:371)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>AbstractDelegateHttpsURLConnec<wbr>tion.getNewHttpClient(<wbr>AbstractDelegateHttpsURLConnec<wbr>tion.java:191)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.http.<wbr>HttpURLConnection.<wbr>plainConnect0(<wbr>HttpURLConnection.java:1104)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.http.<wbr>HttpURLConnection.<wbr>plainConnect(<wbr>HttpURLConnection.java:998)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>AbstractDelegateHttpsURLConnec<wbr>tion.connect(<wbr>AbstractDelegateHttpsURLConnec<wbr>tion.java:177)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.http.<wbr>HttpURLConnection.<wbr>getOutputStream0(<wbr>HttpURLConnection.java:1282)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.http.<wbr>HttpURLConnection.<wbr>getOutputStream(<wbr>HttpURLConnection.java:1257)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>HttpsURLConnectionImpl.<wbr>getOutputStream(<wbr>HttpsURLConnectionImpl.java:<wbr>250)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.wso2.apimgt.gateway.cli.<wbr>oauth.OAuthServiceImpl.<wbr>generateClientIdAndSecret(<wbr>OAuthServiceImpl.java:103)</div><div><span \
style="white-space:pre-wrap">	</span>... 4 more</div><div>Caused by: \
java.security.<wbr>NoSuchAlgorithmException: Error constructing implementation \
(algorithm: Default, provider: SunJSSE, class: \
sun.security.ssl.<wbr>SSLContextImpl$<wbr>DefaultSSLContext)</div><div><span \
style="white-space:pre-wrap">	</span>at \
java.security.Provider$<wbr>Service.newInstance(Provider.<wbr>java:1617)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.security.jca.GetInstance.<wbr>getInstance(GetInstance.java:<wbr>236)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.security.jca.GetInstance.<wbr>getInstance(GetInstance.java:<wbr>164)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.net.ssl.SSLContext.<wbr>getInstance(SSLContext.java:<wbr>156)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.net.ssl.SSLContext.<wbr>getDefault(SSLContext.java:96)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.net.ssl.<wbr>SSLSocketFactory.getDefault(<wbr>SSLSocketFactory.java:122)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.net.ssl.<wbr>HttpsURLConnection.<wbr>getDefaultSSLSocketFactory(<wbr>HttpsURLConnection.java:332)</div><div><span \
style="white-space:pre-wrap">	</span>at \
javax.net.ssl.<wbr>HttpsURLConnection.&lt;init&gt;(<wbr>HttpsURLConnection.java:289)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>HttpsURLConnectionImpl.&lt;init&gt;(<wbr>HttpsURLConnectionImpl.java:<wbr>85)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>Handler.openConnection(<wbr>Handler.java:62)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.net.www.protocol.https.<wbr>Handler.openConnection(<wbr>Handler.java:57)</div><div><span \
style="white-space:pre-wrap">	</span>at \
java.net.URL.openConnection(<wbr>URL.java:972)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.wso2.apimgt.gateway.cli.<wbr>oauth.OAuthServiceImpl.<wbr>generateClientIdAndSecret(<wbr>OAuthServiceImpl.java:94)</div><div><span \
style="white-space:pre-wrap">	</span>... 4 more</div><div>Caused by: \
java.io.IOException: Invalid keystore format</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.security.provider.<wbr>JavaKeyStore.engineLoad(<wbr>JavaKeyStore.java:650)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.security.provider.<wbr>JavaKeyStore$JKS.engineLoad(<wbr>JavaKeyStore.java:55)</div><div><span \
style="white-space:pre-wrap">	</span>at \
java.security.KeyStore.load(<wbr>KeyStore.java:1445)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.security.ssl.<wbr>TrustManagerFactoryImpl.<wbr>getCacertsKeyStore(<wbr>TrustManagerFactoryImpl.java:<wbr>226)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.security.ssl.<wbr>SSLContextImpl$<wbr>DefaultSSLContext.<wbr>getDefaultTrustManager(<wbr>SSLContextImpl.java:767)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.security.ssl.<wbr>SSLContextImpl$<wbr>DefaultSSLContext.&lt;init&gt;(<wbr>SSLContextImpl.java:733)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.reflect.<wbr>NativeConstructorAccessorImpl.<wbr>newInstance0(Native \
Method)</div><div><span style="white-space:pre-wrap">	</span>at \
sun.reflect.<wbr>NativeConstructorAccessorImpl.<wbr>newInstance(<wbr>NativeConstructorAccessorImpl.<wbr>java:62)</div><div><span \
style="white-space:pre-wrap">	</span>at \
sun.reflect.<wbr>DelegatingConstructorAccessorI<wbr>mpl.newInstance(<wbr>DelegatingConstructorAccessorI<wbr>mpl.java:45)</div><div><span \
style="white-space:pre-wrap">	</span>at \
java.lang.reflect.Constructor.<wbr>newInstance(Constructor.java:<wbr>422)</div><div><span \
style="white-space:pre-wrap">	</span>at \
java.security.Provider$<wbr>Service.newInstance(Provider.<wbr>java:1595)</div><div><span \
style="white-space:pre-wrap">	</span>... 16 \
more</div></div><div><br></div><div><br></div><div><br></div>-- <br><div \
class="m_8639478744895197305gmail_signature"><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div><font face="courier new, monospace">Dushan Abeyruwan |<font \
color="#999999">  Architect</font></font></div><div><font face="courier new, \
monospace"><font color="#999999">Technical \
Support,MV</font></font></div><div><div><font color="#999999" face="courier new, \
monospace">PMC Member Apache Synpase</font></div><div><font face="courier new, \
monospace"><font color="#999999">WSO2 Inc.  <a href="http://wso2.com/" \
target="_blank">http://wso2.com/</a></font><br></font></div><div><font face="courier \
new, monospace">Blog:</font><font color="#0000ee" face="courier new, monospace"><u><a \
href="http://www.dushantech.com/" \
target="_blank">http://www.dushantech.<wbr>com/</a></u></font></div><div><font \
face="courier new, monospace" color="#999999">LinkedIn</font><font color="#0000ee" \
face="courier new, monospace">:</font><font color="#66696a" face="times new roman, \
serif"><span style="font-size:13px;line-height:17px"><u><a \
href="https://www.linkedin.com/in/dushanabeyruwan" \
target="_blank">https://www.linkedin.<wbr>com/in/dushanabeyruwan</a></u></span></font></div><div><span \
style="background-color:transparent"><font color="#999999" face="courier new, \
monospace">Mobile:(001)408-987-1348</font></span></div></div><div><span \
style="background-color:transparent"><font color="#999999" face="courier new, \
monospace"><br></font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
 </div>



_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic