Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6729717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:19:25+00:00 2026-05-26T10:19:25+00:00

I am trying to adopt that example into my existing Spring application. However I

  • 0

I am trying to adopt that example into my existing Spring application. However I get that error:

Error creating bean with name 'mongo': Invocation of init method failed; nested exception is com.mongodb.MongoInternalException: DBPort.findOne failed

I get admin panel with that URL:

http://localhost:28017/

so should I use 28017 or 27017 as port number at my configuration file. I tried to use 2.2 instead of 2.4 as Java connecter but I get different error:

com.mongodb.DBTCPConnector$MyPort error
SEVERE: MyPort.error called
java.io.EOFException
    at org.bson.io.Bits.readFully(Bits.java:32)
    ...

Second error may be related to joda when I searched about it but I don’t know how to solve it.

Any ideas about solving problem?

PS1:

I use that at my configuration file:

<bean id="mongoTemplate" class="org.springframework.data.document.mongodb.MongoTemplate">
    <constructor-arg ref="mongo"/>
    <constructor-arg value="userMongoDb"/>
    <constructor-arg value="mycollection"/>
</bean>

However at the line:

<constructor-arg ref="mongo"/>

It says that:

can no resolve bean mongo

at my Intellij IDEA. Why it does that I didn’t understand because everything seems OK.

PS2:

I use Ubuntu 11.4 on a 64 bit server. First error maybe related to my OS.

PS3:

When I use 2.5.2 as mongo java driver I get that error:

com.mongodb.DBTCPConnector fetchMaxBsonObjectSize
WARNING: null
java.io.EOFException
    at org.bson.io.Bits.readFully(Bits.java:37)
        ...

PS4:

There is another question and I will check if error is related to Ubuntu Software Center or not.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:19:26+00:00Added an answer on May 26, 2026 at 10:19 am

    I used 27017 as port to connect. Also that question’s answer is important: MongoDb connection refused I installed my Mongo DB not from Ubuntu Update Center and it works well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to bind a JTextField to a bean's field that is a
I have been trying to find a collision avoidance example that I can adapt
I'm trying to get nHibernate to use second-level cache with a many-to-one relationship, however
I am trying to adapt a perl script that is used to generate a
I'm trying to adopt some best practices to keep my python code efficient. I've
I am trying to adapt an existing code to a 64 bit machine. The
I am trying to adapt a simple WPF application to use the Model-View-ViewModel pattern.
I'm trying to adapt this DES encrypting example to AES, so I made the
I am trying to get more adept and my C programming and I was
Trying to get my css / C# functions to look like this: body {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.