GitHub user liuxiaocs7 added a comment to the discussion: Impl my first data 
processor question

Hi, @dominikriemer I tried again, first of all, there was a problem with the 
log framework conflict, and I switched to use logback temporary:

```shell
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is 
not a Logback LoggerContext but Logback is on the classpath. Either remove 
Logback or the competing implementation (class 
org.slf4j.helpers.NOPLoggerFactory loaded from 
file:/D:/Development/Tools/Maven/openrepository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar).
 If you are using WebLogic you will need to add 'org.slf4j' to 
prefer-application-packages in WEB-INF/weblogic.xml: 
org.slf4j.helpers.NOPLoggerFactory
        at org.springframework.util.Assert.instanceCheckFailed(Assert.java:713)
        at org.springframework.util.Assert.isInstanceOf(Assert.java:632)
```

add dependency:

```
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.2.3</version>
</dependency>
```

override `SP_DEBUG` and `SP_PORT` in my IDEA configuration:

![image](https://user-images.githubusercontent.com/42756849/226096358-f8db430e-8530-4aad-b08c-bc17949ac1e0.png)

But when running `Init`, it exited abnormally without any log.

```shell
2023-03-18T17:05:46.360+08:00  INFO   --- [           main] 
o.a.s.commons.networking.Networking      : Using auto-discovered IP: 
192.168.32.1
2023-03-18T17:05:46.364+08:00  INFO   --- [           main] 
o.a.s.commons.networking.Networking      : Using port from provided environment 
variable SP_PORT: 9090
2023-03-18T17:05:46.368+08:00  INFO   --- [           main] 
o.a.s.e.m.init.DeclarersSingleton        : Registering 0 configs in key/value 
store
2023-03-18T17:05:46.371+08:00  INFO   --- [           main] 
o.a.s.s.consul.ConsulProvider            : Checking if consul is available on 
host localhost and port 8500
2023-03-18T17:05:46.373+08:00  INFO   --- [           main] 
o.a.s.s.consul.ConsulProvider            : Successfully connected to Consul on 
host localhost
2023-03-18T17:05:46.633+08:00  INFO   --- [           main] 
o.a.s.s.consul.SpConsulServiceDiscovery  : Successfully registered service at 
Consul: org.example-0d6dNq

Process finished with exit code 1
```

GitHub link: 
https://github.com/apache/streampipes/discussions/1422#discussioncomment-5352249

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@streampipes.apache.org

Reply via email to