Quantcast

cannot build 1.6.2 release as Eclipse project

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

cannot build 1.6.2 release as Eclipse project

Diana Susca
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hello,

Excuse me in advance for the long email, but it couldn't be helped:

I am trying to incorporate quickfix/j in another project, and since I am new to quickfix, I decided to just download the sources and run the examples in debug so that I can understand how this library works.

That plan sounded solid, but two days later, I still can't compile the source projects in eclipse. I have tried in several ways, but nothing I did works.
Here is what I did, step by step:
* downloaded the source files from github - as a zip file. (just the source project directories, not the jar files)
* extracted them to a new workspace directory in eclipse. The directory contains:

20-Oct-16  15:06    <DIR>          .
20-Oct-16  15:06    <DIR>          ..
24-Mar-16  18:46               224 .gitignore
24-Mar-16  18:46             2,102 LICENSE
24-Mar-16  18:46            11,757 pom.xml
20-Oct-16  15:06    <DIR>          quickfixj-all
20-Oct-16  15:06    <DIR>          quickfixj-codegenerator
20-Oct-16  15:06    <DIR>          quickfixj-core
20-Oct-16  15:06    <DIR>          quickfixj-dictgenerator
20-Oct-16  15:06    <DIR>          quickfixj-distribution
20-Oct-16  15:06    <DIR>          quickfixj-examples
20-Oct-16  15:06    <DIR>          quickfixj-messages
24-Mar-16  18:46               607 README.md
               4 File(s)         14,690 bytes
               9 Dir(s)   2,314,256,384 bytes free


* created the project in eclipse (neon.1):  File->Open projects from file system
    - selected the main quickfix directory, where pom.xml was located, and then I was presented with a list of maven projects that correspond to all the directories and sub-directories in the file system. They were all checked by default to be imported, so I proceeded to do that.

* Then, the projects automatically performed some Maven updates, but after all was said and done, some error still appeared, that were unable to be resolved. I can attach a printscreen if required. The error states:
 No marketplace entries found to handle quickfixj-codegenerator:1.6.2:generate in Eclipse.

* Now, I have no experience with Maven, but I still tried very hard to make it work: I performed a 'Run as > Maven build..' with goal 'package' first, on the main project, as was suggested in the user manual.
This got a few errors in the console, here are a few examples:

error writing message to log : test
java.io.IOException: Stream Closed
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:313)

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.554 sec - in quickfix.mina.LostLogoutThreadedTest
Running quickfix.mina.message.FIXMessageDecoderTest
Oct 20, 2016 3:17:21 PM quickfix.mina.message.FIXMessageDecoder handleError
SEVERE: did not find checksum field, bad length?


INFO: Listening for connections at 0.0.0.0/0.0.0.0:9999 for session(s) [FIX.4.4:ISLD->TW]
Oct 20, 2016 3:17:24 PM quickfix.mina.SingleThreadedEventHandlingStrategy$1 run
INFO: Started QFJ Message Processor
Exception in thread "Acceptor-Thread" java.lang.RuntimeException: java.lang.InterruptedException
    at quickfix.mina.SingleThreadedEventHandlingStrategy.onMessage(SingleThreadedEventHandlingStrategy.java:57)
    at quickfix.mina.SingleThreadedEventHandlingStrategy.stopHandlingMessages(SingleThreadedEventHandlingStrategy.java:157)
    at quickfix.SocketAcceptor.stop(SocketAcceptor.java:107)
    at quickfix.SocketAcceptor.stop(SocketAcceptor.java:102)
    at quickfix.mina.SingleThreadedEventHandlingStrategyTest$1.run(SingleThreadedEventHandlingStrategyTest.java:149)
Caused by: java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1220)

INFO: MINA session created for FIX.4.2:TW->ISLD: local=/127.0.0.1:65296, class org.apache.mina.transport.socket.nio.NioSocketSession, remote=localhost/127.0.0.1:9877
Oct 20, 2016 3:17:33 PM quickfix.mina.AbstractIoHandler exceptionCaught
SEVERE: Socket (/127.0.0.1:65296): javax.net.ssl.SSLHandshakeException: SSL handshake failed.
javax.net.ssl.SSLHandshakeException: SSL handshake failed.

