Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale error: Supplied territory description 'english' is invalid when the plugin starts Derby DB #3

Open
dreadk2002 opened this issue May 22, 2015 · 0 comments

Comments

@dreadk2002
Copy link

Hi I have an error that seems to be from DerbyDB:

Analyzing test results with ProjectResultPublisher...
16:53:45 ERROR: Publisher com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher aborted due to exception
16:53:45 java.io.IOException: java.sql.SQLException: Failed to create database '/root/projects_hudson/_hudson_home/jobs/Project/JUnitDB', see the next exception for details.
16:53:45 at com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher$ParseResultCallable.invoke(ProjectResultPublisher.java:259)
16:53:45 at com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher$ParseResultCallable.invoke(ProjectResultPublisher.java:174)
16:53:45 at hudson.FilePath.act(FilePath.java:981)
16:53:45 at hudson.FilePath.act(FilePath.java:959)
16:53:45 at com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher.perform(ProjectResultPublisher.java:122)
16:53:45 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
16:53:45 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
16:53:45 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
16:53:45 at hudson.model.Build$BuildExecution.post2(Build.java:183)
16:53:45 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
16:53:45 at hudson.model.Run.execute(Run.java:1784)
16:53:45 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
16:53:45 at hudson.model.ResourceController.execute(ResourceController.java:89)
16:53:45 at hudson.model.Executor.run(Executor.java:240)
16:53:45 Caused by: java.sql.SQLException: Failed to create database '/root/projects_hudson/_hudson_home/jobs/Project/JUnitDB', see the next exception for details.
16:53:45 at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.EmbedConnection.(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.EmbedConnection30.(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.EmbedConnection40.(Unknown Source)
16:53:45 at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
16:53:45 at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
16:53:45 at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
16:53:45 at java.sql.DriverManager.getConnection(DriverManager.java:664)
16:53:45 at java.sql.DriverManager.getConnection(DriverManager.java:270)
16:53:45 at com.cwctravel.hudson.plugins.multimoduletests.junit.db.JUnitDB.getConnection(JUnitDB.java:661)
16:53:45 at com.cwctravel.hudson.plugins.multimoduletests.junit.db.JUnitDB.initDB(JUnitDB.java:667)
16:53:45 at com.cwctravel.hudson.plugins.multimoduletests.junit.db.JUnitDB.(JUnitDB.java:768)
16:53:45 at com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher$ParseResultCallable.invoke(ProjectResultPublisher.java:231)
16:53:45 ... 13 more
16:53:45 Caused by: java.sql.SQLException: Failed to create database '/root/projects_hudson/_hudson_home/jobs/Project/JUnitDB', see the next exception for details.
16:53:45 at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
16:53:45 ... 29 more
16:53:45 Caused by: java.sql.SQLException: Supplied territory description 'english' is invalid, expecting ln[_CO[_variant]]
16:53:45 ln=lower-case two-letter ISO-639 language code, CO=upper-case two-letter ISO-3166 country codes, see java.util.Locale.
16:53:45 at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
16:53:45 at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
16:53:45 ... 26 more
16:53:45 Caused by: ERROR XBM0X: Supplied territory description 'english' is invalid, expecting ln[_CO[_variant]]
16:53:45 ln=lower-case two-letter ISO-639 language code, CO=upper-case two-letter ISO-3166 country codes, see java.util.Locale.
16:53:45 at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
16:53:45 at org.apache.derby.impl.services.monitor.BaseMonitor.staticGetLocaleFromString(Unknown Source)
16:53:45 at org.apache.derby.impl.services.monitor.BaseMonitor.setLocale(Unknown Source)
16:53:45 at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
16:53:45 at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
16:53:45 at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
16:53:45 at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
16:53:45 at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source)
16:53:45 at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
16:53:45 ... 26 more

It seems the database cannot run because it gets it's Locale with an unexpected territory.
The Jenkins I use is v1.588, it runs on centos 7, but I don't know exactly what java is used. The tomcat jenkins uses has java 1.8, the project is compiled using jdk1.7.0_21(using ant), but I am not certain what java version is used by the job itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant