timolson / cointrader

Coin Trader is a Java-based backend for algorithmically trading cryptocurrencies. It provides data collection and export, complex event processing and triggering, and backtesting - paper trading - live trading.
Other
450 stars 166 forks source link

Latest master cannot build with mvn #141

Open wancer opened 7 years ago

wancer commented 7 years ago

Hello! I'm new with java. Did all according to instruction https://github.com/timolson/cointrader/wiki/Setup When try to build with maven get next error:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/MovStrategy.java:[30,34] cannot find symbol
  symbol: class TestStrategy
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/BaseVolatilityStrategy.java:[63,54] cannot find symbol
  symbol: class TestStrategy
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/PairsStrategy.java:[52,36] cannot find symbol
  symbol: class TestStrategy
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/RunsStrategy.java:[36,35] cannot find symbol
  symbol: class TestStrategy
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/MarketMakerStrategy.java:[48,42] cannot find symbol
  symbol: class TestStrategy
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/MockTicker.java:[14,11] package jep does not exist
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/CorrelationStrategy.java:[30,42] cannot find symbol
  symbol: class TestStrategy
[ERROR] /D:/tmp/cointrader/src/main/java/org/cryptocoinpartners/module/ProbabilityTrendStrategy.java:[52,47] cannot find symbol
  symbol: class TestStrategy
[INFO] 8 errors

Tried on Windows & Ubuntu machines with jdk1.8 and 1.7, x86 and x64 - same problem. Tried mvn clean and then mvn too

NarimanAB commented 7 years ago

it looks like TestStrategy was not included in the git... where can we get it?

douggie commented 7 years ago

strange, let me take a look

On Fri, Jul 21, 2017 at 10:58 PM, NarimanAB notifications@github.com wrote:

it looks like TestStrategy was not included in the git... where can we get it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-317122154, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHao3UsX7DeyEmlG4LCcf8Ek0DThX0ks5sQR8PgaJpZM4N4sUV .

douggie commented 7 years ago

fixed checked in.

On Fri, Jul 21, 2017 at 11:05 PM, Douggie melville-clarke < douggie@melvilleclarke.com> wrote:

strange, let me take a look

On Fri, Jul 21, 2017 at 10:58 PM, NarimanAB notifications@github.com wrote:

it looks like TestStrategy was not included in the git... where can we get it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-317122154, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHao3UsX7DeyEmlG4LCcf8Ek0DThX0ks5sQR8PgaJpZM4N4sUV .

NarimanAB commented 7 years ago

ok. but now it is different cointrader/src/main/java/org/cryptocoinpartners/module/MockTicker.java:[14,11] package jep does not exist

douggie commented 7 years ago

strange, I see jep in the POM:

org.python.pypi jep 3.6.1

On Fri, Jul 21, 2017 at 11:33 PM, NarimanAB notifications@github.com wrote:

ok. but now it is different cointrader/src/main/java/org/cryptocoinpartners/module/MockTicker.java:[14,11] package jep does not exist

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-317127852, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHavo-1wEQYALEFFqXcKCZT5mWzDSiks5sQScvgaJpZM4N4sUV .

douggie commented 7 years ago

may be try

down voteaccepted

mvn clean install -U

On Fri, Jul 21, 2017 at 11:53 PM, Douggie melville-clarke < douggie@melvilleclarke.com> wrote:

strange, I see jep in the POM:

org.python.pypi jep 3.6.1

On Fri, Jul 21, 2017 at 11:33 PM, NarimanAB notifications@github.com wrote:

ok. but now it is different cointrader/src/main/java/org/cryptocoinpartners/module/MockTicker.java:[14,11] package jep does not exist

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-317127852, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHavo-1wEQYALEFFqXcKCZT5mWzDSiks5sQScvgaJpZM4N4sUV .

NarimanAB commented 7 years ago

jep jar downloaded by maven contains java files (source code) but not compiled class files.

douggie commented 7 years ago

hum,

strange, have not built from source for a while. let me take a look tonight, about 12 hours and sort it out.

My apologies.

Douggie

On Sat, Jul 22, 2017 at 9:34 AM, NarimanAB notifications@github.com wrote:

jep jar downloaded by maven contains java files (source code) but not compiled class files.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-317167120, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHal083OJJt87jiJQOUwQn1KjNRHreks5sQbQXgaJpZM4N4sUV .