The maven process ended with:
Tests run: 1319, Failures: 3, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] QuickFIX/J Parent .................................. SUCCESS [  0.045 s]
[INFO] QuickFIX/J Code Generator Maven Plugin ............. SUCCESS [  3.349 s]
[INFO] QuickFIX/J Dictionary Generator .................... SUCCESS [  1.173 s]
[INFO] QuickFIX/J Core engine ............................. FAILURE [13:20 min]
[INFO] QuickFIX/J Message classes for various FIX specs ... SKIPPED
[INFO] QuickFIX/J Message classes for all FIX specs ....... SKIPPED
[INFO] QuickFIX/J Message classes for FIX 4.0 ............. SKIPPED
[INFO] QuickFIX/J Message classes for FIX 4.1 ............. SKIPPED
[INFO] QuickFIX/J Message classes for FIX 4.2 ............. SKIPPED
[INFO] QuickFIX/J Message classes for FIX 4.3 ............. SKIPPED
[INFO] QuickFIX/J Message classes for FIX 4.4 ............. SKIPPED
[INFO] QuickFIX/J Message classes for FIX 5.0 ............. SKIPPED
[INFO] QuickFIX/J Message classes for FIX 5.0 SP1 ......... SKIPPED
[INFO] QuickFIX/J Message classes for FIX 5.0 SP2 ......... SKIPPED
[INFO] QuickFIX/J Message classes for FIXT 1.1 ............ SKIPPED
[INFO] QuickFIX/J Examples ................................ SKIPPED
[INFO] QuickFIX/J Examples - Executor ..................... SKIPPED
[INFO] QuickFIX/J Examples - Order Match .................. SKIPPED
[INFO] QuickFIX/J Examples - Banzai ....................... SKIPPED
[INFO] QuickFIX/J All runtime modules ..................... SKIPPED
[INFO] QuickFIX/J Distribution ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:26 min
[INFO] Finished at: 2016-10-20T15:29:07+03:00
[INFO] Final Memory: 38M/1060M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project quickfixj-core: There are test failures.
[ERROR]
[ERROR] Please refer to S:\work\workspaces\workspace_quickfix_1.6.2\quickfixj-QFJ_RELEASE_1_6_2\quickfixj-core\target\surefire-reports for the individual test results.

* Since they all seemed to be errors regarding the test of FIX messages, but I just want to make the framework compile, I was not too worried about these errors, but after the task completed I was presented with all the quickfix projects having compile and Maven problems that I cannot fix.
I assume all the compilation problems are because Maven didn't complete in creating some source files that were required. So, I tried really hard to make the Maven part work.
The list of errors is pasted at the end of the email so as not to tax your patience.
I have tried anything and everything I could, searched on google for possible fixes to no avail, I cannot make the sources compile.
Some of the things I tried included:
       - right click on project->maven-> download sources
       - right click on project->maven-> update project
       - right click on project->run as-> maven clean
       - right click on project->run as-> maven generate sources
       - right click on project->run as-> maven install

in different combinations and successions, but none of my tries resulted in making the damned red x disappear from the projects!

Can anyone please help me make the library work? I just want to be able to run in debug the banzai application.

Thank you!

The error list, as promised:
Eclipse displays the following Maven errors, besides a lot of compilation problems:

