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

java.lang.IllegalArgumentException Label cannot be null #1039

Closed
helloalbin opened this issue Oct 6, 2021 · 2 comments
Closed

java.lang.IllegalArgumentException Label cannot be null #1039

helloalbin opened this issue Oct 6, 2021 · 2 comments

Comments

@helloalbin
Copy link
Contributor

Getting the following exception in the console when there is a 404 error

{"statusCode":404,"code":"ERR10007","message":"INVALID_REQUEST_PATH","description":"Request path /test cannot be found in the spec.","severity":"ERROR"}
2021-10-06 10:35:15 IST [XNIO-1 task-1] ERROR [] [] Exception:
java.lang.IllegalArgumentException: Label cannot be null.
	at io.prometheus.client.SimpleCollector.labels(SimpleCollector.java:68)
	at com.networknt.metrics.prometheus.PrometheusHandler.lambda$handleRequest$1(PrometheusHandler.java:103)
	at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1350)
	at io.undertow.server.HttpServerExchange.terminateResponse(HttpServerExchange.java:1637)
	at io.undertow.server.Connectors.terminateResponse(Connectors.java:176)
	at io.undertow.server.protocol.http.ServerFixedLengthStreamSinkConduit.channelFinished(ServerFixedLengthStreamSinkConduit.java:58)
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.exitFlush(AbstractFixedLengthStreamSinkConduit.java:316)
	at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:234)
	at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162)
	at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:119)
	at io.undertow.io.AsyncSenderImpl.close(AsyncSenderImpl.java:376)
	at io.undertow.io.DefaultIoCallback.onComplete(DefaultIoCallback.java:54)
	at io.undertow.io.AsyncSenderImpl.invokeOnComplete(AsyncSenderImpl.java:435)
	at io.undertow.io.AsyncSenderImpl.send(AsyncSenderImpl.java:262)
	at io.undertow.io.AsyncSenderImpl.send(AsyncSenderImpl.java:348)
	at io.undertow.io.AsyncSenderImpl.send(AsyncSenderImpl.java:316)
	at io.undertow.io.AsyncSenderImpl.send(AsyncSenderImpl.java:354)
	at com.networknt.handler.LightHttpHandler.setExchangeStatus(LightHttpHandler.java:139)
	at com.networknt.handler.LightHttpHandler.setExchangeStatus(LightHttpHandler.java:73)
	at com.networknt.openapi.OpenApiHandler.handleRequest(OpenApiHandler.java:99)
	at com.networknt.handler.Handler.next(Handler.java:212)
	at com.networknt.handler.Handler.next(Handler.java:233)
	at com.networknt.correlation.CorrelationHandler.handleRequest(CorrelationHandler.java:77)
	at com.networknt.handler.Handler.next(Handler.java:212)
	at com.networknt.handler.Handler.next(Handler.java:233)
	at com.networknt.traceability.TraceabilityHandler.handleRequest(TraceabilityHandler.java:68)
	at com.networknt.handler.Handler.next(Handler.java:212)
	at com.networknt.handler.Handler.next(Handler.java:233)
	at com.networknt.metrics.prometheus.PrometheusHandler.handleRequest(PrometheusHandler.java:114)
	at com.networknt.handler.Handler.next(Handler.java:212)
	at com.networknt.handler.Handler.next(Handler.java:233)
	at com.networknt.exception.ExceptionHandler.handleRequest(ExceptionHandler.java:76)
	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:852)
	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
	at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280)
	at java.base/java.lang.Thread.run(Thread.java:833)
@helloalbin
Copy link
Contributor Author

Pull request 1040

stevehu pushed a commit that referenced this issue Oct 6, 2021
* Update ServerOption.java

* Fixed NPE

Fixed NPE

Co-authored-by: thirtysixmm <42594854+thirtysixmm@users.noreply.github.com>
@stevehu stevehu changed the title java.lang.IllegalArgumentException: Label cannot be null. java.lang.IllegalArgumentException Label cannot be null Oct 6, 2021
@stevehu stevehu closed this as completed Oct 6, 2021
@stevehu
Copy link
Contributor

stevehu commented Oct 6, 2021

younggwon1 pushed a commit to younggwon1/light-4j that referenced this issue Feb 10, 2024
…1039  (networknt#1040)

* Update ServerOption.java

* Fixed NPE

Fixed NPE

Co-authored-by: thirtysixmm <42594854+thirtysixmm@users.noreply.github.com>
younggwon1 pushed a commit to younggwon1/light-4j that referenced this issue Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants