Hey guys. I'm having a weird issue with the rudder...
# support
k
Hey guys. I'm having a weird issue with the rudderstack Java sdk. Sending the event from the "analytics-sample" project from github works fine. However the same code doesn't work in my sample project i spun up just to test the API. Even after I copied and pasted the same code in the sample client, it works! Was wondering if there's anything I need to do extra in my project to allow it to work. The logs stop at "Uploading batch 1"
q
Are you passing the values for
writeKey
and
dataplaneUrl
in this code block?
Copy code
RudderAnalytics rudder = RudderAnalytics.builder("writeKey")
      .setDataPlaneUrl("dataplaneUrl")
k
Yeah, I'm passing the actual correct values
q
Please share the error log
k
No errors in the logs, using the same logging plugin from the sample project, this is my logging output: DEBUG: 3.0.0 VERBOSE: Flushing messages. VERBOSE: Batching 1 message(s) into batch 1. VERBOSE: Stopping the Looper VERBOSE: Looper stopped VERBOSE: Uploading batch 1. VERBOSE: looper executor terminated normally. VERBOSE: network executor terminated normally. VERBOSE: Analytics client shut down in 29 ms Process finished with exit code 0
k
CC <!subteam^S04QT1G74Q3|@sdk-team> @narrow-wolf-10290 Can you please help here ? Also @kind-gpu-9974, Can you please share the Java SDK version you are using and the initialization code snippet ?