Description    Resource    Path    Location    Type
Duplicate bundle executions found. Please remove any explicitly defined bundle executions in your pom.xml.    pom.xml    /quickfixj-dictgenerator    line 227    Maven Project Build Lifecycle Mapping Problem
Duplicate bundle executions found. Please remove any explicitly defined bundle executions in your pom.xml.    pom.xml    /quickfixj-core    line 268    Maven Project Build Lifecycle Mapping Problem
Duplicate bundle executions found. Please remove any explicitly defined bundle executions in your pom.xml.    pom.xml    /quickfixj-all    line 67    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fixt11    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix50sp2    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix50sp1    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix50    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix44    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix43    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix42    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix41    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-messages-fix40    line 44    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-dictgenerator    line 227    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-core    line 268    Maven Project Build Lifecycle Mapping Problem
Duplicate manifest executions found. Please remove any explicitly defined manifest executions in your pom.xml.    pom.xml    /quickfixj-all    line 67    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix40, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 141    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix40, phase: generate-sources)    pom.xml    /quickfixj-core    line 222    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix41, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 129    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix41, phase: generate-sources)    pom.xml    /quickfixj-core    line 210    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix42, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 117    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix42, phase: generate-sources)    pom.xml    /quickfixj-core    line 198    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix43, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 105    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix43, phase: generate-sources)    pom.xml    /quickfixj-core    line 186    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix44, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 93    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix44, phase: generate-sources)    pom.xml    /quickfixj-core    line 174    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 81    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50, phase: generate-sources)    pom.xml    /quickfixj-core    line 162    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50sp1, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 165    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50sp2, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 153    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fixt11, phase: generate-sources)    pom.xml    /quickfixj-messages-all    line 69    Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fixt11, phase: generate-sources)    pom.xml    /quickfixj-core    line 150    Maven Project Build Lifecycle Mapping Problem


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: cannot build 1.6.2 release as Eclipse project

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

I did not try to set up the project in Eclipse for a longer time. In Netbeans it works OK, IntelliJ
also seems to work.

IMHO the errors that you have only refer to Maven goals that the M2E plugin in Eclipse cannot deal
with. If I remember correctly you can select these problems in the error view, right click and there
should be an option to ignore these goals. Eclipse will then generate a section in the POM so that
these goals are ignored.

Hope that helps,
Chris.


