Hi Tyrell and thank for the reply.

To disable the versioning i must do this

<staticConfiguration>
        <versioningProperties>false</versioningProperties>
        <versioningComments>false</versioningComments>
        <versioningTags>false</versioningTags>
        <versioningRatings>false</versioningRatings>
    </staticConfiguration>


isn't it?


________________________________________
De: [email protected] [[email protected]] En nom de Tyrell 
Perera [[email protected]]
Enviat el: dijous, 12 / agost / 2010 08:12
Per a: [email protected]
Tema: Re: [Carbon-dev] Status Error 500

On Wed, Aug 11, 2010 at 6:11 PM, Daniel Callejas Albalate 
<[email protected]<mailto:[email protected]>> wrote:
Well, we have a partial workaround. With one server in R/W mode and the other 
on Read Only, the Read only server doesn’t generate more error. With that in 
mind we mount a third server. Now two are in Read only mode, which act as 
front-end, and the last one are in R/W mode an isn’t accessible from outside 
and his only work is to update the DB. Now the two front-end server doesn’t 
generate more 500 errors, but now we have another issue, if we log in one of 
the front-end server and create a new tab or add a gadget this changes doesn’t 
persist only if we make the changes on the R/W server the  changes are 
available on the other server. There are some issue with the replication of 
this elements?


This is because of the read-only nodes. You can't use GS nodes with read only, 
they all have to be R/W. You might be able to fix the concurrent modification 
issue by disabling registry versioning.


Tyrell



Thanks!

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Daniel Callejas Albalate
Enviado el: miércoles, 11 de agosto de 2010 10:56

Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

With only one read/write server on the cluster the error persist. Could be 
deactivated the inserts into REG_CONTENT_HISTORY? If we can I think the error 
that we have could disappear.

[2010-08-11 08:43:46,292] ERROR - Concurrent Modification: Failed to put the 
content into history with the content id 7171. Duplicate entry '7171-0' for key 
'PRIMARY'
[2010-08-11 08:43:46,298] ERROR - Backend server error - could not get the 
unsigned_user gadget url set


De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Daniel Callejas Albalate
Enviado el: martes, 10 de agosto de 2010 15:00
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

Well currently we have deactivated the cluster and one server is off. Now the 
error only happen when we launch concurrent petitions with jmeter.
But the more strange is, we have an own certificate on the server configured on 
carbon.xml and mgt-transports.xml, if we leave the carbon.xml with the new 
certificate and in mgt-transports.xml the default certificate all runs well, 
but if we put both xml with the same certificate, the default or the other, the 
error appears.

Thanks

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Senaka Fernando
Enviado el: martes, 10 de agosto de 2010 14:38
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

Hi Daniel,

Looks like there are multiple read/write nodes in the cluster. You can fix this 
by editing the registry.xml files of the slave nodes of the cluster, and 
setting read-only to true.

Thanks,
Senaka.
On Tue, Aug 10, 2010 at 5:44 PM, Daniel Callejas Albalate 
<[email protected]<mailto:[email protected]>> wrote:
The Concurrent modification error throws when is trying to add a row to the 
table REG_CONTENT_HISTORY with the blob value

SELECT R.REG_NAME, R.REG_PATH_ID FROM REG_RESOURCE R, REG_PROPERTY P, 
REG_RESOURCE_PROPERTY RP, REG_PATH PA WHERE R.REG_VERSION=RP.REG_VERSION AND 
P.REG_NAME='unsignedUserGadget' AND P.REG_VALUE='true' AND 
P.REG_ID=RP.REG_PROPERTY_ID AND PA.REG_PATH_ID=R.REG_PATH_ID




De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Daniel Callejas Albalate
Enviado el: martes, 10 de agosto de 2010 12:20

Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

Related with that in the management console/logs we have several times this two 
errors

 [2010-08-10 10:12:27,098] ERROR - Concurrent Modification: Failed to put the 
content into history with the content id 4153. Duplicate entry '4153-0' for key 
'PRIMARY'


[2010-08-10 10:12:27,102] ERROR - Backend server error - could not get the 
unsigned_user gadget url set

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Daniel Callejas Albalate
Enviado el: martes, 10 de agosto de 2010 10:02
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

If we disable the cluster, the errors disappear.

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Daniel Callejas Albalate
Enviado el: martes, 10 de agosto de 2010 9:32
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

We have configured a MySql database configured, shared by the two Gadget 
Servers.

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Nuwan Bandara
Enviado el: martes, 10 de agosto de 2010 6:36
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

Hi,

Are you running the server in the default configuration ?, Is the server backed 
by default embedded H2 or have you configured a database when deploying.

Thanks & Regards
/Nuwan
On Mon, Aug 9, 2010 at 3:25 PM, Daniel Callejas Albalate 
<[email protected]<mailto:[email protected]>> wrote:
Another detail we have see now, when you have logged correctly into the server 
the error disappears.

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Daniel Callejas Albalate
Enviado el: lunes, 09 de agosto de 2010 11:46

Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500


