cancel
Showing results for 
Search instead for 
Did you mean: 

DemoComponentTest fails on SDK 2.2.0 all-in-one

sorrentinov
Champ in-the-making
Champ in-the-making
Hi All,

I've setup my development environment from all-in-one configuration in Windows.
When execute mvn install I receive an error on TESTS:


2016-05-06 15:12:45,159 WARN  [org.alfresco.util.RuntimeSystemPropertiesSetter] [main] Could not find alfresco-jmxrmi.password on classpath
2016-05-06 15:12:45,251 INFO  [org.alfresco.repo.admin] [main] Using database URL 'jdbc:h2:C:\Projects\TEST\AlfrescoProjects\alfresco-5.1-extension\kon-connector/alf_data_dev/h2_data/alf_dev;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0' with user 'alfresco'.
2016-05-06 15:13:15,030 WARN  [org.springframework.context.support.GenericApplicationContext] [main] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.CustomEditorConfigurer#0' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'customPropertyEditorRegistrar' while setting bean property 'propertyEditorRegistrars' with key [0]; ……..
Caused by: org.h2.jdbc.JdbcSQLException: Exception opening port "H2 TCP Server (tcp://192.168.99.1:51226)" (port may be in use), cause: "timeout; please check your network configuration, specially the file /etc/hosts" [90061-190]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
   at org.h2.message.DbException.get(DbException.java:179)
   at org.h2.tools.Server.start(Server.java:498)
   at org.h2.engine.Database.startServer(Database.java:783)
   at org.h2.engine.Database.open(Database.java:639)
   at org.h2.engine.Database.openDatabase(Database.java:269)
   at org.h2.engine.Database.<init>(Database.java:263)
   at org.h2.engine.Engine.openSession(Engine.java:65)
   at org.h2.engine.Engine.openSession(Engine.java:175)
   at org.h2.engine.Engine.createSessionAndValidate(Engine.java:153)
   at org.h2.engine.Engine.createSession(Engine.java:136)
   at org.h2.engine.Engine.createSession(Engine.java:28)
   at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:349)
   at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107)
   at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91)
   at org.h2.Driver.connect(Driver.java:72)
   at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
   at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
   at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
   at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
   … 158 more


Have you an idea of problem?
During the test I see that the port is open and telnet works fine

Regards
Vincenzo
2 REPLIES 2

jneeve
Champ in-the-making
Champ in-the-making
Can you telnet to the port when Alfresco is shutdown? If so, I would assume something is still running (previous startup?)

I assumed you've restarted windows, and don't have another copy of Alfresco being started up automatically?

You could run netstat and verify what ports are open…

sorrentinov
Champ in-the-making
Champ in-the-making
>> Can you telnet to the port when Alfresco is shutdown? Yes

>> I assumed you've restarted windows, and don't have another copy of Alfresco being started up automatically? Yes

I've tried to run netstat and the H2 port (the number of port is dynamic) is listening only when the maven process is still running
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.