Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Good news and Bad news.
The good news is that you seem to have a database (alfrescoreporting) and
connection.
The bad news seems that you have no tables. What do you see when you open an
mysql connection to the database and ask:
show tables;
My bet is that there are no tables (yet). The solution is you need to manually
create the tables by a script. In the Data Dictionary/Scripts/reporting space
is a script createTables.js. If you select a details page, select Run Action,
select Execute Script, select createTables.js, you create the tables needed for
the tool to actually run. It creates the tables as defined in
alfresco-business-reporting.lib.js If your tables/queries are different than
mine: feel free to do so.
I hope this helps you further...
Tjarda
Original comment by tpee...@gmail.com
on 25 Sep 2012 at 1:12
For issue completeness...
You sent me the following log of Alfresco starting up (failing):
----
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'alfrescoReportingDatabaseHelper' defined in URL
[jar:file:/C:/apache-tomcat-6.0.35/webapps/alfresco/WEB-INF/lib/alfresco-busines
s-reporting-0.6.5.jar!/alfresco/extension/reporting-beans-context.xml]:
Invocation of init method failed; nested exception is
java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NullPointerException
at org.alfresco.reporting.DatabaseHelperBean.replaceAllKeysInValue(Unknown Source)
at org.alfresco.reporting.DatabaseHelperBean.getConnection(Unknown Source)
at org.alfresco.reporting.DatabaseHelperBean.init(Unknown Source)
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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 37 more
-----
It complains about the method replaceAllKeysInValue in the DatabaseHelperBean.
This method resolves any placeholders (like ${db.name} in the values of the
key-value pairs in alfresco-global.properties
I think you don't have all your properties in the alfresco-global.properties:
http://code.google.com/p/alfresco-business-reporting/wiki/HowToInstall
(reporting.db.url, reporting.db.driver, reporting.db.username,
reporting.db.password)
It is not uncommon to have the same driver for Alfresco's database as well as
the reporting database. (However, it makes sense to have a different
company-wide reporting solution on a different database platform too...)
Let me know if this helps you further
Original comment by tpee...@gmail.com
on 29 Sep 2012 at 7:55
Closing comment
Original comment by tjarda.p...@incentro.com
on 13 Mar 2013 at 9:56
Original issue reported on code.google.com by
bsabat...@gmail.com
on 31 Jul 2012 at 11:46