Can't Build Reports Using MongoDB On Windows 8

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Using iReport 5.1.0 and iReport 5.2.0 on Windows 8, I am able to successfully connect to a MongoDB instance, but iReport is unable to query the database.

When I use iReport 5.1.0 on Ubuntu, I am able to connect to and query the database.

Does anyone have any thoughts on why this might be?  Could this be related to the Java Virtual Machine I'm using?

On Ubuntu I'm using an opensource JVM, but on windows I'm using the latest Oracle SDK.

pnichols_1's picture
Joined: Jul 16 2013 - 3:35pm
Last seen: 8 years 9 months ago

1 Answer:

Can you connect to mongo from your windows box outside iReport?

since you are able to do everything from your Ubuntu box, I'm thinking that it may be a firewall issue or an antivirus preventing you to access port 27017 

 

marianol's picture
12068
Joined: Sep 13 2011 - 8:04am
Last seen: 3 years 9 months ago

I can connect to MongoDB on Windows just fine.

pnichols_1 - 8 years 9 months ago

What are you using to connect to mongo form Windows, the command line utility or another utility like UMongo http://www.girbal.net/umongo/ ?

Also can you check what error is iReport showing and post the IDE log of iReport (once you get the connection error go to the VIEW menue and select IDE LOG) that will show you the full stack trace and will give you more information.

Here is an example of a failed connection (I used a diferent port)

WARNING [com.mongodb.tcp]: Exception determining maxBSON size using0
java.io.IOException: couldn't connect to [Mariano-MacBook-Pro.local/10.0.0.9:27018] bc:java.net.ConnectException: Connection refused
at com.mongodb.DBPort._open(DBPort.java:228)
at com.mongodb.DBPort.go(DBPort.java:112)

marianol - 8 years 9 months ago
Feedback
randomness