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

List:       wsf-c-dev
Subject:    [Dev] [DEV][DAS][ESB] Failed to initialise synapse after installing DAS features
From:       Ayyoob Hamza <ayyoob () wso2 ! com>
Date:       2015-09-30 13:29:15
Message-ID: CAFp9FkpE6ZXnWwAhqbZRZsOSW--u_pOtZaZ7M95sjkMF_sBiNA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi All,
When we install DAS features to CDMF(This already have the APIM features),
found a weird fatal exception which failed to start the synapse.

[2015-09-30 18:23:51,439]  INFO
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
ESB...
[2015-09-30 18:23:51,459]  INFO
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
 Initializing Apache Synapse...
[2015-09-30 18:23:51,474] FATAL
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
initialize ESB due to a fatal error
java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:

org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
 @289: invokevirtual
  Reason:
    Type 'java/lang/Object' (current frame, stack[0]) is not assignable to
'java/net/URLConnection'
  Current Frame:
    bci: @289
    flags: { }
    locals: { 'java/net/URL', 'java/lang/Object', 'java/util/Properties',
'java/lang/String', 'java/lang/String', 'java/util/List',
'java/lang/String', 'java/lang/String', 'java/lang/String', '[B',
'java/lang/String' }
    stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String' }
  Bytecode:
    0000000: 2ac7 001a b200 01b9 0020 0100 9900 0db2

So when digged through the cause of this exception, I was able re-produce
this error by only installing the analytics-core feature[1]. Further I was
able find that the below bundle caused this exception.
<bundleDef>org.wso2.orbit.org.ow2.asm:asm-all</bundleDef>[2]

This can also be produced on the ESB 4.9.0 by installing the analytics-core
feature.

The above exception was solved  by deleting the above (asm-all) dependency
on the pack.

I wonder why this dependency is causing the synapse failure ?. Any thoughts
on this would be helpful.

[1]
https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml
 [2] https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml


Thanks
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayyoob@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>


[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi All,</div>When we install DAS features to CDMF(This already \
have the APIM features), found a weird fatal exception which failed to start the \
synapse.<div><br></div><div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">[2015-09-30 18:23:51,439]   \
INFO {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -   Starting \
ESB...</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">[2015-09-30 18:23:51,459]   \
INFO {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -   Initializing \
Apache Synapse...</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">[2015-09-30 18:23:51,474] \
FATAL {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -   Failed to \
initialize ESB due to a fatal error</font></div><div><font face="times new roman, \
serif" style="background-color:rgb(255,255,255)" \
color="#0000ff">java.lang.VerifyError: Bad type on operand \
stack</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">Exception \
Details:</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">   \
Location:</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">      \
org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection; \
@289: invokevirtual</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">   \
Reason:</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">      Type \
&#39;java/lang/Object&#39; (current frame, stack[0]) is not assignable to \
&#39;java/net/URLConnection&#39;</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">   Current \
Frame:</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">      bci: \
@289</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">      flags: { \
}</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">      locals: { \
&#39;java/net/URL&#39;, &#39;java/lang/Object&#39;, &#39;java/util/Properties&#39;, \
&#39;java/lang/String&#39;, &#39;java/lang/String&#39;, &#39;java/util/List&#39;, \
&#39;java/lang/String&#39;, &#39;java/lang/String&#39;, &#39;java/lang/String&#39;, \
&#39;[B&#39;, &#39;java/lang/String&#39; }</font></div><div><font face="times new \
roman, serif" style="background-color:rgb(255,255,255)" color="#0000ff">      stack: \
{ &#39;java/lang/Object&#39;, &#39;java/lang/String&#39;, &#39;java/lang/String&#39; \
}</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">   \
Bytecode:</font></div><div><font face="times new roman, serif" \
style="background-color:rgb(255,255,255)" color="#0000ff">      0000000: 2ac7 001a \
b200 01b9 0020 0100 9900 0db2</font></div><div><br></div><div><font face="arial, \
helvetica, sans-serif">So when digged through the cause of this exception, I was able \
re-produce this error by only installing the analytics-core feature[1]. Further I was \
able find that the below bundle  </font>caused this exception.</div><div><span \
style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">&lt;</span><span \
style="color:rgb(99,163,92);font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">bundleDef</span><span \
style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">&gt;org.wso2.orbit.org.ow2.asm:asm-all&lt;/</span><span \
style="color:rgb(99,163,92);font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">bundleDef</span><span \
style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">&gt;[2]</span></div><div><br></div><div>This \
can also be produced on the ESB 4.9.0 by installing the analytics-core feature.  \
</div><div><br></div><div>The above exception was solved   by deleting the above \
(asm-all) dependency on the pack.<br></div><div><br></div><div>I wonder why this \
dependency is causing the synapse failure ?. Any thoughts on this would be helpful.  \
</div><div><br></div><div><font face="arial, helvetica, sans-serif">[1] <a \
href="https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml" \
target="_blank">https://github.com/wso2/carbon-analytics/blob/master/features/analytic \
s-core/org.wso2.carbon.analytics.core.server.feature/pom.xml</a></font></div><div><font \
face="arial, helvetica, sans-serif">[2]  <a \
href="https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml" \
target="_blank">https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml</a></font></div><div><font \
face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, \
helvetica, sans-serif"><br></font></div><div>Thanks<br clear="all"><div><div><div \
dir="ltr"><b style="color:rgb(136,136,136)">Ayyoob Hamza</b><br \
style="color:rgb(136,136,136)"><div \
style="color:rgb(136,136,136)"><b><div></div></b></div><div \
style="color:rgb(136,136,136)"><b>Software Engineer</b></div><div \
style="color:rgb(136,136,136)">WSO2 Inc.;  <a href="http://wso2.com/" \
style="color:rgb(17,85,204)" target="_blank">http://wso2.com</a><br>email:  <a \
href="mailto:ayyoob@wso2.com" style="color:rgb(17,85,204)" \
target="_blank">ayyoob@wso2.com</a>  cell:  <a href="tel:%2B94%2077%207779495" \
value="+94777779495" style="color:rgb(17,85,204)" target="_blank">+94 77 \
1681010</a></div></div></div></div> </div></div></div>



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


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

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