NarimanAB commented 7 years ago

ok. cointrader/repo/org/python/pypi/jep/3.6.1/jep-3.6.1.jar contains source files and not class files As of my understanding, org/python/pypi/jep package requires native libraries for proper operation However, in the local mavev "repo" there is only native library for macos for python version 2.7, what about Linux or other python versions? Project org/python/pypi/jep does not support installation via maven. org/python/pypi/jep declined proposal to support an installation via maven as there are too many native dependencies. Maybe, it is better to follow the 'official' way of library installation?

or to remove dependency on Python at all...

douggie commented 7 years ago

Hi,

there is a complied version in /repo/org/python/pypi/jep/3.6.1.

Should just be able to add this to your local repo.

mvn install:install-file -Dfile= epo/org/python/pypi/jep/3.6.1/jep-3.6.1.jar -DgroupId=org.python.pypi -DartifactId=jep -Dversion=3.6.1 -Dpackaging=ja

On Sun, Jul 23, 2017 at 1:41 PM, NarimanAB notifications@github.com wrote:

ok. cointrader/repo/org/python/pypi/jep/3.6.1/jep-3.6.1.jar contains source files and not class files As of my understanding, org/python/pypi/jep package requires native libraries for proper operation However, in the local mavev "repo" there is only native library for macos for python version 2.7, what about Linux or other python versions? Project org/python/pypi/jep does not support installation via maven. org/python/pypi/jep declined proposal to support of installation via maven as there are too many native dependencies. Maybe, it is better to follow 'official' way of library installation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-317250344, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHatWwy2iWzqbt_l9T946e_AAaipdnks5sQz-DgaJpZM4N4sUV .

LeonidShamis commented 7 years ago

Here is how I solved JEP issues (on Windows):

Hope that helps.

LeonidShamis commented 7 years ago

BTW, I still couldn't find TestStrategy anywhere, so I temporarily remove the following from src\main\java\org\cryptocoinpartners\module to pass maven build without error:

BaseMomentumStrategy.java
BaseVolatilityStrategy.java
CarryStrategy.java
CorrelationStrategy.java
MarketMakerStrategy.java
MomentumStrategy.java
MovStrategy.java
PairsStrategy.java
ProbabilityTrendStrategy.java
RunsStrategy.java

@douggie Where can I find checked in TestStrategy ?

douggie commented 7 years ago

Hi,

Teststategy has been removed from repo, it was just a test that is not required. if you do a pull you should see it has gone.

Thanks so much for the jep info. will add it to the wiki.

On Tue, Jul 25, 2017 at 11:27 AM, Leonid Shamis notifications@github.com wrote:

BTW, I still couldn't find TestStrategy anywhere, so I temporarily remove the following from src\main\java\org\cryptocoinpartners\module to pass maven build without error:

BaseMomentumStrategy.java BaseVolatilityStrategy.java CarryStrategy.java CorrelationStrategy.java MarketMakerStrategy.java MomentumStrategy.java MovStrategy.java PairsStrategy.java ProbabilityTrendStrategy.java RunsStrategy.java

@douggie https://github.com/douggie Where can I find checked in TestStrategy ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-317696578, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHaqOWSPm21y8FF7LMikI44j42ZSExks5sRcMHgaJpZM4N4sUV .

Procyon112 commented 7 years ago

It does not appear that /src/main/java/org/cryptocoinpartners/module/TestStrategy.java was ever in the repo. It looks like it's on your machine and you didn't do a git add on it.

It's the abstract base class for all of the strategy modules. Can't build without it. Can you add it to the repo, please?

douggie commented 7 years ago

if you pull it is no longer in repo.

On Sat, Jul 29, 2017 at 6:49 AM, Procyon112 notifications@github.com wrote:

It does not appear that /src/main/java/org/cryptocoinpartners/module/TestStrategy.java was ever in the repo. It looks like it's on your machine and you didn't do a git add on it.

It's the abstract base class for all of the strategy modules. Can't build without it. Can you add it to the repo, please?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-318806641, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHaqa9qTauPyNmmZNXMJArJEDxkvjbks5sSsfYgaJpZM4N4sUV .

Procyon112 commented 7 years ago

I agree. It is not in repo and it has never been as far as I can see. That's not the problem.

The problem is that these classes all derive from it and they ARE in the repo. So it cannot build because TestStrategy.java is missing:

