Coder Social home page Coder Social logo

Comments (12)

ojhughes avatar ojhughes commented on June 15, 2024 1

I have now released SCS Starters 2.0.0.RC1 and believe this is issue is now resolved

from spring-cloud-services-starters.

ojhughes avatar ojhughes commented on June 15, 2024

Hi can you please provide a formatted stacktrace? Please also confirm whether error occurs outside of Cloud Foundry

from spring-cloud-services-starters.

dheeraj290 avatar dheeraj290 commented on June 15, 2024

Thanks for prompt reply.

The error stack trace is attached here.
The error is occurring on my local STS as well as in PCF environment.
error.log

from spring-cloud-services-starters.

dshields-pivotal avatar dshields-pivotal commented on June 15, 2024

Very easy to repeat - create starter Spring boot app with eureka and web, 2.0.1 for spring boot and 2.0.0.M1 for spring cloud services and try to build/run, you'll get the stack error

from spring-cloud-services-starters.

dheeraj290 avatar dheeraj290 commented on June 15, 2024

error.log
updated logs from DEBUG mode.

from spring-cloud-services-starters.

Syl1234 avatar Syl1234 commented on June 15, 2024

I have exactly the same problem using :

<spring-cloud-services.version>2.0.0.M1</spring-cloud-services.version>
<spring-cloud.version>Finchley.M9</spring-cloud.version>

Any advice in order to fix that problem ?

Edit : i was able to fix the problem by removing depency :

<dependency>
<groupId>io.pivotal.spring.cloud</groupId>
<artifactId>spring-cloud-services-starter-service-registry</artifactId>
</dependency>

but i want to use the service discovery ...

from spring-cloud-services-starters.

ojhughes avatar ojhughes commented on June 15, 2024

Hi, apologies this isn't resolved yet, it's top of my list to look at.

Some findings FYI:

  • This works with gradle, not maven.
  • Adding Eureka-server to the POM fixes it

from spring-cloud-services-starters.

dheeraj290 avatar dheeraj290 commented on June 15, 2024

thanks for updates.
Currently using starter-service-registry in current project to use PCF service registry service.

from spring-cloud-services-starters.

Syl1234 avatar Syl1234 commented on June 15, 2024

Thx for update.

A working workaround i've just found is :

`

    <dependency>
        <groupId>io.pivotal.spring.cloud</groupId>
        <artifactId>spring-cloud-services-starter-service-registry</artifactId>
    </dependency>

    <dependency>
       <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.security.oauth.boot</groupId>
        <artifactId>spring-security-oauth2-autoconfigure</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.retry</groupId>
        <artifactId>spring-retry</artifactId>
    </dependency>

`

using :

<spring-cloud-services.version>2.0.0.M1</spring-cloud-services.version>
<spring-cloud.version>Finchley.M9</spring-cloud.version>

from spring-cloud-services-starters.

dheeraj290 avatar dheeraj290 commented on June 15, 2024

workaround does not seem to be working when using with

io.pivotal.spring.cloud

spring-cloud-services-cloudfoundry-connector

from spring-cloud-services-starters.

ojhughes avatar ojhughes commented on June 15, 2024

I have narrowed this down further, the build seems to require spring-boot-starter-actuator. Can you test and report back please?

from spring-cloud-services-starters.

hongli8881 avatar hongli8881 commented on June 15, 2024

I have same problem with following error message

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution generate-qtypes of goal com.querydsl:querydsl-maven-plugin:4.0.9:jpa-export failed: sun.reflect.annotation.TypeNotPresentExceptionProxy
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
at java.lang.Class.createAnnotationData(Class.java:3521)
at java.lang.Class.annotationData(Class.java:3510)
at java.lang.Class.getAnnotation(Class.java:3415)
at java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:258)
at java.lang.Class.isAnnotationPresent(Class.java:3425)
at com.querydsl.codegen.GenericExporter.handleClass(GenericExporter.java:513)
at com.querydsl.codegen.GenericExporter.scanPackages(GenericExporter.java:504)
at com.querydsl.codegen.GenericExporter.export(GenericExporter.java:188)
at com.querydsl.maven.AbstractExporterMojo.execute(AbstractExporterMojo.java:162)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
... 20 more

from spring-cloud-services-starters.

Related Issues (20)

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.