Hi Arun,
Thanks for replying - I've had a look at the logs (after a reboot of the server) and there are some ERROR events which are repeated quite frequently. I think I can see some other errors that are generated when you click on Storage Views, or Update.
I've attached the log for completeness but here are entries which might be relevant:
2011-08-29 11:29:43,405 [http-127.0.0.1-8080-1] ERROR com.vmware.vim.sms.ServiceImpl - Operation QueryList failed
com.vmware.vim.sms.fault.ServiceNotInitialized
at com.vmware.vim.sms.ServiceImpl.QueryList(Unknown Source)
at com.vmware.vim.sms.api.SmServiceMessageReceiverInOut.invokeBusinessLogic(Unknown Source)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.vmware.vim.sms.HTTPStatusCodeFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.vmware.vim.sms.HTTPStatusCodeFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
2011-08-29 11:31:15,541 [pool-37-thread-3] ERROR com.vmware.vim.sms.provider.VcProviderImpl - PopulateVmFilesTask Failed : com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/vmware/vim/sms/data/xml/CacheDbQuerySqlMap.xml.
--- The error occurred while applying a parameter map.
--- Check the insert_vmFile-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: ENTITYID_VMFILE_INDEX_9 ON PUBLIC.VMFILE(ENTITYID) [23001-64]
2011-08-29 11:31:15,541 [Thread-9] ERROR com.vmware.vim.sms.provider.VcProviderImpl - Failed populating service cache
java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/vmware/vim/sms/data/xml/CacheDbQuerySqlMap.xml.
--- The error occurred while applying a parameter map.
--- Check the insert_vmFile-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: ENTITYID_VMFILE_INDEX_9 ON PUBLIC.VMFILE(ENTITYID) [23001-64]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at com.vmware.vim.sms.provider.VcProviderImpl.waitForTasks(Unknown Source)
at com.vmware.vim.sms.provider.VcProviderImpl.sync(Unknown Source)
at com.vmware.vim.sms.ServiceImpl.syncServiceCache(Unknown Source)
at com.vmware.vim.sms.ServiceImpl.init(Unknown Source)
at com.vmware.vim.sms.ServiceImpl.access$100(Unknown Source)
at com.vmware.vim.sms.ServiceImpl$ServiceInitializer.run(Unknown Source)
Caused by: java.lang.RuntimeException: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/vmware/vim/sms/data/xml/CacheDbQuerySqlMap.xml.
--- The error occurred while applying a parameter map.
--- Check the insert_vmFile-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: ENTITYID_VMFILE_INDEX_9 ON PUBLIC.VMFILE(ENTITYID) [23001-64]
at com.vmware.vim.sms.provider.VcProviderImpl$PopulateVmFilesTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/vmware/vim/sms/data/xml/CacheDbQuerySqlMap.xml.
--- The error occurred while applying a parameter map.
--- Check the insert_vmFile-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: ENTITYID_VMFILE_INDEX_9 ON PUBLIC.VMFILE(ENTITYID) [23001-64]
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:91)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:447)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:82)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:59)
at com.vmware.vim.sms.provider.VcProviderImpl.populateVmFiles(Unknown Source)
at com.vmware.vim.sms.provider.VcProviderImpl.access$000(Unknown Source)
... 7 more
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: ENTITYID_VMFILE_INDEX_9 ON PUBLIC.VMFILE(ENTITYID) [23001-64]
at org.h2.message.Message.getSQLException(Message.java:89)
at org.h2.message.Message.getSQLException(Message.java:93)
at org.h2.message.Message.getSQLException(Message.java:71)
at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:68)
at org.h2.index.TreeIndex.add(TreeIndex.java:55)
at org.h2.table.TableData.addRow(TableData.java:89)
at org.h2.command.dml.Insert.update(Insert.java:113)
at org.h2.command.CommandContainer.update(CommandContainer.java:68)
at org.h2.command.Command.executeUpdate(Command.java:125)
at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:161)
at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeUpdate(SqlExecutor.java:81)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteUpdate(GeneralStatement.java:200)
at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:78)
... 12 more
2011-08-29 11:31:15,543 [Thread-9] ERROR com.vmware.vim.sms.ServiceImpl - Unknown exception encountered during service initialization
com.vmware.vim.sms.fault.ProviderSyncFault
at com.vmware.vim.sms.provider.VcProviderImpl.sync(Unknown Source)
at com.vmware.vim.sms.ServiceImpl.syncServiceCache(Unknown Source)
at com.vmware.vim.sms.ServiceImpl.init(Unknown Source)
at com.vmware.vim.sms.ServiceImpl.access$100(Unknown Source)
at com.vmware.vim.sms.ServiceImpl$ServiceInitializer.run(Unknown Source)
2011-08-29 11:31:15,543 [Thread-9] INFO com.vmware.vim.sms.ServiceImpl$ServiceInitializer - Retry #10 in 30 seconds
I see those errors relating to primary keys and the other ones also seem to relate to the database, but I don't really know how I should go about resolving them. I've got a pretty standard configuration and haven't done anything to the database myself.
I don't suppose you have any ideas on how to go about resolving these errors?
Regards,
Michael