| Author |
Message |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 20/07/2010 08:39:02
|
madhur
Joined: 19/07/2010 10:23:12
Messages: 2
Offline
|
I'm using source code version 1.6.0. when i ran the command "mvn install", i got the below stack trace.
20 Jul 2010 12:21:14,218 ERROR [main] marketcetera.trade.FactoryImpl (FactoryImp
l.java:26 - Unable to generate orderIDs to assign to outgoing orders. Contact
product support.
org.marketcetera.core.NoMoreIDsException: java.lang.IllegalArgumentException: te
st
at org.marketcetera.trade.IDTest$4.getNext(IDTest.java:13
at org.marketcetera.trade.FactoryImpl.getNextOrderID(FactoryImpl.java:26
2)
at org.marketcetera.trade.FactoryImpl.assignOrderID(FactoryImpl.java:239
)
at org.marketcetera.trade.FactoryImpl.createOrderSingle(FactoryImpl.java
:30)
at org.marketcetera.trade.IDTest$5.run(IDTest.java:144)
at org.marketcetera.module.ExpectedFailure.doRun(ExpectedFailure.java:18
5)
at org.marketcetera.module.ExpectedFailure.<init>(ExpectedFailure.java:1
65)
at org.marketcetera.module.ExpectedFailure.<init>(ExpectedFailure.java:1
49)
at org.marketcetera.trade.IDTest$5.<init>(IDTest.java:142)
at org.marketcetera.trade.IDTest.orderIDFactory(IDTest.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
Method.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal
lable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe
thod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet
hod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:2
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:2
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:165)
at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:289)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:1005)
Caused by: java.lang.IllegalArgumentException: test
... 38 more
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running org.marketcetera.event.BidEventTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.329 sec
Running org.marketcetera.persist.MessagesTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Results :
Failed tests:
Tests run: 846, Failures: 1, Errors: 0, Skipped: 8
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to F:\Marketcetera\1.6.0\source\core\target\surefire-reports for th
e individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17 minutes 39 seconds
[INFO] Finished at: Tue Jul 20 12:21:18 GST 2010
[INFO] Final Memory: 35M/85M
[INFO] ------------------------------------------------------------------------
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 20/07/2010 14:02:46
|
colin
Joined: 23/03/2009 21:35:49
Messages: 406
Offline
|
This error is seen if the database wasn't set up properly or isn't running. Doublecheck that you've done this.
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 16/12/2010 11:24:29
|
zhtrader
Joined: 15/12/2010 19:36:51
Messages: 8
Offline
|
Hello Colin,
could you maybe elaborate on: 'This error is seen if the database wasn't set up properly or isn't running. Doublecheck that you've done this.'
I get the same failure as madhur. I have followed the mysql setup on the http://www.marketcetera.org/confluence/display/MDN/Building+Marketcetera+Platform page
i.e. I have set up the my.ini file to include the following:
[mysqld]
...
port = 3306
default-character-set = utf8
lc_time_names = en_US
default-time-zone = +0:00
collation_server = utf8_general_ci
default-storage-engine = INNODB
and I have run the following:
CREATE DATABASE `marketcetera`;
create user marketcetera identified by 'marketcetera';
grant all on marketcetera.* to 'marketcetera';
I am running the mvn install on a windows vista machine using cygwin.
I ran the mvn install on a fresh database (i.e. after an earlier failed attempt to build I dropped and recreated the db). after the mvn install the database has this one table added during the mvn install:
mysql> use marketcetera
Database changed
mysql> show tables;
+------------------------+
| Tables_in_marketcetera |
+------------------------+
| id_repository |
+------------------------+
1 row in set (0.00 sec)
thanks for your help
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 16/12/2010 11:31:26
|
zhtrader
Joined: 15/12/2010 19:36:51
Messages: 8
Offline
|
just a quick addition to my previous note, maybe this is the problem.
from the surefire report org.marketcetera.persist.EnvironmentConfigurationTest:
-------------------------------------------------------------------------------
Test set: org.marketcetera.persist.EnvironmentConfigurationTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 19.07 sec <<< FAILURE!
mysql(org.marketcetera.persist.EnvironmentConfigurationTest) Time elapsed: 0.156 sec <<< FAILURE!
java.lang.AssertionError: Unexpected MySQL version: 5.1.30-community
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.marketcetera.persist.EnvironmentConfigurationTest.mysql(EnvironmentConfigurationTest.java:70)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:2
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:2
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
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.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
do I HAVE to work with mysql 5.0.51? are no other versions allowed?
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 16/12/2010 15:34:53
|
colin
Joined: 23/03/2009 21:35:49
Messages: 406
Offline
|
That's the version we're sure works (for now). We'll be updating that in the future, but that's what it takes to get the environment test to pass.
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 16/12/2010 18:53:47
|
zhtrader
Joined: 15/12/2010 19:36:51
Messages: 8
Offline
|
installing mysql 5.0.51 gets me a lot further in the build process, thanks. I will post a separate issue on running out of memory way further down in the build process...
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 16/12/2010 18:54:45
|
colin
Joined: 23/03/2009 21:35:49
Messages: 406
Offline
|
Make sure you set MVN_OPTIONS as specified in the docs (for OOM problem).
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 16/12/2010 21:15:00
|
zhtrader
Joined: 15/12/2010 19:36:51
Messages: 8
Offline
|
not sure which docs specification and/or OOM you are referring to,
but with the MAVEN_OPTS environment variable set to "-Xms256m -Xmx512m -XX ermSize=256m -XX:MaxPermSize=512m" the build was succesful!
before, when I did not set the Perm Gen I got an java.lang.OutOfMemoryError: PermGen space failure
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 16/12/2010 21:16:12
|
colin
Joined: 23/03/2009 21:35:49
Messages: 406
Offline
|
Yup, that's what I meant.
|
|
|
 |
|
|