in /src/main/java/org/cryptocoinpartners/module/

BaseMomentumStrategy.java BaseVolatilityStrategy.java CarryStrategy.java CorrelationStrategy.java MarketMakerStrategy.java MomentumStrategy.java MovStrategy.java PairsStrategy.java ProbabilityTrendStrategy.java RunsStrategy.java

douggie commented 7 years ago

Sorry for the confusion all of those dependant classes are no longer in repo

On Sat, 29 Jul 2017, 08:40 Procyon112, notifications@github.com wrote:

I agree. It is not in repo and it has never been as far as I can see. That's not the problem.

The problem is that these classes all derive from it and they ARE in the repo. So it cannot build because TestStrategy.java is missing:

in /src/main/java/org/cryptocoinpartners/module/

BaseMomentumStrategy.java BaseVolatilityStrategy.java CarryStrategy.java CorrelationStrategy.java MarketMakerStrategy.java MomentumStrategy.java MovStrategy.java PairsStrategy.java ProbabilityTrendStrategy.java RunsStrategy.java

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-318811518, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHau5_rd0JwiHAKvzjj3usmCm4076sks5sSuHygaJpZM4N4sUV .

douggie commented 7 years ago

check out commit https://github.com/timolson/cointrader/commit/fe10e963cc16b512c1955045d9073e6401fb35d1

On Sat, Jul 29, 2017 at 8:40 AM, Procyon112 notifications@github.com wrote:

I agree. It is not in repo and it has never been as far as I can see. That's not the problem.

The problem is that these classes all derive from it and they ARE in the repo. So it cannot build because TestStrategy.java is missing:

in /src/main/java/org/cryptocoinpartners/module/

BaseMomentumStrategy.java BaseVolatilityStrategy.java CarryStrategy.java CorrelationStrategy.java MarketMakerStrategy.java MomentumStrategy.java MovStrategy.java PairsStrategy.java ProbabilityTrendStrategy.java RunsStrategy.java

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-318811518, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHau5_rd0JwiHAKvzjj3usmCm4076sks5sSuHygaJpZM4N4sUV .

dsissoko commented 7 years ago

still some problem with the REPO: 1: double dependencies of org.apache.commons:commons-math3:jar in the pom : have to delete the oldest one (version 3.2) 2: dependencies with TestStrategy are still there: Have to delete ALL the Strategy classes which extends TestStrategy 3: jep librairies still not compiled: have to instal the 3.7.0 version with a maven install command line 4: some Errors on the assembly plugin but the jar are generated anyway with a mvn clean install

==> Contributors should clean up the entire project and set a TAG on the REPO...

Thanks anyway this tool seems very promising

ghost commented 7 years ago

@dsissoko any luck with building this java project? Could you pls submit a PR maybe then? Or share prebuilt project with zip :)

dsissoko commented 7 years ago

you can follow the 4 steps stated in my previous comments and u will get a fresh build in the target directory. OFC you need first to have JDK and MAVEN available in your user PATH

for the jep library you can follow the comment of LeonidShamis posted earlier

timolson commented 7 years ago

Guys I haven't been actively maintaining this for years now. Douggie took over for a while, but maybe he's also moved on, not sure. I can comment here and there but don't really have time. If anyone wants to pick this project up, I'm happy to add contributors. Notice the wiki here on github too... I put some effort into docs outside the readme

douggie commented 7 years ago

Hi,

Still actively maintaining the project.

The setup instructions do have the jep stuff in.

https://github.com/timolson/cointrader/wiki/Setup

Let me know if you are still having issues.

Regards

Douggie

On Fri, Sep 1, 2017 at 1:13 AM, Tim Olson notifications@github.com wrote:

Guys I haven't been actively maintaining this for years now. Douggie took over for a while, but maybe he's also moved on, not sure. I can comment here and there but don't really have time. If anyone wants to pick this project up, I'm happy to add contributors. Notice the wiki here on github too... I put some effort into docs outside the readme

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-326453117, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHakcgIg2UhhnV_t088Y05nvDojSJSks5sd0w_gaJpZM4N4sUV .

dsissoko commented 7 years ago

happy to have some news here from tim and douggie. hope this setup issues will be soon fixed.

dsissoko commented 7 years ago

