java.util.ConcurrentModificationException in Pentaho Data Integration - java

I am using PDI 5.4.0.1-130 version with which I run a transformation from within java.
My problem is that from time to time my integration tests are throwing this exception...
Any advice is welcomed
org.pentaho.di.core.exception.KettleDatabaseException:
An error occurred executing SQL:
SELECT *
FROM "ProcessType"
at java.lang.Thread.run (Thread.java:745)
at org.pentaho.di.trans.step.RunThread.run (RunThread.java:62)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow (TableInput.java:138)
at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery (TableInput.java:224)
at org.pentaho.di.core.database.Database.openQuery (Database.java:1732)
at org.pentaho.di.core.database.Database.getRowInfo (Database.java:2252)
at org.pentaho.di.core.database.Database.getValueFromSQLType (Database.java:2306)
at java.util.ArrayList$Itr.next (ArrayList.java:851)
at java.util.ArrayList$Itr.checkForComodification (ArrayList.java:901)
at org.pentaho.di.core.database.Database.openQuery(Database.java:1736)
at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:224)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:138)
at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at org.pentaho.di.core.database.Database.getValueFromSQLType(Database.java:2306)
at org.pentaho.di.core.database.Database.getRowInfo(Database.java:2252)
at org.pentaho.di.core.database.Database.openQuery(Database.java:1732)

i have posted a bug on pentaho's jira and seems that it was already reported
http://jira.pentaho.com/browse/PDI-13789
upgrading to 6.0.0 version comes with this fix.

Related

java.lang.NoClassDefFoundError - FeatureIDE CLI Tool

I am trying to use the CLI Tool of FeatureIDE to generate samples from a feature model.
I am a total newb, when it comes to JAVA. I downloaded the .jar from the GitHub Repository of FeatureIDE. When I try to invoke the .jar from CLI I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/RecognitionException
at de.ovgu.featureide.fm.core.init.FMCoreLibrary.install(FMCoreLibrary.java:81)
at de.ovgu.featureide.fm.core.init.LibraryManager.registerLibrary(LibraryManager.java:53)
at de.ovgu.featureide.fm.core.cli.FeatureIDECLI.main(FeatureIDECLI.java:45)
Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.RecognitionException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 3 more
I do understand that org.antlr.runtime.RecognitionException is missing, but I am totally unsure how to resolve this issue.
Can anybody maybe give me a hint on how I can get rid of this error?
I need to use this tool for my thesis, so any help would be greatly appreciated!
Regards
Peter

OpenIDM NullPointerException when installing Salesforce Identity Connect

Would anyone know what to do about the following error I'm getting when trying to install Salesforce Identity Connect on a Win 2012 R2 server trial version? I'm using java 1.8.0_144
WARN Cannot release acquired trigger trigger-salesforceDataSyncNow in group scheduler-service-group, trigger has not been acquired [RepoJobStore]OpenIDM ready
Scheduled service "scheduler-service-group.salesforceDataSyncNow" invocation reported failure:
java.lang.NullPointerException
org.forgerock.openidm.quartz.impl.ExecutionException:
java.lang.NullPointerException at org.forgerock.openidm.provisioner.impl.SystemObjectSetService.execute(SystemObjectSetService.java:280) at org.forgerock.openidm.quartz.impl.SchedulerServiceJob.execute(SchedulerServiceJob.java:127) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: java.lang.NullPointerException at org.forgerock.openidm.provisioner.impl.SystemObjectSetService.liveSync(SystemObjectSetService.java:327) at org.forgerock.openidm.provisioner.impl.SystemObjectSetService.execute(SystemObjectSetService.java:273) ... 3 more
The actual error looks like this
Actual error in command prompt

Eclipse doesn't initialize JPA persistence