On 20/10/16 14:38, Diana Susca wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hello,
>
> Excuse me in advance for the long email, but it couldn't be helped:
>
> I am trying to incorporate quickfix/j in another project, and since I am new to quickfix, I
> decided to just download the sources and run the examples in debug so that I can understand how
> this library works.
>
> That plan sounded solid, but two days later, I still can't compile the source projects in eclipse.
> I have tried in several ways, but nothing I did works.
> Here is what I did, step by step:
> * downloaded the source files from github - as a zip file. (just the source project directories,
> not the jar files)
> * extracted them to a new workspace directory in eclipse. The directory contains:
>
> 20-Oct-16  15:06    <DIR>          .
> 20-Oct-16  15:06    <DIR>          ..
> 24-Mar-16  18:46               224 .gitignore
> 24-Mar-16  18:46             2,102 LICENSE
> 24-Mar-16  18:46            11,757 pom.xml
> 20-Oct-16  15:06    <DIR> quickfixj-all
> 20-Oct-16  15:06    <DIR> quickfixj-codegenerator
> 20-Oct-16  15:06    <DIR> quickfixj-core
> 20-Oct-16  15:06    <DIR> quickfixj-dictgenerator
> 20-Oct-16  15:06    <DIR> quickfixj-distribution
> 20-Oct-16  15:06    <DIR> quickfixj-examples
> 20-Oct-16  15:06    <DIR> quickfixj-messages
> 24-Mar-16  18:46               607 README.md
>                4 File(s)         14,690 bytes
>                9 Dir(s)   2,314,256,384 bytes free
>
>
> * created the project in eclipse (neon.1): File->Open projects from file system
>     - selected the main quickfix directory, where pom.xml was located, and then I was presented
> with a list of maven projects that correspond to all the directories and sub-directories in the
> file system. They were all checked by default to be imported, so I proceeded to do that.
>
> * Then, the projects automatically performed some Maven updates, but after all was said and done,
> some error still appeared, that were unable to be resolved. I can attach a printscreen if
> required. The error states:
>  No marketplace entries found to handle quickfixj-codegenerator:1.6.2:generate in Eclipse.
>
> * Now, I have no experience with Maven, but I still tried very hard to make it work: I performed a
> 'Run as > Maven build..' with goal 'package' first, on the main project, as was suggested in the
> user manual.
> This got a few errors in the console, here are a few examples:
>
> error writing message to log : test
> java.io.IOException: Stream Closed
>     at java.io.FileOutputStream.writeBytes(Native Method)
>     at java.io.FileOutputStream.write(FileOutputStream.java:313)
>
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.554 sec - in
> quickfix.mina.LostLogoutThreadedTest
> Running quickfix.mina.message.FIXMessageDecoderTest
> Oct 20, 2016 3:17:21 PM quickfix.mina.message.FIXMessageDecoder handleError
> SEVERE: did not find checksum field, bad length?
>
>
> INFO: Listening for connections at 0.0.0.0/0.0.0.0:9999 <http://0.0.0.0/0.0.0.0:9999> for
> session(s) [FIX.4.4:ISLD->TW]
> Oct 20, 2016 3:17:24 PM quickfix.mina.SingleThreadedEventHandlingStrategy$1 run
> INFO: Started QFJ Message Processor
> Exception in thread "Acceptor-Thread" java.lang.RuntimeException: java.lang.InterruptedException
>     at
> quickfix.mina.SingleThreadedEventHandlingStrategy.onMessage(SingleThreadedEventHandlingStrategy.java:57)
>     at
> quickfix.mina.SingleThreadedEventHandlingStrategy.stopHandlingMessages(SingleThreadedEventHandlingStrategy.java:157)
>     at quickfix.SocketAcceptor.stop(SocketAcceptor.java:107)
>     at quickfix.SocketAcceptor.stop(SocketAcceptor.java:102)
>     at
> quickfix.mina.SingleThreadedEventHandlingStrategyTest$1.run(SingleThreadedEventHandlingStrategyTest.java:149)
> Caused by: java.lang.InterruptedException
>     at
> java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1220)
>
> INFO: MINA session created for FIX.4.2:TW->ISLD: local=/127.0.0.1:65296 <http://127.0.0.1:65296>,
> class org.apache.mina.transport.socket.nio.NioSocketSession, remote=localhost/127.0.0.1:9877
> <http://127.0.0.1:9877>
> Oct 20, 2016 3:17:33 PM quickfix.mina.AbstractIoHandler exceptionCaught
> SEVERE: Socket (/127.0.0.1:65296 <http://127.0.0.1:65296>): javax.net.ssl.SSLHandshakeException:
> SSL handshake failed.
> javax.net.ssl.SSLHandshakeException: SSL handshake failed.
>
> The maven process ended with:
> Tests run: 1319, Failures: 3, Errors: 0, Skipped: 0
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] QuickFIX/J Parent .................................. SUCCESS [  0.045 s]
> [INFO] QuickFIX/J Code Generator Maven Plugin ............. SUCCESS [  3.349 s]
> [INFO] QuickFIX/J Dictionary Generator .................... SUCCESS [  1.173 s]
> [INFO] QuickFIX/J Core engine ............................. FAILURE [13:20 min]
> [INFO] QuickFIX/J Message classes for various FIX specs ... SKIPPED
> [INFO] QuickFIX/J Message classes for all FIX specs ....... SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 4.0 ............. SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 4.1 ............. SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 4.2 ............. SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 4.3 ............. SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 4.4 ............. SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 5.0 ............. SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 5.0 SP1 ......... SKIPPED
> [INFO] QuickFIX/J Message classes for FIX 5.0 SP2 ......... SKIPPED
> [INFO] QuickFIX/J Message classes for FIXT 1.1 ............ SKIPPED
> [INFO] QuickFIX/J Examples ................................ SKIPPED
> [INFO] QuickFIX/J Examples - Executor ..................... SKIPPED
> [INFO] QuickFIX/J Examples - Order Match .................. SKIPPED
> [INFO] QuickFIX/J Examples - Banzai ....................... SKIPPED
> [INFO] QuickFIX/J All runtime modules ..................... SKIPPED
> [INFO] QuickFIX/J Distribution ............................ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13:26 min
> [INFO] Finished at: 2016-10-20T15:29:07+03:00
> [INFO] Final Memory: 38M/1060M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
> (default-test) on project quickfixj-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> S:\work\workspaces\workspace_quickfix_1.6.2\quickfixj-QFJ_RELEASE_1_6_2\quickfixj-core\target\surefire-reports
> for the individual test results.
>
> * Since they all seemed to be errors regarding the test of FIX messages, but I just want to make
> the framework compile, I was not too worried about these errors, but after the task completed I
> was presented with all the quickfix projects having compile and Maven problems that I cannot fix.
> I assume all the compilation problems are because Maven didn't complete in creating some source
> files that were required. So, I tried really hard to make the Maven part work.
> The list of errors is pasted at the end of the email so as not to tax your patience.
> I have tried anything and everything I could, searched on google for possible fixes to no avail, I
> cannot make the sources compile.
> Some of the things I tried included:
>        - right click on project->maven-> download sources
>        - right click on project->maven-> update project
>        - right click on project->run as-> maven clean
>        - right click on project->run as-> maven generate sources
>        - right click on project->run as-> maven install
>
> in different combinations and successions, but none of my tries resulted in making the damned red
> x disappear from the projects!
>
> Can anyone please help me make the library work? I just want to be able to run in debug the banzai
> application.
>
> Thank you!
>
> The error list, as promised:
> Eclipse displays the following Maven errors, besides a lot of compilation problems:
>
> Description    Resource    Path    Location    Type
> Duplicate bundle executions found. Please remove any explicitly defined bundle executions in your
> pom.xml. pom.xml    /quickfixj-dictgenerator    line 227    Maven Project Build Lifecycle Mapping
> Problem
> Duplicate bundle executions found. Please remove any explicitly defined bundle executions in your
> pom.xml. pom.xml    /quickfixj-core    line 268    Maven Project Build Lifecycle Mapping Problem
> Duplicate bundle executions found. Please remove any explicitly defined bundle executions in your
> pom.xml. pom.xml    /quickfixj-all    line 67    Maven Project Build Lifecycle Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fixt11 line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix50sp2 line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix50sp1 line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix50    line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix44    line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix43    line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix42    line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix41    line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-messages-fix40    line 44    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-dictgenerator    line 227    Maven Project Build Lifecycle
> Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-core    line 268 Maven Project Build Lifecycle Mapping Problem
> Duplicate manifest executions found. Please remove any explicitly defined manifest executions in
> your pom.xml.    pom.xml    /quickfixj-all    line 67 Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix40, phase: generate-sources)
> pom.xml    /quickfixj-messages-all    line 141    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix40, phase: generate-sources)
> pom.xml    /quickfixj-core    line 222    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix41, phase: generate-sources)
> pom.xml    /quickfixj-messages-all    line 129    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix41, phase: generate-sources)
> pom.xml    /quickfixj-core    line 210    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix42, phase: generate-sources)
> pom.xml    /quickfixj-messages-all    line 117    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix42, phase: generate-sources)
> pom.xml    /quickfixj-core    line 198    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix43, phase: generate-sources)
> pom.xml    /quickfixj-messages-all    line 105    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix43, phase: generate-sources)
> pom.xml    /quickfixj-core    line 186    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix44, phase: generate-sources)
> pom.xml    /quickfixj-messages-all    line 93    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix44, phase: generate-sources)
> pom.xml    /quickfixj-core    line 174    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50, phase: generate-sources)
> pom.xml    /quickfixj-messages-all    line 81    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50, phase: generate-sources)
> pom.xml    /quickfixj-core    line 162    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50sp1, phase:
> generate-sources) pom.xml    /quickfixj-messages-all    line 165    Maven Project Build Lifecycle
> Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fix50sp2, phase:
> generate-sources) pom.xml    /quickfixj-messages-all    line 153    Maven Project Build Lifecycle
> Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fixt11, phase: generate-sources)
> pom.xml    /quickfixj-messages-all    line 69    Maven Project Build Lifecycle Mapping Problem
> Plugin execution not covered by lifecycle configuration:
> org.quickfixj:quickfixj-codegenerator:1.6.2:generate (execution: fixt11, phase: generate-sources)
> pom.xml    /quickfixj-core    line 150    Maven Project Build Lifecycle Mapping Problem
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: cannot build 1.6.2 release as Eclipse project

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi again,