setup instrutions dont fix the problem: the jep library cant be found in any maven repository so we have to install it manually in the local maven repository SO from step 5 of the Setup chapter we have to follow these instructions:

  1. Download Jep source code at https://pypi.python.org/pypi/jep and extract the tar.gz file
  2. cd in the freshly extracted jep-3.7.0 directory, build the jep-3.7.0.jar file following instructions of jep README
  3. cd build/java and check out the freshly build of jep-3.7.0.jar
  4. mvn install:install-file -Dfile=jep-3.7.0.jar -DgroupId=org.python.pypi -DartifactId=jep -Dversion=3.7.0 -Dpackaging=jar
  5. update the pom.xml of cointrader: org.python.pypi jep 3.7.0
  6. cd to cointrader root directory mvn
allex-sise commented 6 years ago

Hi, I am new to this and still try to make sens of it. I fallowed successfully all 11 steps (thx dsissoko), but still have the exact same error while build with maven "mvn".

Does someone have any idea?

Ubuntu 16.04.3; Maven 3.3.9; jep-3.7.0.jar build with python2.7.12; JDK java-8-oracle

ERROR: [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.cryptocoinpartners:cointrader:jar:0.3.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.commons:commons-math3:jar -> version 3.2 vs 3.6.1 @ line 189, column 13 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building cointrader 0.3.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- antlr4-maven-plugin:4.2.2:antlr4 (antlr) @ cointrader --- [INFO] ANTLR 4: Processing source directory /home/allex/cointrader/src/main/antlr4 [INFO] Processing grammar: org/cryptocoinpartners/command/Order.g4 [INFO] Processing grammar: org/cryptocoinpartners/command/Csv.g4 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cointrader --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 16 resources [INFO] Copying 4 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cointrader --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 266 source files to /home/allex/cointrader/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/MarketMakerStrategy.java:[48,42] cannot find symbol symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/BaseVolatilityStrategy.java:[63,54] cannot find symbol symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/CorrelationStrategy.java:[30,42] cannot find symbol symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/ProbabilityTrendStrategy.java:[52,47] cannot find symbol symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/MovStrategy.java:[30,34] cannot find symbol symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/PairsStrategy.java:[52,36] cannot find symbol symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/RunsStrategy.java:[36,35] cannot find symbol symbol: class TestStrategy [INFO] 7 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.877 s [INFO] Finished at: 2017-09-27T14:17:23+02:00 [INFO] Final Memory: 31M/247M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/MarketMakerStrategy.java:[48,42] cannot find symbol [ERROR] symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/BaseVolatilityStrategy.java:[63,54] cannot find symbol [ERROR] symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/CorrelationStrategy.java:[30,42] cannot find symbol [ERROR] symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/ProbabilityTrendStrategy.java:[52,47] cannot find symbol [ERROR] symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/MovStrategy.java:[30,34] cannot find symbol [ERROR] symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/PairsStrategy.java:[52,36] cannot find symbol [ERROR] symbol: class TestStrategy [ERROR] /home/allex/cointrader/src/main/java/org/cryptocoinpartners/module/RunsStrategy.java:[36,35] cannot find symbol [ERROR] symbol: class TestStrategy [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

douggie commented 6 years ago

i will take a look

On Wed, 27 Sep 2017, 13:16 Sise, notifications@github.com wrote:

Hi, I am new to this and still try to make sens of it. I fallowed successfully all 11 steps (thx dsissoko), but still have the exact same error while build with maven "mvn".

Does someone have any idea?

Ubuntu 16.04.3; Maven 3.3.9; jep-3.7.0.jar build with python2.7.12; JDK java-8-oracle

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-332501790, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHarf9qtY60YuiJFZ3897E1qY_rgpYks5smjyAgaJpZM4N4sUV .

mjwchapman commented 6 years ago

If you just want to try it out without the hassle - it was building back here: https://github.com/timolson/cointrader/commit/214c976f1f234d0f3df4e3c691f011099b062234

faizeln02 commented 6 years ago

I am getting the following error in when running mvn

$ mvn [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building cointrader 0.3.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- antlr4-maven-plugin:4.2.2:antlr4 (antlr) @ cointrader --- [INFO] ANTLR 4: Processing source directory C:\Users\faize\cointrader\src\main\antlr4 [INFO] Processing grammar: org\cryptocoinpartners\command\Order.g4 [INFO] Processing grammar: org\cryptocoinpartners\command\Csv.g4 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cointrader --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 16 resources [INFO] Copying 4 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cointrader --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 266 source files to C:\Users\faize\cointrader\target\classes [INFO] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/module/ProbabilityTrendStrategy.java: C:\Users\faize\cointrader\src\main\java\org\cryptocoinpartners\module\ProbabilityTrendStrategy.java uses or overrides a deprecated API. [INFO] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/module/ProbabilityTrendStrategy.java: Recompile with -Xlint:deprecation for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [INFO] 3 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.313 s [INFO] Finished at: 2017-12-29T22:07:46+04:00 [INFO] Final Memory: 32M/106M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous [ERROR] both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

douggie commented 6 years ago

will take a look.

On Fri, Dec 29, 2017 at 6:17 PM, faizeln02 notifications@github.com wrote:

I am getting the following error in when running mvn

$ mvn [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------

[INFO] Building cointrader 0.3.0-SNAPSHOT [INFO] ------------------------------------------------------------

[INFO] [INFO] --- antlr4-maven-plugin:4.2.2:antlr4 (antlr) @ cointrader --- [INFO] ANTLR 4: Processing source directory C:\Users\faize\cointrader\src\ main\antlr4 [INFO] Processing grammar: org\cryptocoinpartners\command\Order.g4 [INFO] Processing grammar: org\cryptocoinpartners\command\Csv.g4 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cointrader --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 16 resources [INFO] Copying 4 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cointrader --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 266 source files to C:\Users\faize\cointrader\ target\classes [INFO] /C:/Users/faize/cointrader/src/main/java/org/ cryptocoinpartners/module/ProbabilityTrendStrategy.java: C:\Users\faize\cointrader\src\main\java\org\cryptocoinpartners\module\ProbabilityTrendStrategy.java uses or overrides a deprecated API. [INFO] /C:/Users/faize/cointrader/src/main/java/org/ cryptocoinpartners/module/ProbabilityTrendStrategy.java: Recompile with -Xlint:deprecation for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Users/faize/cointrader/src/main/java/org/ cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/ cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector

  • [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [INFO] 3 errors [INFO] ------------------------------------------------------------- [INFO]

    [INFO] BUILD FAILURE [INFO]

    [INFO] Total time: 4.313 s [INFO] Finished at: 2017-12-29T22:07:46+04:00 [INFO] Final Memory: 32M/106M [INFO]

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous [ERROR] both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException*

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-354481359, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHagnc4aGIqMo9GFDD2wXdKJQ7ixYuks5tFSyigaJpZM4N4sUV .

douggie commented 6 years ago

Pushed latest code base, let me know if it addresses the issues, i built and ran cleanly but could be something in my maven repo.

On Fri, Dec 29, 2017 at 6:53 PM, Douggie melville-clarke < douggie@melvilleclarke.com> wrote:

will take a look.

On Fri, Dec 29, 2017 at 6:17 PM, faizeln02 notifications@github.com wrote:

I am getting the following error in when running mvn

$ mvn [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------

[INFO] Building cointrader 0.3.0-SNAPSHOT [INFO] ------------------------------------------------------------

[INFO] [INFO] --- antlr4-maven-plugin:4.2.2:antlr4 (antlr) @ cointrader --- [INFO] ANTLR 4: Processing source directory C:\Users\faize\cointrader\src\ main\antlr4 [INFO] Processing grammar: org\cryptocoinpartners\command\Order.g4 [INFO] Processing grammar: org\cryptocoinpartners\command\Csv.g4 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cointrader --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 16 resources [INFO] Copying 4 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cointrader --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 266 source files to C:\Users\faize\cointrader\targ et\classes [INFO] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/module/ProbabilityTrendStrategy.java: C:\Users\faize\cointrader\src\ main\java\org\cryptocoinpartners\module\ProbabilityTrendStrategy.java uses or overrides a deprecated API. [INFO] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/module/ProbabilityTrendStrategy.java: Recompile with -Xlint:deprecation for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/util/LogInjector.java:[17,37] reference to Module is ambiguous both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/util/LogInjector.java:[44,34] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector

  • [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [INFO] 3 errors [INFO] ------------------------------------------------------------- [INFO]

    [INFO] BUILD FAILURE [INFO]

    [INFO] Total time: 4.313 s [INFO] Finished at: 2017-12-29T22:07:46+04:00 [INFO] Final Memory: 32M/106M [INFO]

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous [ERROR] both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException*

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-354481359, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHagnc4aGIqMo9GFDD2wXdKJQ7ixYuks5tFSyigaJpZM4N4sUV .

faizeln02 commented 6 years ago

I am getting this error now. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/module/xchange/OKCoinHelper.java:[9,42] cannot find symbol [ERROR] symbol: class OkCoinPriceLimit [ERROR] location: package org.knowm.xchange.okcoin.dto.trade [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous [ERROR] both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

On Dec 29, 2017 11:06 PM, "douggie" notifications@github.com wrote:

Pushed latest code base, let me know if it addresses the issues, i built and ran cleanly but could be something in my maven repo.

On Fri, Dec 29, 2017 at 6:53 PM, Douggie melville-clarke < douggie@melvilleclarke.com> wrote:

will take a look.

On Fri, Dec 29, 2017 at 6:17 PM, faizeln02 notifications@github.com wrote:

I am getting the following error in when running mvn

$ mvn [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------

[INFO] Building cointrader 0.3.0-SNAPSHOT [INFO] ------------------------------------------------------------

[INFO] [INFO] --- antlr4-maven-plugin:4.2.2:antlr4 (antlr) @ cointrader --- [INFO] ANTLR 4: Processing source directory C:\Users\faize\cointrader\src\ main\antlr4 [INFO] Processing grammar: org\cryptocoinpartners\command\Order.g4 [INFO] Processing grammar: org\cryptocoinpartners\command\Csv.g4 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cointrader --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 16 resources [INFO] Copying 4 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cointrader --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 266 source files to C:\Users\faize\cointrader\targ et\classes [INFO] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/module/ProbabilityTrendStrategy.java: C:\Users\faize\cointrader\src\ main\java\org\cryptocoinpartners\module\ProbabilityTrendStrategy.java uses or overrides a deprecated API. [INFO] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/module/ProbabilityTrendStrategy.java: Recompile with -Xlint:deprecation for details. [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/util/LogInjector.java:[17,37] reference to Module is ambiguous both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartn ers/util/LogInjector.java:[44,34] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util. LogInjector.MyMembersInjector

  • [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/ LogInjector.java:[64,23] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [INFO] 3 errors [INFO] ------------------------------------------------------------- [INFO]


    [INFO] BUILD FAILURE [INFO]


    [INFO] Total time: 4.313 s [INFO] Finished at: 2017-12-29T22:07:46+04:00 [INFO] Final Memory: 32M/106M [INFO]


    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/ LogInjector.java:[17,37] reference to Module is ambiguous [ERROR] both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/ LogInjector.java:[44,34] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/ LogInjector.java:[64,23] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141# issuecomment-354481359, or mute the thread https://github.com/notifications/unsubscribe-auth/ AENHagnc4aGIqMo9GFDD2wXdKJQ7ixYuks5tFSyigaJpZM4N4sUV .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-354487525, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ-GqYpUO4H2VgiqV7R5p4P1FaNGOZByks5tFThPgaJpZM4N4sUV .

faizeln02 commented 6 years ago

Hi Douggie

I am still getting the same problem along with some new ones.

I am getting this error now. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/module/xchange/OKCoinHelper.java:[9,42] cannot find symbol [ERROR] symbol: class OkCoinPriceLimit [ERROR] location: package org.knowm.xchange.okcoin.dto.trade [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous [ERROR] both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

douggie commented 6 years ago

Hi, this is an issue with the dependant lib xchange ( https://github.com/timmolter/XChange) not yet having the latest okcoin adapters in their mvn release. if you download the develop branch and run 'mvn install -Dmaven.test.skip=true' from the parent folder you will have the latest snapshot in your repo that has theOkCoinPriceLimit class.

On Tue, 2 Jan 2018, 16:10 faizeln02, notifications@github.com wrote:

Hi Douggie

I am still getting the same problem along with some new ones.

I am getting this error now.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure:

[ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/module/xchange/OKCoinHelper.java:[9,42] cannot find symbol [ERROR] symbol: class OkCoinPriceLimit [ERROR] location: package org.knowm.xchange.okcoin.dto.trade [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[17,37] reference to Module is ambiguous

[ERROR] both interface com.google.inject.Module in com.google.inject and class java.lang.Module in java.lang match [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-354802249, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHahX5QOGvHjyzIFaqAQceN_HO6_PYks5tGlT4gaJpZM4N4sUV .

jspillers commented 6 years ago

Attempting to build and still running into the same errors regarding TestStrategy as described many times in this thread. Tried just deleting all the files inheriting from the missing TestStrategy file and still getting a jep error as described previously. Going to try to fix jep now...

jspillers commented 6 years ago

replacing the jep entry in pom.xml with:

<dependency>
    <groupId>black.ninia</groupId>
    <artifactId>jep</artifactId>
    <version>3.7.0</version>
</dependency>

has allowed me to at least get a clean mvn build

jspillers commented 6 years ago

console now just pukes errors everywhere like:

2018-01-02 21:44:31 [main] DEBUG o.cryptocoinpartners.module.Context - no module file found for XchangeData.epl on classpath. Please ensure XchangeData.epl is in the resources directory.

did a previous step in the setup instructions fail silently?

douggie commented 6 years ago

hi, these are not errors just telling you which epls have loaded. if you set the cointrader logibg to info in logback.xml. will updare pom for you.

On Wed, 3 Jan 2018, 03:50 Jarrod Spillers, notifications@github.com wrote:

console now just pukes errors everywhere like:

2018-01-02 21:44:31 [main] DEBUG o.cryptocoinpartners.module.Context - no module file found for XchangeData.epl on classpath. Please ensure XchangeData.epl is in the resources directory.

did a previous step in the setup instructions fail silently?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-354932818, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHase0C8XBmu04Bm321n-rdd_OsyLjks5tGvkDgaJpZM4N4sUV .

douggie commented 6 years ago

Hi,

Thanks for the pom update, I have pushed the corresponding updates with some default logging changes too.

faizeln02 commented 6 years ago

Hi Douggie

This is th error now

[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building cointrader 0.3.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- antlr4-maven-plugin:4.2.2:antlr4 (antlr) @ cointrader --- [INFO] ANTLR 4: Processing source directory C:\Users\faize\cointrader\src\main\antlr4 [INFO] Processing grammar: org\cryptocoinpartners\command\Order.g4 [INFO] Processing grammar: org\cryptocoinpartners\command\Csv.g4 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cointrader --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 16 resources [INFO] Copying 4 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cointrader --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 266 source files to C:\Users\faize\cointrader\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.299 s [INFO] Finished at: 2018-01-08T21:47:56+04:00 [INFO] Final Memory: 30M/323M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure: [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

douggie commented 6 years ago

hi,

Do you see the mymemberinjectors in the loginjector.java as per the source?

are you compiling with java 8? ( java -version)?

On Mon, 8 Jan 2018, 17:53 faizeln02, notifications@github.com wrote:

Hi Douggie

This is th error now

[INFO] Scanning for projects... [INFO] [INFO]

[INFO] Building cointrader 0.3.0-SNAPSHOT [INFO]

[INFO] [INFO] --- antlr4-maven-plugin:4.2.2:antlr4 (antlr) @ cointrader --- [INFO] ANTLR 4: Processing source directory C:\Users\faize\cointrader\src\main\antlr4 [INFO] Processing grammar: org\cryptocoinpartners\command\Order.g4 [INFO] Processing grammar: org\cryptocoinpartners\command\Csv.g4 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cointrader --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 16 resources [INFO] Copying 4 resources [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cointrader --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 266 source files to C:\Users\faize\cointrader\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] -------------------------------------------------------------

[ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector

  • [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol*

  • symbol: class Field location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector*

  • [INFO] 2 errors*

  • [INFO] ------------------------------------------------------------- [INFO]

    [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------*

  • [INFO] Total time: 4.299 s [INFO] Finished at: 2018-01-08T21:47:56+04:00 [INFO] Final Memory: 30M/323M [INFO] ------------------------------------------------------------------------*

  • [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cointrader: Compilation failure: Compilation failure:*

  • [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[44,34] cannot find symbol*

  • [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector*

  • [ERROR] /C:/Users/faize/cointrader/src/main/java/org/cryptocoinpartners/util/LogInjector.java:[64,23] cannot find symbol*

  • [ERROR] symbol: class Field [ERROR] location: class org.cryptocoinpartners.util.LogInjector.MyMembersInjector [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException*

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-356042085, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHalUlhr_QygepnPJYLUCC2oOWlhzVks5tIlYXgaJpZM4N4sUV .

faizeln02 commented 6 years ago

Hi Douggie

I do see the MyMembersInjector, and i am using Java 8 to complie.

package org.cryptocoinpartners.util;

import com.google.inject.*; import com.google.inject.matcher.Matchers; import com.google.inject.spi.TypeEncounter; import com.google.inject.spi.TypeListener; import com.google.inject.util.Providers; import org.slf4j.Logger; import org.slf4j.LoggerFactory;

/**

  • @author Tim Olson */ public class LogInjector implements Module {

    @Override public void configure(Binder binder) { // SLF4J logger injection binder.bind(Logger.class).toProvider(Providers.of(dummyLogger)); binder.bindListener(Matchers.any(), new MyTypeListener()); }

    private static class MyTypeListener implements TypeListener {

    @Override
    public <I> void hear(TypeLiteral<I> typeLiteral, TypeEncounter<I> typeEncounter) {
        for( Class<?> c = typeLiteral.getRawType(); c != Object.class; c = c.getSuperclass() ) {
            for( final Field field : c.getDeclaredFields() ) {
                if( field.getType().isAssignableFrom(Logger.class)
                            && field.isAnnotationPresent(Inject.class) ) {
                    typeEncounter.register(new MyMembersInjector<I>(field));
                }
            }
        }
    }

    }

    private static class MyMembersInjector implements MembersInjector { public MyMembersInjector(Field field) { this.field = field; }

    public void injectMembers(I i) {
        try {
            boolean wasAccessible = field.isAccessible();
            field.setAccessible(true);
            if( field.get(i) == null ) {
                field.set(i, LoggerFactory.getLogger(field.getDeclaringClass()));
            }
            field.setAccessible(wasAccessible);
        }
        catch( IllegalAccessException e ) {
            e.printStackTrace();
        }
    }
    
    private final Field field;

    }

    private static final Logger dummyLogger = LoggerFactory.getLogger("");

}

douggie commented 6 years ago

if you run 'mvn install' from the command line in cointrader directory do you get the same as the build->maven->install from your ide?

On Tue, 9 Jan 2018, 16:28 faizeln02, notifications@github.com wrote:

Hi Douggie

I do see the MyMembersInjector, and i am using Java 8 to complie.

package org.cryptocoinpartners.util;

import com.google.inject.*; import com.google.inject.matcher.Matchers; import com.google.inject.spi.TypeEncounter; import com.google.inject.spi.TypeListener; import com.google.inject.util.Providers; import org.slf4j.Logger; import org.slf4j.LoggerFactory;

/**

-

@author https://github.com/author Tim Olson */ public class LogInjector implements Module {

@override https://github.com/override public void configure(Binder binder) { // SLF4J logger injection binder.bind(Logger.class).toProvider(Providers.of(dummyLogger)); binder.bindListener(Matchers.any(), new MyTypeListener()); }

private static class MyTypeListener implements TypeListener {

@Override
public <I> void hear(TypeLiteral<I> typeLiteral, TypeEncounter<I> typeEncounter) {
    for( Class<?> c = typeLiteral.getRawType(); c != Object.class; c = c.getSuperclass() ) {
        for( final Field field : c.getDeclaredFields() ) {
            if( field.getType().isAssignableFrom(Logger.class)
                        && field.isAnnotationPresent(Inject.class) ) {
                typeEncounter.register(new MyMembersInjector<I>(field));
            }
        }
    }
}

}

private static class MyMembersInjector

  • implements MembersInjector { public MyMembersInjector(Field field) { this.field = field; }*

  • public void injectMembers(I i) { try { boolean wasAccessible = field.isAccessible(); field.setAccessible(true); if( field.get(i) == null ) { field.set(i, LoggerFactory.getLogger(field.getDeclaringClass())); } field.setAccessible(wasAccessible); } catch( IllegalAccessException e ) { e.printStackTrace(); } } private final Field field; } private static final Logger dummyLogger = LoggerFactory.getLogger(""); *

  • }*

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/timolson/cointrader/issues/141#issuecomment-356336709, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHapMVJxrDKCOVIEE3Hsj6M29q5j_Eks5tI5PJgaJpZM4N4sUV .

faizeln02 commented 6 years ago

Hi Douggie

Im not sure what you mean by that. I am getting the error in the command. I have installed Netbeans, and i am also getting the error when trying to build the project in netbeans.