when I try to run a JPA project, I get the following error message :
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.<clinit>(EntityManagerFactoryProvider.java:55)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactoryImpl(PersistenceProvider.java:92)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:188)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)
at dao.LayerDAO.<init>(LayerDAO.java:10)
at exec.Run.main(Run.java:9)
Caused by: java.lang.NullPointerException
at org.eclipse.persistence.platform.server.NoServerPlatformDetector.checkPlatform(NoServerPlatformDetector.java:28)
at org.eclipse.persistence.platform.server.ServerPlatformUtils.detectServerPlatform(ServerPlatformUtils.java:58)
at org.eclipse.persistence.internal.jpa.IsolatedHashMap.<clinit>(IsolatedHashMap.java:48)
... 7 more
This project was running before, but I needed to reinstall Glassfish because of problems and now it's broken.
I tried to create a new project but I got the same error messages.
Do you have an idea of what could explain such a behavior ?
Thanx
Thanx to #Gimby who made me verified my EclipseLink version, I had to go into the project properties.
After a look in the BuildPath parameters, I tried to look at the "targeted runtime" I've chosen and found that none was selected.
Since I've checked it, everything goes better.
++

Timezone Error when running GWT/GAE app

I'm getting this error when running my GWT/GAE app:
java.lang.RuntimeException: Unable to restore the previous TimeZone at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:348) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:251) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811) at com.google.gwt.dev.DevMode.main(DevMode.java:311) Caused by: java.lang.NoSuchMethodException: java.util.TimeZone.setDefaultInAppContext(java.util.TimeZone) at java.lang.Class.getDeclaredMethod(Class.java:2117) at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:344) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:251) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811) at com.google.gwt.dev.DevMode.main(DevMode.java:311)
Although I added -Dappengine.user.timezone=UTC and -Dappengine.user.timezone.impl=UTC
If you're getting java.lang.NoSuchMethodException error on JDK 8, its likely this bug https://github.com/GoogleCloudPlatform/gcloud-maven-plugin/issues/54
The solution discussed there is to add config to the appengine maven plugin.
<jvm_flag>
<jvm_flag>-Dappengine.user.timezone=UTC</jvm_flag>
</jvm_flag>
Passing the argume as -D does not work (nor adding .impl) as discuess in older solutions.
Try this.
TimeZone.setDefault(TimeZone.getTimeZone("GMT-05:00"));
for example this is for Bogota, Lima, Quito .. you can choose your Zone here
The error got fixed when I updated the GAE version from 1.8.0 to 1.8.8+

Generic error [50000-175] caused by NullPointerException

I am using H2 database in client-server mode. Server is running with version 1.3.175 and client with 1.3.168.
Everything seems working fine, but I get an exception executing some queries:
org.h2.jdbc.JdbcSQLException: General error: "java.lang.NullPointerException" [50000-175]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)
at org.h2.message.DbException.get(DbException.java:161)
at org.h2.message.DbException.convert(DbException.java:284)
at org.h2.server.TcpServerThread.sendError(TcpServerThread.java:218)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:158)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.h2.expression.Function.getCost(Function.java:2391)
at org.h2.expression.CompareLike.getCost(CompareLike.java:417)
at org.h2.expression.ConditionAndOr.optimize(ConditionAndOr.java:133)
at org.h2.command.dml.Select.prepare(Select.java:813)
at org.h2.command.Parser.prepareCommand(Parser.java:240)
at org.h2.engine.Session.prepareLocal(Session.java:436)
at org.h2.server.TcpServerThread.process(TcpServerThread.java:260)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:156)
... 1 more
at org.h2.engine.SessionRemote.done(SessionRemote.java:567)
at org.h2.command.CommandRemote.prepare(CommandRemote.java:67)
at org.h2.command.CommandRemote.<init>(CommandRemote.java:46)
at org.h2.engine.SessionRemote.prepareCommand(SessionRemote.java:439)
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1109)
at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:74)
at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:264)
Thanks for help.
This is a bug in this version of the database engine, which was fixed in revision 5437 of the trunk.
You can either:
go back to the previous version (1.3.174) which should not have this bug,
use the latest nightly build where it should be fixed,
download the latest source code and built the database yourself, or
wait for the next version of H2.

Categories