WSO2 API Manager on PostgreSQL raising exception when user logging to a store -
i have wso2 api manager v1.4.0 configured use postgresql.
after signing up, users can't login store , exception raised in console. tried logging on default admin account.
the error not occur when using mysql dbms or when logging in publisher web ui.
how fix error?
the full stack trace:
[2013-08-08 15:47:59,974] error - jdbcuserstoremanager cannot change transaction isolation level in middle of transaction. org.postgresql.util.psqlexception: cannot change transaction isolation level in middle of transaction. @ org.postgresql.jdbc2.abstractjdbc2connection.settransactionisolation(abstractjdbc2connection.java:819) (...) [2013-08-08 15:47:59,980] warn - carbonauthenticationutil failed administrator login attempt 'admin[-1234]' @ [2013-08-08 15:47:59,980+0200] [2013-08-08 15:47:59,981] warn - authenticationhandler illegal access attempt @ [2013-08-08 15:47:59,0981] ip address 185.12.7.138 while trying authenticate access service useradmin [2013-08-08 15:47:59,982] error - audit_log illegal access attempt @ [2013-08-08 15:47:59,0981] ip address 185.12.7.138 while trying authenticate access service useradmin [2013-08-08 15:47:59,983] error - axisengine access denied. authentication failed - system error occurred. please check server logs more details. org.apache.axis2.axisfault: access denied. authentication failed - system error occurred. please check server logs more details. @ org.wso2.carbon.server.admin.module.handler.authenticationhandler.authenticate(authenticationhandler.java:103) (...) [2013-08-08 15:47:59,990] error - apistorehostobject error occurred while checking multiple user stores [2013-08-08 15:48:00,045] info - carbonauthenticationutil 'admin@carbon.super [-1234]' logged in @ [2013-08-08 15:48:00,044+0200] [2013-08-08 15:48:00,124] error - apimgtdao failed subscriber :admin org.postgresql.util.psqlexception: error: relation "am_subscriber" not exist position: 97 @ org.postgresql.core.v3.queryexecutorimpl.receiveerrorresponse(queryexecutorimpl.java:2101) (...) [2013-08-08 15:47:59,978] error - jdbcuserstoremanager using sql : null [2013-08-08 15:47:59,978] error - basicaccessauthenticator unable userstoremanager authentication. user - admin org.wso2.carbon.user.core.userstoreexception: authentication failure @ org.wso2.carbon.user.core.jdbc.jdbcuserstoremanager.doauthenticate(jdbcuserstoremanager.java:810) (...) [2013-08-08 15:48:00,129] error - apistorehostobject error while getting subscriber org.wso2.carbon.apimgt.api.apimanagementexception: failed subscriber @ org.wso2.carbon.apimgt.impl.abstractapimanager.handleexception(abstractapimanager.java:621) (...) caused by: org.wso2.carbon.apimgt.api.apimanagementexception: failed subscriber :admin @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.handleexception(apimgtdao.java:3911) @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.getsubscriber(apimgtdao.java:917) @ org.wso2.carbon.apimgt.impl.apiconsumerimpl.getsubscriber(apiconsumerimpl.java:87) ... 52 more caused by: org.postgresql.util.psqlexception: error: relation "am_subscriber" not exist position: 97 @ org.postgresql.core.v3.queryexecutorimpl.receiveerrorresponse(queryexecutorimpl.java:2101) (...) [2013-08-08 15:48:00,133] error - rhinoengine org.mozilla.javascript.wrappedexception: wrapped org.wso2.carbon.apimgt.api.apimanagementexception: error while getting subscriber (/store/modules/user/ login.jag#30) [2013-08-08 15:48:00,134] error - webappmanager org.mozilla.javascript.wrappedexception: wrapped org.wso2.carbon.apimgt.api.apimanagementexception: error while getting subscriber (/store/modules/use r/login.jag#30) org.jaggeryjs.scriptengine.exceptions.scriptexception: org.mozilla.javascript.wrappedexception: wrapped org.wso2.carbon.apimgt.api.apimanagementexception: error while getting subscriber (/store/modu les/user/login.jag#30) @ org.jaggeryjs.scriptengine.engine.rhinoengine.execscript(rhinoengine.java:446) (...) caused by: org.mozilla.javascript.wrappedexception: wrapped org.wso2.carbon.apimgt.api.apimanagementexception: error while getting subscriber (/store/modules/user/login.jag#30) @ org.mozilla.javascript.context.throwasscriptruntimeex(context.java:1654) (...) caused by: org.wso2.carbon.apimgt.api.apimanagementexception: error while getting subscriber @ org.wso2.carbon.apimgt.hostobjects.apistorehostobject.handleexception(apistorehostobject.java:134) (...) caused by: org.wso2.carbon.apimgt.api.apimanagementexception: failed subscriber @ org.wso2.carbon.apimgt.impl.abstractapimanager.handleexception(abstractapimanager.java:621) (...) caused by: org.wso2.carbon.apimgt.api.apimanagementexception: failed subscriber :admin @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.handleexception(apimgtdao.java:3911) (...) caused by: org.postgresql.util.psqlexception: error: relation "am_subscriber" not exist position: 97 @ org.postgresql.core.v3.queryexecutorimpl.receiveerrorresponse(queryexecutorimpl.java:2101) (...) [2013-08-08 15:48:00,202] error - rhinoengine org.mozilla.javascript.ecmaerror: typeerror: cannot read property "h1" undefined (/store/site/themes/fancy/templates/errors/template.jag#18) [2013-08-08 15:48:00,203] error - webappmanager org.mozilla.javascript.ecmaerror: typeerror: cannot read property "h1" undefined (/store/site/themes/fancy/templates/errors/template.jag#18) org.jaggeryjs.scriptengine.exceptions.scriptexception: org.mozilla.javascript.ecmaerror: typeerror: cannot read property "h1" undefined (/store/site/themes/fancy/templates/errors/template.jag#1 8) @ org.jaggeryjs.scriptengine.engine.rhinoengine.execscript(rhinoengine.java:446) (...)
this issue fixed in later versions of api manager have add the,
<defaultautocommit>true</defaultautocommit>
property datasource configuration.
also, remove element,
<validationquery>select 1</validationquery>
from configuration.
this mentioned in https://docs.wso2.com/display/is510/setting+up+postgresql
sample below.
<datasource> <name>wso2am_db</name> <description>the datasource used api manager database</description> <jndiconfig> <name>jdbc/wso2am_db</name> </jndiconfig> <definition type="rdbms"> <configuration> <url>jdbc:postgresql://localhost:5432/amdb</url> <username>sdpuser</username> <password>sdpuser</password> <defaultautocommit>true</defaultautocommit> <driverclassname>org.postgresql.driver</driverclassname> <maxactive>50</maxactive> <maxwait>60000</maxwait> <testonborrow>true</testonborrow> <validationinterval>30000</validationinterval> </configuration> </definition> </datasource>
Comments
Post a Comment