just tested this with Eclipse.
After you have built the project you should add the generated sources (the FIX message and field
classes) to the source path of quickfixj-core.

Right click on quickfixj-core project -> Properties -> Java Build Path
On the right side select tab Source. Add Folder.
Then search the quickfixj-core/target/generated-sources folder. Apply the configuration.
Then build the quickfixj-core project again via Project ->Build Project.

Now you should be able to start Banzai by clicking right and selecting "Run As Java Application".

Cheers,
Chris.



On 20/10/16 14:50, Christoph John wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi,
>
> I did not try to set up the project in Eclipse for a longer time. In Netbeans it works OK, IntelliJ
> also seems to work.
>
> IMHO the errors that you have only refer to Maven goals that the M2E plugin in Eclipse cannot deal
> with. If I remember correctly you can select these problems in the error view, right click and there
> should be an option to ignore these goals. Eclipse will then generate a section in the POM so that
> these goals are ignored.
>
> Hope that helps,
> Chris.
>
>
> On 20/10/16 14:38, Diana Susca wrote:
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>>
>>
>> Hello,
>>
>> Excuse me in advance for the long email, but it couldn't be helped:
>>
>> I am trying to incorporate quickfix/j in another project, and since I am new to quickfix, I
>> decided to just download the sources and run the examples in debug so that I can understand how
>> this library works.
>>
>> That plan sounded solid, but two days later, I still can't compile the source projects in eclipse.
>> I have tried in several ways, but nothing I did works.
>> Here is what I did, step by step:
>> * downloaded the source files from github - as a zip file. (just the source project directories,
>> not the jar files)
>> * extracted them to a new workspace directory in eclipse. The directory contains:
>>
>> 20-Oct-16  15:06    <DIR>          .
>> 20-Oct-16  15:06    <DIR>          ..
>> 24-Mar-16  18:46               224 .gitignore
>> 24-Mar-16  18:46             2,102 LICENSE
>> 24-Mar-16  18:46            11,757 pom.xml
>> 20-Oct-16  15:06    <DIR> quickfixj-all
>> 20-Oct-16  15:06    <DIR> quickfixj-codegenerator
>> 20-Oct-16  15:06    <DIR> quickfixj-core
>> 20-Oct-16  15:06    <DIR> quickfixj-dictgenerator
>> 20-Oct-16  15:06    <DIR> quickfixj-distribution
>> 20-Oct-16  15:06    <DIR> quickfixj-examples
>> 20-Oct-16  15:06    <DIR> quickfixj-messages
>> 24-Mar-16  18:46               607 README.md
>>                 4 File(s)         14,690 bytes
>>                 9 Dir(s)   2,314,256,384 bytes free
>>
>>
>> * created the project in eclipse (neon.1): File->Open projects from file system
>>      - selected the main quickfix directory, where pom.xml was located, and then I was presented
>> with a list of maven projects that correspond to all the directories and sub-directories in the
>> file system. They were all checked by default to be imported, so I proceeded to do that.
>>
>> * Then, the projects automatically performed some Maven updates, but after all was said and done,
>> some error still appeared, that were unable to be resolved. I can attach a printscreen if
>> required. The error states:
>>   No marketplace entries found to handle quickfixj-codegenerator:1.6.2:generate in Eclipse.
>>
>> * Now, I have no experience with Maven, but I still tried very hard to make it work: I performed a
>> 'Run as > Maven build..' with goal 'package' first, on the main project, as was suggested in the
>> user manual.
>> This got a few errors in the console, here are a few examples:
>>
>> error writing message to log : test
>> java.io.IOException: Stream Closed
>>      at java.io.FileOutputStream.writeBytes(Native Method)
>>      at java.io.FileOutputStream.write(FileOutputStream.java:313)
>>
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.554 sec - in
>> quickfix.mina.LostLogoutThreadedTest
>> Running quickfix.mina.message.FIXMessageDecoderTest
>> Oct 20, 2016 3:17:21 PM quickfix.mina.message.FIXMessageDecoder handleError
>> SEVERE: did not find checksum field, bad length?
>>
>>
>> INFO: Listening for connections at 0.0.0.0/0.0.0.0:9999 <http://0.0.0.0/0.0.0.0:9999> for
>> session(s) [FIX.4.4:ISLD->TW]
>> Oct 20, 2016 3:17:24 PM quickfix.mina.SingleThreadedEventHandlingStrategy$1 run
>> INFO: Started QFJ Message Processor
>> Exception in thread "Acceptor-Thread" java.lang.RuntimeException: java.lang.InterruptedException
>>      at
>> quickfix.mina.SingleThreadedEventHandlingStrategy.onMessage(SingleThreadedEventHandlingStrategy.java:57)
>>      at
>> quickfix.mina.SingleThreadedEventHandlingStrategy.stopHandlingMessages(SingleThreadedEventHandlingStrategy.java:157)
>>      at quickfix.SocketAcceptor.stop(SocketAcceptor.java:107)
>>      at quickfix.SocketAcceptor.stop(SocketAcceptor.java:102)
>>      at
>> quickfix.mina.SingleThreadedEventHandlingStrategyTest$1.run(SingleThreadedEventHandlingStrategyTest.java:149)
>> Caused by: java.lang.InterruptedException
>>      at
>> java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1220)
>>
>> INFO: MINA session created for FIX.4.2:TW->ISLD: local=/127.0.0.1:65296 <http://127.0.0.1:65296>,
>> class org.apache.mina.transport.socket.nio.NioSocketSession, remote=localhost/127.0.0.1:9877
>> <http://127.0.0.1:9877>
>> Oct 20, 2016 3:17:33 PM quickfix.mina.AbstractIoHandler exceptionCaught
>> SEVERE: Socket (/127.0.0.1:65296 <http://127.0.0.1:65296>): javax.net.ssl.SSLHandshakeException:
>> SSL handshake failed.
>> javax.net.ssl.SSLHandshakeException: SSL handshake failed.
>>
>> The maven process ended with:
>> Tests run: 1319, Failures: 3, Errors: 0, Skipped: 0
>>
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] QuickFIX/J Parent .................................. SUCCESS [  0.045 s]
>> [INFO] QuickFIX/J Code Generator Maven Plugin ............. SUCCESS [  3.349 s]
>> [INFO] QuickFIX/J Dictionary Generator .................... SUCCESS [  1.173 s]
>> [INFO] QuickFIX/J Core engine ............................. FAILURE [13:20 min]
>> [INFO] QuickFIX/J Message classes for various FIX specs ... SKIPPED
>> [INFO] QuickFIX/J Message classes for all FIX specs ....... SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 4.0 ............. SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 4.1 ............. SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 4.2 ............. SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 4.3 ............. SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 4.4 ............. SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 5.0 ............. SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 5.0 SP1 ......... SKIPPED
>> [INFO] QuickFIX/J Message classes for FIX 5.0 SP2 ......... SKIPPED
>> [INFO] QuickFIX/J Message classes for FIXT 1.1 ............ SKIPPED
>> [INFO] QuickFIX/J Examples ................................ SKIPPED
>> [INFO] QuickFIX/J Examples - Executor ..................... SKIPPED
>> [INFO] QuickFIX/J Examples - Order Match .................. SKIPPED
>> [INFO] QuickFIX/J Examples - Banzai ....................... SKIPPED
>> [INFO] QuickFIX/J All runtime modules ..................... SKIPPED
>> [INFO] QuickFIX/J Distribution ............................ SKIPPED
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 13:26 min
>> [INFO] Finished at: 2016-10-20T15:29:07+03:00
>> [INFO] Final Memory: 38M/1060M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
>> (default-test) on project quickfixj-core: There are test failures.
>> [ERROR]
>> [ERROR] Please refer to
>> S:\work\workspaces\workspace_quickfix_1.6.2\quickfixj-QFJ_RELEASE_1_6_2\quickfixj-core\target\surefire-reports
>> for the individual test results.
>>
>> * Since they all seemed to be errors regarding the test of FIX messages, but I just want to make
>> the framework compile, I was not too worried about these errors, but after the task completed I
>> was presented with all the quickfix projects having compile and Maven problems that I cannot fix.
>> I assume all the compilation problems are because Maven didn't complete in creating some source
>> files that were required. So, I tried really hard to make the Maven part work.
>> The list of errors is pasted at the end of the email so as not to tax your patience.
>> I have tried anything and everything I could, searched on google for possible fixes to no avail, I
>> cannot make the sources compile.
>> Some of the things I tried included:
>>         - right click on project->maven-> download sources
>>         - right click on project->maven-> update project
>>         - right click on project->run as-> maven clean
>>         - right click on project->run as-> maven generate sources
>>         - right click on project->run as-> maven install
>>
>> in different combinations and successions, but none of my tries resulted in making the damned red
>> x disappear from the projects!
>>
>> Can anyone please help me make the library work? I just want to be able to run in debug the banzai
>> application.
>>
>> Thank you!

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...