Now we are getting that too on the gadgets, specially at the morning. The 
firsts time we call the application I quite frequent but when you have called 
the application many times the error became less frequent.

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Daniel Callejas Albalate
Enviado el: viernes, 06 de agosto de 2010 11:23
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

That is the fragment of code, but it’s strange the unique thing that could be 
null is gadgetUrls.length but then the error must be raise always and not only 
the firsts times you enter the application.

793                     for (int x = 0; x < gadgetUrls.length; x = x + 4) {
794                        out.print("<td width='250' nowrap='nowrap'>");
795                               for (int i = x; i < 4 * ((x / 4) + 1); i++) {
796                                        if (i >= gadgetUrls.length) break;
797                                               String[] nameUrlPair = 
gadgetUrls[i].split(",");



De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Afkham Azeez
Enviado el: viernes, 06 de agosto de 2010 10:29
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

Can you locate index_jsp.java in CARBON_HOME, and see what could possibly be 
null at line 796 in that file?

Azeez
On Fri, Aug 6, 2010 at 1:26 PM, Daniel Callejas Albalate 
<[email protected]<mailto:[email protected]>> wrote:
Yes

[2010-08-06 07:57:17,435] ERROR -  Servlet.service() for servlet bridgeservlet 
threw exception 
{org.apache.catalina.core.ContainerBase.[carbonEngine].[carbonhost].[/].[bridgeservlet]}
java.lang.NullPointerException
        at org.apache.jsp.dashboard.index_jsp._jspService(index_jsp.java:796)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:117)
        at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:55)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
        at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
        at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
        at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:154)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Unknown Source)
[2010-08-06 07:57:17,435] ERROR -  Servlet.service() for servlet bridgeservlet 
threw exception 
{org.apache.catalina.core.ContainerBase.[carbonEngine].[carbonhost].[/].[bridgeservlet]}
java.lang.NullPointerException
        at org.apache.jsp.dashboard.index_jsp._jspService(index_jsp.java:796)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:117)
        at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:55)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
        at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
        at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
        at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:154)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Unknown Source)

De: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] En 
nombre de Nuwan Bandara
Enviado el: viernes, 06 de agosto de 2010 9:52
Para: [email protected]<mailto:[email protected]>
Asunto: Re: [Carbon-dev] Status Error 500

Hi,

Do you get any exceptions in the server console ?

Regards
/Nuwan
On Fri, Aug 6, 2010 at 12:49 PM, Daniel Callejas Albalate 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I’m having a strange behaviour with a gadget server, after a long period of 
inactivity when someone acces to the server get a 500 status error, after 
refreshing the web several times the server begins to run normally. The server 
is running on Amazon EC2.

Any help?

Thank you!

HTTP Status 500 -
________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /dashboard/index.jsp:394

391:                                                             out.print("<td 
width='250' nowrap='nowrap'>");
392:                                                             for (int i = 
x; i < 4 * ((x / 4) + 1); i++) {
393:                                                                 if (i >= 
gadgetUrls.length) break;
394:                                                                 String[] 
nameUrlPair = gadgetUrls[i].split(",");
395:                                                 %>
396:
397:                                                 <input type="checkbox" 
name="checkgroup"


Stacktrace:
        
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.wso2.carbon.ui.JspServlet.service(JspServlet.java:117)
        org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:55)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
        
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
        
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
        
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:154)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
        org.apache.jsp.dashboard.index_jsp._jspService(index_jsp.java:796)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.wso2.carbon.ui.JspServlet.service(JspServlet.java:117)
        org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:55)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
        
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
        
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
        
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:154)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




Att,
Daniel Callejas Albalate
________________________________________________
NexTReT - eBusiness Solutions http://www.nextret.net<http://www.nextret.net/>
Passeig Bonanova, 9. 08022 Barcelona
Calle Fortuny, 3 28010 Madrid
Tf. (+34) 932 541 530 Fx. (+34) 934 175 062


_______________________________________________
Carbon-dev mailing list
[email protected]<mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev



--
Nuwan Bandara
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware

http://www.nuwanbando.com

_______________________________________________
Carbon-dev mailing list
[email protected]<mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev



--
Afkham Azeez
Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, Lean . 
Enterprise . Middleware
Member; Apache Software Foundation; http://www.apache.org/
email: [email protected]<mailto:[email protected]> cell: +94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez

_______________________________________________
Carbon-dev mailing list
[email protected]<mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev



--
Nuwan Bandara
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware

http://www.nuwanbando.com

_______________________________________________
Carbon-dev mailing list
[email protected]<mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev



--
Senaka Fernando
Associate Technical Lead
WSO2 Inc.
E-mail: senaka AT wso2.com<http://wso2.com>;  Mobile: +94 77 322 1818

http://www.wso2.com/ - "Lean . Enterprise . Middleware"

_______________________________________________
Carbon-dev mailing list
[email protected]<mailto:[email protected]>
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




--
Tyrell Perera
Product Manager - WSO2 Mashup Server, WSO2 Gadget Server

WSO2, Inc.; http://www.wso2.com/
"Lean Enterprise Middleware"

http://www.tyrell.co
http://www.linkedin.com/in/tyrell
http://twitter.com/tyrellperera


_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to