Problem when parsing dao.xml

View: New views
11 Messages — Rating Filter:   Alert me  

Problem when parsing dao.xml

by davidesi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi at all.
I am trying to make a simple example with ibatis, but I get a error when parsing dao.xml


Exception in thread "main" java.lang.RuntimeException: Could not initialize DAOConfig.  Cause: com.ibatis.dao.client.DaoException: Error while configuring DaoManager.  Cause: com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
    at es.foro.dao.DAOConfig.getDAOManager(DAOConfig.java:37)
    at es.foro.presentacion.Main.main(Main.java:16)

Anybody know what might be the connection error while parsing the xml? It may be a thing of the dtd? Why then do work other applications?


Re: Problem when parsing dao.xml

by Larry Meadors :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you are creating an app that uses the ibatis dao... Stop. Now. Seriously.

It's dead.

Look at using Guice (my preference) or Spring (if you love xml).

Larry

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...


Re: Problem when parsing dao.xml

by Ivan Bojer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Why is it dead? I've been using it successfully in my project(s) so I
am really curious why are you saying this?

On Wed, Oct 7, 2009 at 9:30 AM, Larry Meadors <larry.meadors@...> wrote:

> If you are creating an app that uses the ibatis dao... Stop. Now. Seriously.
>
> It's dead.
>
> Look at using Guice (my preference) or Spring (if you love xml).
>
> Larry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@...
> For additional commands, e-mail: user-java-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...


Re: Problem when parsing dao.xml

by bgoodin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is deprecated and no additional work is being done on it or with it to ensure it works with future ibatis versions.

Brandon Goodin

On Wed, Oct 7, 2009 at 10:16 AM, Ivan Bojer <ibojer@...> wrote:
Why is it dead? I've been using it successfully in my project(s) so I
am really curious why are you saying this?

On Wed, Oct 7, 2009 at 9:30 AM, Larry Meadors <larry.meadors@...> wrote:
> If you are creating an app that uses the ibatis dao... Stop. Now. Seriously.
>
> It's dead.
>
> Look at using Guice (my preference) or Spring (if you love xml).
>
> Larry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@...
> For additional commands, e-mail: user-java-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...



Re: Problem when parsing dao.xml

by Clinton Begin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's dead as in: "we don't work on it anymore".

It can be alive for you... you can grab the source from the site and integrate it as part of your own software, and thus change it to be whatever you need it to be

That said, even I've switched to Guice... Guice might be the greatest innovation in the Java Programming Language since... errrr.  Yep, the greatest.  :-)

Cheers,
Clinton

On Wed, Oct 7, 2009 at 11:16 AM, Ivan Bojer <ibojer@...> wrote:
Why is it dead? I've been using it successfully in my project(s) so I
am really curious why are you saying this?

On Wed, Oct 7, 2009 at 9:30 AM, Larry Meadors <larry.meadors@...> wrote:
> If you are creating an app that uses the ibatis dao... Stop. Now. Seriously.
>
> It's dead.
>
> Look at using Guice (my preference) or Spring (if you love xml).
>
> Larry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@...
> For additional commands, e-mail: user-java-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...



Re: Problem when parsing dao.xml

by Clinton Begin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

PS:  It's probably the XML parser attempting to connect to the remote DTD.

Clinton 

On Wed, Oct 7, 2009 at 8:52 AM, David <david@...> wrote:
Hi at all.
I am trying to make a simple example with ibatis, but I get a error when parsing dao.xml


Exception in thread "main" java.lang.RuntimeException: Could not initialize DAOConfig.  Cause: com.ibatis.dao.client.DaoException: Error while configuring DaoManager.  Cause: com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.net.ConnectException: Connection timed out: connect
Caused by: java.net.ConnectException: Connection timed out: connect
    at es.foro.dao.DAOConfig.getDAOManager(DAOConfig.java:37)
    at es.foro.presentacion.Main.main(Main.java:16)

Anybody know what might be the connection error while parsing the xml? It may be a thing of the dtd? Why then do work other applications?



Re: Problem when parsing dao.xml

by Larry Meadors :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nah, mockito is cooler than even guice. It's the shiz.

If you can't test your code with mockito...go home or become a manager. ;-)

Larry

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...


Re: Problem when parsing dao.xml

by nmaves :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yeah but how cool are unit tests that use mockito and guice!  BAM!  f'in slick!

On Wed, Oct 7, 2009 at 12:13 PM, Larry Meadors <larry.meadors@...> wrote:
Nah, mockito is cooler than even guice. It's the shiz.

If you can't test your code with mockito...go home or become a manager. ;-)

Larry

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...



Re: Problem when parsing dao.xml

by bgoodin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

+infinity

but RSpec + Ruby + Rails makes me hotter

Brandon

On Wed, Oct 7, 2009 at 11:47 PM, Nathan Maves <nathan.maves@...> wrote:
yeah but how cool are unit tests that use mockito and guice!  BAM!  f'in slick!


On Wed, Oct 7, 2009 at 12:13 PM, Larry Meadors <larry.meadors@...> wrote:
Nah, mockito is cooler than even guice. It's the shiz.

If you can't test your code with mockito...go home or become a manager. ;-)

Larry

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...




Re: Problem when parsing dao.xml

by bgoodin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

oops... apologies... i forgot we are on the ibatis user list o_0

Brandon

On Wed, Oct 7, 2009 at 11:51 PM, Brandon Goodin <brandon.goodin@...> wrote:
+infinity

but RSpec + Ruby + Rails makes me hotter

Brandon


On Wed, Oct 7, 2009 at 11:47 PM, Nathan Maves <nathan.maves@...> wrote:
yeah but how cool are unit tests that use mockito and guice!  BAM!  f'in slick!


On Wed, Oct 7, 2009 at 12:13 PM, Larry Meadors <larry.meadors@...> wrote:
Nah, mockito is cooler than even guice. It's the shiz.

If you can't test your code with mockito...go home or become a manager. ;-)

Larry

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@...
For additional commands, e-mail: user-java-help@...





Re: Problem when parsing dao.xml

by cmathrusse :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Nathan,

I know this is not the proper list for this question but seeing as you are stating " how cool are unit tests that use mockito and guice! ", I was wondering if you could provide us with a simple example of how you are using Mockito with iBatis. While the Mockito website has some simple examples of how to use the library I think it would help me a great deal if I saw an actual real-world example with iBatis. If Mockito is so cool then I would like to become more familiar with it.

Thanks....

Chris Mathrusse
christopher.mathrusse@...



Re: Problem when parsing dao.xml

Nathan Maves to: user-java, larry.meadors
10/07/2009 11:46 PM

Cc: Clinton Begin

Please respond to user-java







yeah but how cool are unit tests that use mockito and guice!  BAM!  f'in slick!

On Wed, Oct 7, 2009 at 12:13 PM, Larry Meadors <larry.meadors@...> wrote:
Nah, mockito is cooler than even guice. It's the shiz.

If you can't test your code with mockito...go home or become a manager. ;-)


Larry

---------------------------------------------------------------------
To unsubscribe, e-mail:
user-java-unsubscribe@...
For additional commands, e-mail:
user-java-help@...