Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is not possible build Spring Integration, it fails in many modules #3461

Closed
manueljordan opened this issue Jan 15, 2021 · 12 comments · Fixed by #3472
Closed

Is not possible build Spring Integration, it fails in many modules #3461

manueljordan opened this issue Jan 15, 2021 · 12 comments · Fixed by #3472
Assignees
Milestone

Comments

@manueljordan
Copy link
Contributor

Describe the bug [Problem]

Is not possible Build Spring Integration

To Reproduce

In MacOS and Windows I have the following situation

I have STS 4.9.0.RELEASE for a workspace dedicated for Spring Integration.
And configured for Java 11 according with the Checking out and Building section.

Prior to import Spring Integration I did

  • git clone
  • added remote repository
  • git fetch
  • git merge upstream/master

So I am sure I have the latest and stable code of the project

Then Spring Integration is imported and then according with the Using Eclipse section it indicates about ./gradlew eclipse command. Of course I did do the inverse, I mean, I imported and then executed the command. Anyway it worked

01

02

03

04

Then according with the Checking out and Building section it indicates about ./gradlew build command, I executed twice because the first failed and I wanted to confirm the same error message for a second execution. Seems there are more errors about test fails. Below two different executions (and fails in two different modules).

05

06

Is stable the project? Or there are some missing step instructions?

BTW Just in case, I get the same even with:

07

This was tried on Mac, I am going to do the same steps on other machine, Windows 10.

Expected behavior

Build in peace the Spring Integration project

@manueljordan manueljordan added status: waiting-for-triage The issue need to be evaluated and its future decided type: bug labels Jan 15, 2021
@garyrussell
Copy link
Contributor

garyrussell commented Jan 15, 2021

I can't explain the command-line build failures but everything is fine for me with STS 4.9 and MacOS Catalina.

The read me needs fixing; we no longer use ./gradlew eclipse since the BuildShip plugin is now included in STS.

Delete the project and Import | Gradle | Existing Gradle Project.

@garyrussell garyrussell added status: waiting-for-reporter Needs a feedback from the reporter type: documentation and removed status: waiting-for-triage The issue need to be evaluated and its future decided type: bug labels Jan 15, 2021
@artembilan
Copy link
Member

Hi @manueljordan !

Looks like you have also interim test failures.

Would be great if you share their reports not screenshots.
The project is stable, only some tests are time-sensitive so they may fail sporadically.
You can @Ignore (@Disable) those test until we figure out what to do with them.

@manueljordan
Copy link
Contributor Author

Hello Gary

I did do all through the IDE, nothing through commands directly. The commands shared in the Spring Integration instructions were reflected through the Gradle plugin (Buildship) - figures attached in the first post

Delete the project and Import | Gradle | Existing Gradle Project.
Yes, I did do that.

Let me do this tomorrow early morning when the bandwidth is fast. Even more, all from the scratch, a new clone process

@manueljordan
Copy link
Contributor Author

Hello @artembilan

Would be great if you share their reports not screenshots.
Can you share some instructions to export the requested error messages?
It to give you the correct feedback.

I think tomorrow I will try to execute some Gradle command to build but skipping the Tests

@manueljordan
Copy link
Contributor Author

Hello I have confirmed the following:

Manuels-MacBook-Pro:spring-integration manueljordan$ ./gradlew build -x test
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 5m 1s
510 actionable tasks: 510 executed

If you know some approach to execute ./gradlew build (that includes the test task execution) and appending all the error messages of all the @Test failures into a log file, please let me know. It with the purpose to attach the file here to share the content.

@garyrussell
Copy link
Contributor

Use ./gradlew clean testAll --continue to run all tests (including long running tests, use test instead of testAll to skip the long-running tests),--continue causes the build to continue even when one module has failing tests.

The test results are captured in build/reports/tests/testAll under each module (in HTML format).

@manueljordan
Copy link
Contributor Author

