jonyangx commented on issue #3271:
URL:
https://github.com/apache/incubator-eventmesh/issues/3271#issuecomment-1445679359
@mxsm I start eventmesh http server using
org.apache.eventmesh.runtime.boot.EventMeshStartup, and use HTTP class as
client .
Test code is success.
2023-02-27 12:13:04,539 main DEBUG Apache Log4j Core 2.17.1 initializing
configuration
XmlConfiguration[location=/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml]
2023-02-27 12:13:04,544 main DEBUG Installed 1 script engine
2023-02-27 12:13:04,707 main DEBUG Oracle Nashorn version: 1.8.0_271,
language: ECMAScript, threading: Not Thread Safe, compile: true, names:
[nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript],
factory class: jdk.nashorn.api.scripting.NashornScriptEngineFactory
2023-02-27 12:13:04,708 main DEBUG PluginManager 'Core' found 127 plugins
2023-02-27 12:13:04,708 main DEBUG PluginManager 'Level' found 0 plugins
2023-02-27 12:13:04,710 main DEBUG PluginManager 'Lookup' found 16 plugins
2023-02-27 12:13:04,711 main DEBUG Building Plugin[name=layout,
class=org.apache.logging.log4j.core.layout.PatternLayout].
2023-02-27 12:13:04,719 main DEBUG PluginManager 'TypeConverter' found 26
plugins
2023-02-27 12:13:04,728 main DEBUG
PatternLayout$Builder(pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t]
%c{1}(%F:%L) - %m%n", PatternSelector=null,
Configuration(/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml),
Replace=null, charset="null", alwaysWriteExceptions="null",
disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
2023-02-27 12:13:04,728 main DEBUG PluginManager 'Converter' found 45 plugins
2023-02-27 12:13:04,736 main DEBUG Building Plugin[name=appender,
class=org.apache.logging.log4j.core.appender.ConsoleAppender].
2023-02-27 12:13:04,741 main DEBUG
ConsoleAppender$Builder(target="SYSTEM_OUT", follow="null", direct="null",
bufferedIo="null", bufferSize="null", immediateFlush="null",
ignoreExceptions="null", PatternLayout(%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t]
%c{1}(%F:%L) - %m%n), name="console",
Configuration(/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml),
Filter=null, ={})
2023-02-27 12:13:04,742 main DEBUG Starting OutputStreamManager
SYSTEM_OUT.false.false
2023-02-27 12:13:04,743 main DEBUG Building Plugin[name=appenders,
class=org.apache.logging.log4j.core.config.AppendersPlugin].
2023-02-27 12:13:04,743 main DEBUG createAppenders(={console})
2023-02-27 12:13:04,743 main DEBUG Building Plugin[name=AppenderRef,
class=org.apache.logging.log4j.core.config.AppenderRef].
2023-02-27 12:13:04,746 main DEBUG createAppenderRef(ref="console",
level="null", Filter=null)
2023-02-27 12:13:04,746 main DEBUG Building Plugin[name=asyncRoot,
class=org.apache.logging.log4j.core.async.AsyncLoggerConfig$RootLogger].
2023-02-27 12:13:04,747 main DEBUG createLogger(additivity="null",
level="DEBUG", includeLocation="true", ={console}, ={},
Configuration(/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml),
Filter=null)
2023-02-27 12:13:04,751 main DEBUG Building Plugin[name=AppenderRef,
class=org.apache.logging.log4j.core.config.AppenderRef].
2023-02-27 12:13:04,752 main DEBUG createAppenderRef(ref="console",
level="null", Filter=null)
2023-02-27 12:13:04,753 main DEBUG Building Plugin[name=asyncLogger,
class=org.apache.logging.log4j.core.async.AsyncLoggerConfig].
2023-02-27 12:13:04,754 main DEBUG createLogger(additivity="false",
level="DEBUG", name="org.apache.eventmesh.client", includeLocation="true",
={console}, ={},
Configuration(/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml),
Filter=null)
2023-02-27 12:13:04,754 main DEBUG Building Plugin[name=loggers,
class=org.apache.logging.log4j.core.config.LoggersPlugin].
2023-02-27 12:13:04,754 main DEBUG createLoggers(={root,
org.apache.eventmesh.client})
2023-02-27 12:13:04,755 main DEBUG Configuration
XmlConfiguration[location=/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml]
initialized
2023-02-27 12:13:04,755 main DEBUG Starting configuration
XmlConfiguration[location=/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml]
2023-02-27 12:13:04,756 main DEBUG Log4j2 ConfigurationScheduler starting 1
threads
2023-02-27 12:13:04,770 main DEBUG Starting AsyncLoggerConfig disruptor for
this configuration with ringbufferSize=4096,
waitStrategy=TimeoutBlockingWaitStrategy,
exceptionHandler=org.apache.logging.log4j.core.async.AsyncLoggerConfigDefaultExceptionHandler@503d687a...
2023-02-27 12:13:04,770 main DEBUG Started configuration
XmlConfiguration[location=/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml]
OK.
2023-02-27 12:13:04,770 main DEBUG Shutting down OutputStreamManager
SYSTEM_OUT.false.false-1
2023-02-27 12:13:04,771 main DEBUG OutputStream closed
2023-02-27 12:13:04,771 main DEBUG Shut down OutputStreamManager
SYSTEM_OUT.false.false-1, all resources released: true
2023-02-27 12:13:04,771 main DEBUG Appender DefaultConsole-1 stopped with
status true
2023-02-27 12:13:04,771 main DEBUG Stopped
org.apache.logging.log4j.core.config.DefaultConfiguration@6a5fc7f7 OK
2023-02-27 12:13:04,805 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93
2023-02-27 12:13:04,808 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93,component=StatusLogger
2023-02-27 12:13:04,809 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93,component=ContextSelector
2023-02-27 12:13:04,810 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93,component=Loggers,name=
2023-02-27 12:13:04,810 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93,component=Loggers,name=,subtype=RingBuffer
2023-02-27 12:13:04,810 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93,component=Loggers,name=org.apache.eventmesh.client
2023-02-27 12:13:04,811 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93,component=Loggers,name=org.apache.eventmesh.client,subtype=RingBuffer
2023-02-27 12:13:04,811 main DEBUG Registering MBean
org.apache.logging.log4j2:type=73d16e93,component=Appenders,name=console
2023-02-27 12:13:04,813 main DEBUG
org.apache.logging.log4j.core.util.SystemClock does not support precise
timestamps.
2023-02-27 12:13:04,814 main DEBUG Reconfiguration complete for
context[name=73d16e93] at URI
/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml
(org.apache.logging.log4j.core.LoggerContext@73700b80) with optional
ClassLoader: null
2023-02-27 12:13:04,814 main DEBUG Shutdown hook enabled. Registering a new
one.
2023-02-27 12:13:04,814 main DEBUG LoggerContext[name=73d16e93,
org.apache.logging.log4j.core.LoggerContext@73700b80] started OK.
2023-02-27 12:13:05,233 DEBUG [main]
InternalLoggerFactory(InternalLoggerFactory.java:63) - Using SLF4J as the
default logging framework
2023-02-27 12:13:05,237 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:495) - -Dio.netty.noUnsafe: false
2023-02-27 12:13:05,237 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:998) - Java version: 8
2023-02-27 12:13:05,238 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:136) - sun.misc.Unsafe.theUnsafe:
available
2023-02-27 12:13:05,238 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:160) - sun.misc.Unsafe.copyMemory:
available
2023-02-27 12:13:05,238 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:192) - sun.misc.Unsafe.storeFence:
available
2023-02-27 12:13:05,239 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:235) - java.nio.Buffer.address:
available
2023-02-27 12:13:05,239 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:306) - direct buffer constructor:
available
2023-02-27 12:13:05,240 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:384) - java.nio.Bits.unaligned:
available, true
2023-02-27 12:13:05,240 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:458) -
jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to
Java9
2023-02-27 12:13:05,240 DEBUG [main]
PlatformDependent0(PlatformDependent0.java:481) -
java.nio.DirectByteBuffer.<init>(long, int): available
2023-02-27 12:13:05,240 DEBUG [main]
PlatformDependent(PlatformDependent.java:1159) - sun.misc.Unsafe: available
2023-02-27 12:13:05,240 DEBUG [main]
PlatformDependent(PlatformDependent.java:1289) - -Dio.netty.tmpdir:
/var/folders/12/dc96p6f11pg6ldnjp100dkch0000gp/T (java.io.tmpdir)
2023-02-27 12:13:05,240 DEBUG [main]
PlatformDependent(PlatformDependent.java:1368) - -Dio.netty.bitMode: 64
(sun.arch.data.model)
2023-02-27 12:13:05,241 DEBUG [main]
PlatformDependent(PlatformDependent.java:1127) - Platform: MacOS
2023-02-27 12:13:05,241 DEBUG [main]
PlatformDependent(PlatformDependent.java:178) - -Dio.netty.maxDirectMemory:
7635730432 bytes
2023-02-27 12:13:05,241 DEBUG [main]
PlatformDependent(PlatformDependent.java:185) -
-Dio.netty.uninitializedArrayAllocationThreshold: -1
2023-02-27 12:13:05,242 DEBUG [main] CleanerJava6(CleanerJava6.java:92) -
java.nio.ByteBuffer.cleaner(): available
2023-02-27 12:13:05,242 DEBUG [main]
PlatformDependent(PlatformDependent.java:205) - -Dio.netty.noPreferDirect: false
2023-02-27 12:13:05,259 DEBUG [main] HttpUtils(HttpUtils.java:144) - POST
http://127.0.0.1:10105 HTTP/1.1
2023-02-27 12:13:05,554 DEBUG [main] HttpUtils(HttpUtils.java:63) -
HttpUtils.ResponseHolder(response={"retCode":0,"retMsg":"successSendResult[topic=eventmesh-async-topic,
messageId=0]","resTime":1677471185513})
2023-02-27 12:13:05,585 pool-1-thread-1 DEBUG Stopping
LoggerContext[name=73d16e93,
org.apache.logging.log4j.core.LoggerContext@73700b80]
2023-02-27 12:13:05,585 pool-1-thread-1 DEBUG Stopping
LoggerContext[name=73d16e93,
org.apache.logging.log4j.core.LoggerContext@73700b80]...
2023-02-27 12:13:05,587 pool-1-thread-1 DEBUG Shutting down
OutputStreamManager SYSTEM_OUT.false.false
2023-02-27 12:13:05,587 pool-1-thread-1 DEBUG OutputStream closed
2023-02-27 12:13:05,587 pool-1-thread-1 DEBUG Shut down OutputStreamManager
SYSTEM_OUT.false.false, all resources released: true
2023-02-27 12:13:05,588 pool-1-thread-1 DEBUG Appender console stopped with
status true
2023-02-27 12:13:05,588 pool-1-thread-1 DEBUG Log4j2 ConfigurationScheduler
shutting down threads in
java.util.concurrent.ScheduledThreadPoolExecutor@34294cbf[Running, pool size =
1, active threads = 0, queued tasks = 1, completed tasks = 0]
2023-02-27 12:13:05,588 pool-1-thread-1 DEBUG Stopped
XmlConfiguration[location=/Users/apple/opensource/incubator-eventmesh/eventmesh-sdk-java/build/resources/test/log4j2.xml]
OK
2023-02-27 12:13:05,588 pool-1-thread-1 DEBUG Stopped
LoggerContext[name=73d16e93,
org.apache.logging.log4j.core.LoggerContext@73700b80] with status true
BUILD SUCCESSFUL in 11s
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]