digdag-plugin-mysql's People
digdag-plugin-mysql's Issues
A runtime error occur when using absrtactJdbcXxx in digdag
Description
I create mysql
operator inheriting AbstractJdbcJobOperator
class that is in digdag with using pg
operator as reference.
AbstractJdbcJobOperator
also inherits AbstractJdbcOperator
, and the runtime error (IllegalAccessError
) occurred in AbstractJdbcOperator.<init>
For the detail, please read following logs.
Environments
onunu:sample [master]ᛤ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
onunu:sample [master]ᛤ gradle -v
------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------
Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_144 (Oracle Corporation 25.144-b01)
OS: Mac OS X 10.12.6 x86_64
onunu:sample [master]ᛤ digdag --version
0.9.24
Examination and idea
I suppose the reason of the error is a class loader.
I tried to execute do same with setting mysql operator in digdag repo, and succeed to execute initialize the class.
Log
onunu:sample [master]ᛤ digdag run --rerun sample.dig -p repos=`pwd`/../build/repo
2018-04-24 13:57:28 +0900: Digdag v0.9.24
2018-04-24 13:57:30 +0900 [WARN] (main): Reusing the last session time 2018-04-16T00:00:00+00:00.
2018-04-24 13:57:30 +0900 [INFO] (main): Using session /Users/home/treasuredata/digdag-plugin-mysql/sample/.digdag/status/20180416T000000+0000.
2018-04-24 13:57:30 +0900 [INFO] (main): Starting a new session project id=1 workflow name=sample session_time=2018-04-16T00:00:00+00:00
2018-04-24 13:57:31 +0900 [INFO] (0018@[0:default]+sample+start): echo>: Mysql plugin test start
Mysql plugin test start
2018-04-24 13:57:31 +0900 [INFO] (0018@[0:default]+sample+test): mysql>:
2018-04-24 13:57:31 +0900 [ERROR] (task-thread-0): Uncaught exception. Task queue will detect this failure and this task will be retried later.
java.lang.IllegalAccessError: tried to access method io.digdag.standards.operator.jdbc.AbstractJdbcOperator.<init>(Lio/digdag/spi/OperatorContext;Lio/digdag/spi/TemplateEngine;)V from class io.digdag.plugin.mysql.MysqlOperatorFactory$MysqlOperator
at io.digdag.plugin.mysql.MysqlOperatorFactory$MysqlOperator.<init>(MysqlOperatorFactory.java:32)
at io.digdag.plugin.mysql.MysqlOperatorFactory.newOperator(MysqlOperatorFactory.java:27)
at io.digdag.plugin.mysql.MysqlOperatorFactory.newOperator(MysqlOperatorFactory.java:11)
at io.digdag.core.agent.OperatorManager.callExecutor(OperatorManager.java:310)
at io.digdag.cli.Run$OperatorManagerWithSkip.callExecutor(Run.java:694)
at io.digdag.core.agent.OperatorManager.runWithWorkspace(OperatorManager.java:254)
at io.digdag.core.agent.OperatorManager.lambda$runWithHeartbeat$2(OperatorManager.java:137)
at io.digdag.core.agent.LocalWorkspaceManager.withExtractedArchive(LocalWorkspaceManager.java:25)
at io.digdag.core.agent.OperatorManager.runWithHeartbeat(OperatorManager.java:135)
at io.digdag.core.agent.OperatorManager.run(OperatorManager.java:119)
at io.digdag.cli.Run$OperatorManagerWithSkip.run(Run.java:676)
at io.digdag.core.agent.MultiThreadAgent.lambda$null$0(MultiThreadAgent.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.