[Carbon-dev] [jira] Commented: (CARBON-3114) Unable to setup registry with manually created derby DB.

Krishantha Samaraweera (JIRA) jira at wso2.org
Sun Feb 1 23:57:05 PST 2009


    [ https://wso2.org/jira/browse/CARBON-3114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24321#action_24321 ] 

Krishantha Samaraweera commented on CARBON-3114:
------------------------------------------------

Exception.
========


[2009-02-02 13:05:17,953] ERROR -  Failed to add comment comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation.comment input filed charchter length validation. to resource 0d325671-3ccc-494c-8cc6-84abb023dc3c. A truncation error was encountered trying to shrink VARCHAR 'comment input filed charchter length validation.comment inpu&' to length 500. {org.wso2.carbon.registry.core.jdbc.dao.CommentsDAO}
java.sql.SQLDataException: A truncation error was encountered trying to shrink VARCHAR 'comment input filed charchter length validation.comment inpu&' to length 500.
        at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
        at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
        at org.apache.derby.client.am.PreparedStatement.executeUpdate(Unknown Source)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
        at org.wso2.carbon.registry.core.jdbc.dao.CommentsDAO.addComment(CommentsDAO.java:52)
        at org.wso2.carbon.registry.core.jdbc.BasicRegistry.addComment(BasicRegistry.java:703)
        at org.wso2.carbon.registry.core.jdbc.AtomicRegistry.addComment(AtomicRegistry.java:708)
        at org.wso2.carbon.registry.core.jdbc.JDBCRegistry.addComment(JDBCRegistry.java:632)
        at org.wso2.carbon.registry.core.session.UserRegistry.addComment(UserRegistry.java:480)
        at org.wso2.carbon.registry.mgt.ui.info.services.InfoService.addComment(InfoService.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:198)
        at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:63)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        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:116)
        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(Thread.java:619)
Caused by: org.apache.derby.client.am.SqlException: A truncation error was encountered trying to shrink VARCHAR 'comment input filed charchter length validation.comment inpu&' to length 500.
        at org.apache.derby.client.am.Statement.completeExecute(Unknown Source)
        at org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown Source)
        at org.apache.derby.client.net.NetStatementReply.readExecute(Unknown Source)
        at org.apache.derby.client.net.StatementReply.readExecute(Unknown Source)
        at org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown Source)
        at org.apache.derby.client.am.PreparedStatement.readExecute(Unknown Source)
        at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown Source)
        at org.apache.derby.client.am.PreparedStatement.executeUpdateX(Unknown Source)
        ... 40 more


> Unable to setup registry with manually created derby DB.
> --------------------------------------------------------
>
>                 Key: CARBON-3114
>                 URL: https://wso2.org/jira/browse/CARBON-3114
>             Project: WSO2 Carbon
>          Issue Type: Bug
>          Components: Registry
>            Reporter: Krishantha Samaraweera
>            Assignee: Chathura Ekanayake
>
> How to reproduce:
> ============
> 1. Create the derby DB with connect 'jdbc:derby://localhost:1527/derbyDB11;username=wso2carbon;password=wso2carbon;create=true'; in a IJ console.
> 2. run the registry-derby.sql and um-derby.sql scripts which are under dbscripts folder.
> 3. Configure registry xml and user mgt xml to the newly created db.
> 4. Put derby.jar, derbynet.jar and derbyclient.jar into /lib/extensions.
> 5. start the server with sh wso2server.sh command.
> I got the following message on server startup.
> [2009-02-01 10:22:25,560] ERROR -  WSO2 Registry is not available {org.wso2.carbon.utils.ServerConfigurator}
> [2009-02-01 10:22:25,564] FATAL -  Cannot start WSO2 Registry {org.wso2.carbon.core.ServerManager}
> org.apache.axis2.deployment.DeploymentException: WSO2 Registry is not available
>         at org.wso2.carbon.utils.ServerConfigurator.populateAxisConfiguration(ServerConfigurator.java:236)
>         at org.wso2.carbon.utils.ServerConfigurator.getAxisConfiguration(ServerConfigurator.java:166)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:65)
>         at org.wso2.carbon.utils.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:82)
>         at org.wso2.carbon.core.ServerManager.start(ServerManager.java:131)
>         at org.wso2.carbon.core.StartupServlet.start(StartupServlet.java:247)
>         at org.wso2.carbon.core.StartupServlet.init(StartupServlet.java:189)
>         at org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:64)
>         at org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:142)
>         at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:50)
>         at org.wso2.carbon.core.internal.Activator.start(Activator.java:58)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
>         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>         at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
>         at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
>         at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
>         at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)
> org.wso2.carbon.utils.ServerException: WSO2 Registry startup failed.
>         at org.wso2.carbon.core.StartupServlet.start(StartupServlet.java:278)
>         at org.wso2.carbon.core.StartupServlet.init(StartupServlet.java:189)
>         at org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:64)
>         at org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:142)
>         at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:50)
>         at org.wso2.carbon.core.internal.Activator.start(Activator.java:58)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
>         at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
>         at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
>         at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
>         at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
>         at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)
> Caused by: org.wso2.carbon.utils.ServerException: Cannot start WSO2 Registry
>         at org.wso2.carbon.core.ServerManager.start(ServerManager.java:161)
>         at org.wso2.carbon.core.StartupServlet.start(StartupServlet.java:247)
>         ... 18 more
> Caused by: org.apache.axis2.deployment.DeploymentException: WSO2 Registry is not available
>         at org.wso2.carbon.utils.ServerConfigurator.populateAxisConfiguration(ServerConfigurator.java:236)
>         at org.wso2.carbon.utils.ServerConfigurator.getAxisConfiguration(ServerConfigurator.java:166)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:65)
>         at org.wso2.carbon.utils.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:82)
>         at org.wso2.carbon.core.ServerManager.start(ServerManager.java:131)
>         ... 19 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the Carbon-dev mailing list