[ 
https://issues.apache.org/jira/browse/STREAMPIPES-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Obermeier updated STREAMPIPES-479:
-----------------------------------------
    Description: 
Hi,

if I create a processor with streampipes-archetype-extensions-jvm I get a 
message [1]

"APPLICATION FAILED TO START ... The following method did not exist: ... 
setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V"

  
One solution is to add: 
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>${spring.version}</version>
        </dependency>

Is this a good solution?
If yes, should it be placed in the archetype pom or streampipes-container-base?

streampipes-container-base has the variable spring.version

 

[1]

  | ***************************
  | APPLICATION FAILED TO START
  | ***************************
  |
  | Description:
  |
  | An attempt was made to call a method that does not exist. The attempt was 
made from the following location:
  |
  |     
org.springframework.boot.SpringApplication.run(SpringApplication.java:336)
  |
  | The following method did not exist:
  |
  |     
org/springframework/context/ConfigurableApplicationContext.setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V
  |
  | The method's class, 
org.springframework.context.ConfigurableApplicationContext, is available from 
the following locations:
  |
  |     
jar:[file:/streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/org/springframework/context/ConfigurableApplicationContext.class|file:///streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/org/springframework/context/ConfigurableApplicationContext.class]
  |
  | The class hierarchy was loaded from the following locations:
  |
  |     org.springframework.context.ConfigurableApplicationContext: 
jar:[file:/streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/|file:///streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/]
  |
  |
  | Action:
  |
  | Correct the classpath of your application so that it contains a single, 
compatible version of org.springframework.context.ConfigurableApplicationContext
  |

  was:
Hi,

if I create a processor with streampipes-archetype-extensions-jvm I get a 
message [1]

"APPLICATION FAILED TO START ... The following method did not exist: ... 
setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V"

        
One solution is to add: 
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>${spring.version}</version>
        </dependency>

Is this a good solution?
If yes, should it be placed in the archetype pom or streampipes-container-base?

streampipes-container-base has the variable spring.version

 

[1]

  | ***************************
  | APPLICATION FAILED TO START
  | ***************************
  |
  | Description:
  |
  | An attempt was made to call a method that does not exist. The attempt was 
made from the following location:
  |
  |     
org.springframework.boot.SpringApplication.run(SpringApplication.java:336)
  |
  | The following method did not exist:
  |
  |     
org/springframework/context/ConfigurableApplicationContext.setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V
  |
  | The method's class, 
org.springframework.context.ConfigurableApplicationContext, is available from 
the following locations:
  |
  |     
jar:[file:/streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/org/springframework/context/ConfigurableApplicationContext.class|file:///streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/org/springframework/context/ConfigurableApplicationContext.class]
  |
  | The class hierarchy was loaded from the following locations:
  |
  |     org.springframework.context.ConfigurableApplicationContext: 
jar:[file:/streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/|file:///streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/]
  |
  |
  | Action:
  |
  | Correct the classpath of your application so that it contains a single, 
compatible version of org.springframework.context.ConfigurableApplicationContext
  |


> Custom streampipes extensions missing Spring method
> ---------------------------------------------------
>
>                 Key: STREAMPIPES-479
>                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-479
>             Project: StreamPipes
>          Issue Type: Bug
>          Components: Pipeline Elements
>            Reporter: Stefan Obermeier
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.69.0
>
>
> Hi,
> if I create a processor with streampipes-archetype-extensions-jvm I get a 
> message [1]
> "APPLICATION FAILED TO START ... The following method did not exist: ... 
> setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V"
>   
> One solution is to add: 
>         <dependency>
>             <groupId>org.springframework</groupId>
>             <artifactId>spring-context-support</artifactId>
>             <version>${spring.version}</version>
>         </dependency>
> Is this a good solution?
> If yes, should it be placed in the archetype pom or 
> streampipes-container-base?
> streampipes-container-base has the variable spring.version
>  
> [1]
>   | ***************************
>   | APPLICATION FAILED TO START
>   | ***************************
>   |
>   | Description:
>   |
>   | An attempt was made to call a method that does not exist. The attempt was 
> made from the following location:
>   |
>   |     
> org.springframework.boot.SpringApplication.run(SpringApplication.java:336)
>   |
>   | The following method did not exist:
>   |
>   |     
> org/springframework/context/ConfigurableApplicationContext.setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V
>   |
>   | The method's class, 
> org.springframework.context.ConfigurableApplicationContext, is available from 
> the following locations:
>   |
>   |     
> jar:[file:/streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/org/springframework/context/ConfigurableApplicationContext.class|file:///streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/org/springframework/context/ConfigurableApplicationContext.class]
>   |
>   | The class hierarchy was loaded from the following locations:
>   |
>   |     org.springframework.context.ConfigurableApplicationContext: 
> jar:[file:/streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/|file:///streampipes-extensions-service.jar!/BOOT-INF/lib/spring-context-5.1.5.RELEASE.jar!/]
>   |
>   |
>   | Action:
>   |
>   | Correct the classpath of your application so that it contains a single, 
> compatible version of 
> org.springframework.context.ConfigurableApplicationContext
>   |



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to