Giter Club home page Giter Club logo

Comments (6)

rsandell avatar rsandell commented on July 17, 2024

But it doesn't complain about the default constructor from what I can see, so you should be safe.

from gerrit-events.

rinrinne avatar rinrinne commented on July 17, 2024

Why are you setting log level to DEBUG?

from gerrit-events.

meteor-lsw avatar meteor-lsw commented on July 17, 2024

@rsandell
may be it is safe,but a better choice is to fix this problem

from gerrit-events.

meteor-lsw avatar meteor-lsw commented on July 17, 2024

@rinrinne
because i want to see some more detail message of mybatis

from gerrit-events.

liliVicky avatar liliVicky commented on July 17, 2024

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.

rsandell avatar rsandell commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.