Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Im getting a NullPointerException when I call the getProvider method. What is up?

0
0 Posted

Im getting a NullPointerException when I call the getProvider method. What is up?

0
0

One of two things is happening. Most often it is simply that you don’t have the active-jms.properties file in your working directory. Try printing out your working directory to make sure you are indeed where you think you are (you can do this by calling getSystemProperty(“user.dir”)). The other option is that you are passing in the name of a provider that either isn’t spelled correctly or isn’t in the correct case–provider names are case sensative. Your best bet is to copy and paste the provider name from your active-jms.properties file.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123