[ https://issues.apache.org/jira/browse/EAGLE-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15581491#comment-15581491 ]
ASF GitHub Bot commented on EAGLE-628: -------------------------------------- GitHub user wujinhu opened a pull request: https://github.com/apache/incubator-eagle/pull/520 [EAGLE-628] Fix jdbc metadata bugs https://issues.apache.org/jira/browse/EAGLE-628 You can merge this pull request into a Git repository by running: $ git pull https://github.com/wujinhu/incubator-eagle master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-eagle/pull/520.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #520 ---- commit bab5e1742c32375eced353a49432d3b0a986e297 Author: wujinhu <wujinhu...@126.com> Date: 2016-10-17T07:20:33Z Fix jdbc metadata bugs ---- > Fix jdbc metadata bugs > ---------------------- > > Key: EAGLE-628 > URL: https://issues.apache.org/jira/browse/EAGLE-628 > Project: Eagle > Issue Type: Bug > Affects Versions: v0.5.0 > Reporter: wujinhu > Assignee: wujinhu > Fix For: v0.5.0 > > > 1. when Site Id/Display Name/Description is missing, it will fail to create > site(some flelds of sql are missing). > 2. configuration should be saved in applicationentity > 3. enable update application entity > 4. fix application descriptor of applicationEntity: fetch from > ApplicationProviderService > 5. delete site throw exception > Caused by: java.sql.SQLException: Parameter index out of range (2 > number of > parameters, which is 1). > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996) > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935) > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924) > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870) > at > com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3391) > at > com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3376) > at > com.mysql.jdbc.PreparedStatement.setString(PreparedStatement.java:4102) > at > org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:135) > at > org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:135) > at > org.apache.eagle.metadata.store.jdbc.service.orm.SiteEntityToRelation.accept(SiteEntityToRelation.java:56) > at > org.apache.eagle.metadata.store.jdbc.service.orm.SiteEntityToRelation.accept(SiteEntityToRelation.java:29) > at > org.apache.eagle.metadata.store.jdbc.JDBCMetadataMetadataStoreServiceImpl.update(JDBCMetadataMetadataStoreServiceImpl.java:216) > at org.apache.eagle.metadata.store.jdbc.service.SiteEnt -- This message was sent by Atlassian JIRA (v6.3.4#6332)