Thanks and understood Gary. I am going to do this for this weekend.

Consider to add that instructions in the readme.adoc, I mean about the difference of

  • ./gradlew clean testAll with long running tests
  • ./gradlew clean test without long running tests

And explaining: what does long running tests mean in Spring Integration?

And later indicate that --continue can be added to skip some test failing in some modules. Of course if is necessary like in this case.

@garyrussell garyrussell removed the status: waiting-for-reporter Needs a feedback from the reporter label Jan 21, 2021
@garyrussell garyrussell added this to the Backlog milestone Jan 21, 2021
@garyrussell garyrussell self-assigned this Jan 22, 2021
@garyrussell
Copy link
Contributor

garyrussell commented Jan 22, 2021

Reopening for README polishing.

@garyrussell garyrussell reopened this Jan 22, 2021
@garyrussell garyrussell modified the milestones: Backlog, 5.5 M2 Jan 22, 2021
garyrussell added a commit to garyrussell/spring-integration that referenced this issue Jan 22, 2021
garyrussell added a commit to garyrussell/spring-integration that referenced this issue Jan 22, 2021
artembilan pushed a commit that referenced this issue Jan 22, 2021
Resolves #3461

* Fix project URL
* Fix IDEA instructions
@manueljordan
Copy link
Contributor Author

I executed twice the following ./gradlew clean test command and no errors now
But I share the output just in case, it mostly to see the warnings:

./gradlew clean test

> Task :spring-integration-feed:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.internal.util.reflection.ReflectionMemberAccessor (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.mockito/mockito-core/3.7.0/ccd43add1a3973f828441e2f7179253c0d87dc92/mockito-core-3.7.0.jar) to field java.util.concurrent.CountDownLatch.sync
WARNING: Please consider reporting this to the maintainers of org.mockito.internal.util.reflection.ReflectionMemberAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-amqp:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-file:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-core:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.internal.util.reflection.ReflectionMemberAccessor (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.mockito/mockito-core/3.7.0/ccd43add1a3973f828441e2f7179253c0d87dc92/mockito-core-3.7.0.jar) to field java.util.ArrayDeque.elements
WARNING: Please consider reporting this to the maintainers of org.mockito.internal.util.reflection.ReflectionMemberAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 873
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 873
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 873
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 873

> Task :spring-integration-ip:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-jms:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-jdbc:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-jmx:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-kafka:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-jpa:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-mongodb:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to field java.lang.reflect.Proxy.h
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-mqtt:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to field java.lang.reflect.Proxy.h
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-rsocket:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-redis:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to field java.lang.reflect.Proxy.h
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-security:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-stream:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to field java.io.BufferedReader.in
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-stomp:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/9.0.41/a43e9711e85073187d04b137882b4b7957180ef0/tomcat-embed-core-9.0.41.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-websocket:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/9.0.41/a43e9711e85073187d04b137882b4b7957180ef0/tomcat-embed-core-9.0.41.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-ws:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

> Task :spring-integration-xml:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Volumes/FP27072011/gradle/repository/sts-workspace-spring-integration/spring-integration/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.3/ea35bf756a880c699768ae0750e1244017d6ae84/spring-core-5.3.3.jar) to field com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.xpath
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 14m 41s
355 actionable tasks: 353 executed, 2 up-to-date

The same output is available here output.txt too

@manueljordan
Copy link
Contributor Author

For any random test fail scenario I am going to create a new issue just to be sure to confirm that would be expected that error or not

@artembilan
Copy link
Member

Hi, @manueljordan !

Thank you for the report!

Well, we aware of those reflection warnings and there is just nothing we can do from our side: spring-projects/spring-framework#22674

And yes, please, report failed tests individually. In most cases we just fail because of some timing issue on the target machine. We can't guess how long could be an access to some OS resource. So, probably 10 seconds is not enough everywhere...

@manueljordan
Copy link
Contributor Author

Understood. Don't worry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants