Comments (6)
But it doesn't complain about the default constructor from what I can see, so you should be safe.
from gerrit-events.
Why are you setting log level to DEBUG?
from gerrit-events.
@rsandell
may be it is safe,but a better choice is to fix this problem
from gerrit-events.
@rinrinne
because i want to see some more detail message of mybatis
from gerrit-events.
20:21:33.091 [Gerrit Worker EventThread_2] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - Trying default constructor.
20:21:33.090 [Gerrit Worker EventThread_3] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - Parsed a JSONObject
20:21:33.091 [Gerrit Worker EventThread_3] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - Type found: REVIEWER_ADDED
20:21:33.091 [Gerrit Worker EventThread_3] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - It is interesting and usable.
20:21:33.091 [Gerrit Worker EventThread_3] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - Interesting event with a class defined. Searching shorthand constructor.
20:21:33.092 [Gerrit Worker EventThread_3] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - Constructor with JSONObject as parameter missing, trying default constructor.
java.lang.NoSuchMethodException: com.sonymobile.tools.gerrit.gerritevents.dto.events.ReviewerAdded.(net.sf.json.JSONObject)
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getConstructor(Class.java:1825)
at com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory.getEvent(GerritJsonEventFactory.java:69)
at com.sonymobile.tools.gerrit.gerritevents.workers.AbstractJsonObjectWork.perform(AbstractJsonObjectWork.java:69)
at com.sonymobile.tools.gerrit.gerritevents.workers.StreamEventsStringWork.perform(StreamEventsStringWork.java:67)
at com.sonymobile.tools.gerrit.gerritevents.GerritHandler$EventWorker.run(GerritHandler.java:302)
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)
20:21:33.091 [Gerrit Worker EventThread_2] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - Returning an event: com.sonymobile.tools.gerrit.gerritevents.dto.events.CommentAdded@14512775
20:21:33.092 [Gerrit Worker EventThread_2] DEBUG com.sonymobile.tools.gerrit.gerritevents.workers.AbstractJsonObjectWork - Event is: com.sonymobile.tools.gerrit.gerritevents.dto.events.CommentAdded@14512775
20:21:33.092 [Gerrit Worker EventThread_3] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritJsonEventFactory - Trying default constructor.
20:21:33.092 [Gerrit Worker EventThread_2] DEBUG com.sonymobile.tools.gerrit.gerritevents.GerritHandler - No apropriate method found during reflection. Calling default.
java.lang.NoSuchMethodException: com.huawei.gerrit.MyEventListener.gerritEvent(com.sonymobile.tools.gerrit.gerritevents.dto.events.CommentAdded)
at java.lang.Class.getMethod(Class.java:1786)
at com.sonymobile.tools.gerrit.gerritevents.GerritHandler.notifyListener(GerritHandler.java:495)
at com.sonymobile.tools.gerrit.gerritevents.GerritHandler.notifyListeners(GerritHandler.java:476)
at com.sonymobile.tools.gerrit.gerritevents.workers.AbstractGerritEventWork.perform(AbstractGerritEventWork.java:46)
at com.sonymobile.tools.gerrit.gerritevents.workers.AbstractJsonObjectWork.perform(AbstractJsonObjectWork.java:77)
at com.sonymobile.tools.gerrit.gerritevents.workers.StreamEventsStringWork.perform(StreamEventsStringWork.java:67)
at com.sonymobile.tools.gerrit.gerritevents.GerritHandler$EventWorker.run(GerritHandler.java:302)
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)
===========================
I got the same problem, I don't know why
from gerrit-events.
There is no problem, if there was it would have been logged as at a SEVERE level. It's just a debug message that it didn't find a shorthand constructor and will go with the default constructor + the parse method.
from gerrit-events.
Related Issues (20)
- How to use this library from other maven projects HOT 4
- Proposition of architecture. HOT 1
- No support for ED25519 keys (replace JSCH library) HOT 3
- Topic Changed Event does not propagate patch set HOT 5
- Missing AttentionSet changes events
- How to add topic event into gerrit events HOT 4
- Add the ability to read the output and if interactive shells are disabled on Gerrit HOT 1
- How to detect if gerrit connection is alive? HOT 2
- Connections possibly left unclosed HOT 7
- fast events create invalid JSON data HOT 1
- [Refactor] Use data binding library
- Missing Parameter for eventCreatedOn in Gerrit Event Json Message
- Found starting '{' but missing '}' at the end.
- Gerrit Trigger SSH often gets stuck in CLOSED WAITING HOT 4
- Gerrit Events not causing a trigger HOT 1
- Test fails in some time.
- Handling both SSH & HTTP? HOT 2
- CommentAdded events considered equal even if they are different comments
- Using the default value of timeout=0 when creating SSH connections might lead to threads stuck forever HOT 2
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.
from gerrit-events.