Closed alexqrid closed 3 years ago
I have the same issue. How can I solve it?
Same issue here:
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/SolidityTrigger.java:13: error: cannot find symbol
return new StringBuilder().append("triggerName: ").append(getTriggerName())
^
symbol: method getTriggerName()
location: class SolidityTrigger
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/SolidityTrigger.java:21: error: cannot find symbol
setTriggerName(Trigger.SOLIDITY_TRIGGER_NAME);
^
symbol: method setTriggerName(String)
location: class SolidityTrigger
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/BlockLogTrigger.java:44: error: cannot find symbol
setTriggerName(Trigger.BLOCK_TRIGGER_NAME);
^
symbol: method setTriggerName(String)
location: class BlockLogTrigger
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/BlockLogTrigger.java:49: error: cannot find symbol
return new StringBuilder().append("triggerName: ").append(getTriggerName())
^
symbol: method getTriggerName()
location: class BlockLogTrigger
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/TransactionLogTrigger.java:10: error: method does not override or implement a method from a supertype
@Override
^
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/TransactionLogTrigger.java:99: error: cannot find symbol
setTriggerName(Trigger.TRANSACTION_TRIGGER_NAME);
^
symbol: method setTriggerName(String)
location: class TransactionLogTrigger
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/ContractEventTrigger.java:43: error: cannot find symbol
setTriggerName(Trigger.CONTRACTEVENT_TRIGGER_NAME);
^
symbol: method setTriggerName(String)
location: class ContractEventTrigger
/root/code/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/ContractLogTrigger.java:24: error: cannot find symbol
setTriggerName(Trigger.CONTRACTLOG_TRIGGER_NAME);
^
symbol: method setTriggerName(String)
location: class ContractLogTrigger
8 errors
1 warning
FAILURE: Build failed with an exception.
Any hint on the solution? Thank you.
The solution is simple. Try to built it on Windows. I was not able to build the project on Ubuntu 20.04, but on Windows10 it works fine.
The solution is simple. Try to built it on Windows. I was not able to build the project on Ubuntu 20.04, but on Windows10 it works fine.
It worked, thank you so much. I was able to build on Windows 10 with the latest version of Gradle.
How could I solve this on Mac?
I've been able to build and run the plugin with the following Dockerfile:
FROM tronprotocol/java-tron:latest
WORKDIR /java-tron
RUN git clone https://github.com/tronprotocol/event-plugin.git && \
yum install -y java-1.8.0-openjdk-devel
RUN cd event-plugin && export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.372.b07-1.el7_9.x86_64/jre/; ./gradlew build
# DOCKER_HTTP_PORT
EXPOSE 8090
# DOCKER_SOLIDITY_PORT
EXPOSE 8091
# DOCKER_RPC_PORT
EXPOSE 50051
# DOCKER_JSONRPC_PORT
EXPOSE 18888
# DOCKER_LISTEN_PORT
EXPOSE 50545
Don't forget to change the value of useNativeQueue
to false in the main_net_config.conf
:
event.subscribe = {
native = {
useNativeQueue = false // if true, use native message queue, else use event plugin.
bindport = 5555 // bind port
sendqueuelength = 1000 //max length of send queue
}
...
I tried to build plugin according to the instructions in README but it failed. Here is the full stack trace. I need plugin for mongodb, how can I build it?
Stack trace
~~~ Note: class org.pf4j.processor.ExtensionAnnotationProcessor init /root/event-plugin/api/src/main/java/org/tron/common/logsfilter/trigger/ContractLogTrigger.java:7: warning: lombok.javac.apt.LombokProcessor could not be initialized. Lombok will not run during this compilation: java.lang.IllegalArgumentException: com.sun.tools.javac.api.ClientCodeWrapper$WrappedStandardJavaFileManager extends com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager implements javax.tools.StandardJavaFileManager public class ContractLogTrigger extends ContractTrigger { ^ at lombok.javac.apt.LombokFileObjects.getCompiler(LombokFileObjects.java:130) at lombok.javac.apt.InterceptingJavaFileManager.