nats.java icon indicating copy to clipboard operation
nats.java copied to clipboard

Java client for NATS

Results 81 nats.java issues
Sort by recently updated
recently updated
newest added

Rewired all STDOUTS to this facade and added extensive unit tests. Added new logs for dns resolving and socketdataport timeout to showcase usage in 2 examples where logging can be...

### Observed behavior java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64; ### Expected behavior can run on Android 7.0 ### Server and client version jnats 2.17.1 ### Host environment _No response_ ###...

needs info

I propose an update to the NATS Java Client: making StreamConfiguration and Consumer Configuration classes Serializable. This change is vital for integrating NATS with Apache Flink (Nats-Flink Connector with JetStream...

In reverse proxy environment that supports TLS-terminating(ex. AWS ELB) wss:// connection throws `IOException("SSL connection wanted by client.")` This should only checked when using TLS not websocket

### Observed behavior The signature of [NatsJetStreamMessage.inProgress()](https://github.com/nats-io/nats.java/blob/main/src/main/java/io/nats/client/impl/NatsJetStreamMessage.java#L84) returns void. Its internal implementation merely publishes an Ack message to the reply subject of the NatsJetStreamMessage without waiting for confirmation from JetStream...

enhancement

### Proposed change There should be more documentation around exactly what is thrown when there is an optimistic locking failure related to the KeyValue [update method](https://javadoc.io/static/io.nats/jnats/2.17.1/io/nats/client/KeyValue.html#update-java.lang.String-java.lang.String-long-). ### Use case I...

proposal

### Observed behavior c.f. https://github.com/nats-io/nats.java/pull/913 The problem is that even with the `isNoResolveHostnames ` option set, if the connection is proxied the actual tunneled connection to the NATS server happens...

defect

### Background The nats-server package maintains a list of possible error codes at https://github.com/nats-io/nats-server/blob/main/server/errors.json. The elements of this JSON listing appear to be [ErrorsData](https://github.com/nats-io/nats-server/blob/main/server/jetstream_errors.go#L64) structures which feed a code generator...

proposal

### Observed behavior As described in Slack channel https://natsio.slack.com/archives/CM3T6T7JQ/p1692790156946559 we´re sometimes seeing timeout errors when we try to fetch information from Jetstream. We see that the request goes into the...

needs info

(not sure if limited to the simplified API, but it can be reproduced with it) Calling `drain(Duration.ZERO)` will wait indefinitely when a request timeout happened on a fetch. For this...