Erro netbeans na conexão - nunca vi antes

Não sei oq ta acontecendo… ja formatei meu note e da o mesmo erro… ordem da instalação:
1- jre
2- jdk
3- mysql - do appserv (akele que vem com apache, mais eu só instalo o mysql) appserv-win32-2.5.10
4- netbeans-6.9.1-ml-windows

Em anexo ta o erro, mais pode ser visto em -> http://j2diniz.com/erro.jpg


up… ngm tem idéia? esse acho q eh novo rsrs…
obs.: deu esse erro usando win7 e netbeans 7 com java 7
ai eu formatei e instalei ubuntu 10.04 com netbeans 6.8 e java 6 -> deu mesmo erro :S
ai eu formatei denovo, instalei o win7 novamente, instalei o netbeans 6.9 com java 6 e msm erro 0.o

Oi.

Isso parece ser erro de alguma lib sua.
Em alguma instalação pode estar ocorrendo conflito de lib e causando esse problema.

Eu nunca usei NetBeans e fica difícil ajuda-lo, mas se queres testar apenas a conexão ou crie uma classe ou baixe outro aplicativo, talvez resolva.
Ou simplesmente pesquisa na net, deve ter algo do tipo em algum fórum :slight_smile:

Abraços!

Então… eu pesquisei pelo erro não só aqui no fórum, como no google tbm… e nao achei nada… na verdade achei só que eh outro erro…

O que eu acho estranho é que eu to fazendo (eu acho que to fazendo) igual eu fazia antes…

instalo java, jdk, netbeans, crio projeto e na hora que vai escolhe a persistencia do Hibernate ele da a tela de cria uma nova conexão… ai eu escolho e boa…

tpow se num da certo ali, axo q nem adianta eu prosseguir com a criação do projeto

up… ngm tem idéia? tpow nao acho que seja a lib pq eu to criando o projeto !!!
ou seja ta usando a do netbeans

Seguinte Desinstala o Netbeans e instala novamente
pode ser a versao 6.9 ou a 7.0, acho melhor usar a 7.0

Qual o JDK que está usando?!

entao eu ja fiz isso…
ai agora eu formatei meu pc
instalei o java 6, jdk 6 e netbeans 6.9
:S

Instalou o Mysql?

¬¬’
sim sim… ta instalado e com o schema criado
uso o mysql workbench pra modela minhas tabelas e mexe no banco… ta tudo certinho… pra fala a verdade ja tentei reinstala tudo e nada :S
eu tinha q axa alguem que ja passo por esse erro pra min descobri como arruma :S

Mysql ja foi melhor, a minha conexao esta falhando hehehehe!!

pois é cara… eu ja tive esse problema tbm…
sei não + sem quere vc me deu uma idéia boa… vo testa com o OracleXE
depois eu posto aqui o resultado!!!

O meu o Oracle esá funcionando sem problemas até o SQLServer esta funcionando

Consegui fazer funcionar com o mysql mesmo… está funcionando o CRUD certinho…
porém ao iniciar da um erro, mais o sistema funciona normal!!

Set 17, 2011 12:30:01 PM org.apache.catalina.core.StandardContext reload
Informações: Reloading Context with name [/WebExame] has started
Set 17, 2011 12:30:01 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
Grave: The web application [/WebExame] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Set 17, 2011 12:30:02 PM com.sun.faces.config.ConfigureListener contextInitialized
Informações: Inicializando Mojarra 2.1.1 (FCS 20110408) para o contexto '/WebExame'
Set 17, 2011 12:30:02 PM com.sun.faces.spi.InjectionProviderFactory createInstance
Informações: JSF1048: Anotações PostConstruct/PreDestroy presentes.  Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
Set 17, 2011 12:30:02 PM org.apache.catalina.loader.WebappClassLoader loadClass
Informações: Illegal access: this web application instance has been stopped already.  Could not load com.mysql.jdbc.SQLError.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1562)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
	at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:1768)
	at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:1721)
	at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1040)
	at com.mysql.jdbc.Connection.realClose(Connection.java:2001)
	at com.mysql.jdbc.Connection.cleanup(Connection.java:2575)
	at com.mysql.jdbc.Connection.finalize(Connection.java:1210)
	at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
	at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
	at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:178)

to ferrado mesmo, mais erro diferente, porém meu projeto ta funcionando normal !!
tenho medo da hora de apresenta ele (TCC) da pau :S

NotifyUtil::java.net.SocketException: Software caused connection abort: recv failed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:150)
	at java.net.SocketInputStream.read(SocketInputStream.java:121)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2968)
	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
	at java.io.InputStreamReader.read(InputStreamReader.java:184)
	at java.io.BufferedReader.fill(BufferedReader.java:154)
	at java.io.BufferedReader.readLine(BufferedReader.java:317)
	at java.io.BufferedReader.readLine(BufferedReader.java:382)
	at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:299)

Cara passa pra Oracle isso ae é mais seguro!!

Sobre esse erro vi que no netbeans 6.9.1 tem um log:

java.lang.IllegalArgumentException: Original Node from map {position=101, iconResource=org/netbeans/modules/db/resources/database.gif, name=Databases, original=null, displayName=Banco de dados, instanceCreate=org.openide.nodes.LazyNode[name=null][Name=Databases, displayName=Banco de dados]} is null at org.openide.nodes.LazyNode.switchToOriginal(LazyNode.java:85) at org.openide.nodes.LazyNode$SwitchChildren.addNotify(LazyNode.java:107) at org.openide.nodes.Children.callAddNotify(Children.java:554) at org.openide.nodes.EntrySupport$Default.getArray(EntrySupport.java:758) at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:169) at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:225) at org.openide.nodes.EntrySupport$Default.getNodesCount(EntrySupport.java:229) at org.openide.nodes.Children.getNodesCount(Children.java:488) at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:258) at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:248) at org.openide.explorer.view.VisualizerNode.getChildCount(VisualizerNode.java:325) at javax.swing.tree.DefaultTreeModel.getChildCount(DefaultTreeModel.java:186) at javax.swing.tree.FixedHeightLayoutCache$FHTreeStateNode.expand(FixedHeightLayoutCache.java:1152) at javax.swing.tree.FixedHeightLayoutCache.ensurePathIsExpanded(FixedHeightLayoutCache.java:662) at javax.swing.tree.FixedHeightLayoutCache.setExpandedState(FixedHeightLayoutCache.java:299) at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:1695) at javax.swing.plaf.basic.BasicTreeUI$Handler.treeExpanded(BasicTreeUI.java:3783) at javax.swing.JTree.fireTreeExpanded(JTree.java:2754) at javax.swing.JTree.setExpandedState(JTree.java:3614) at javax.swing.JTree.expandPath(JTree.java:2202) at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2264) at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2251) at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2209) at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3578) at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressedDND(BasicTreeUI.java:3564) at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3523) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) at java.awt.Component.processMouseEvent(Component.java:6501) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6269) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4860) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4686) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2713) at java.awt.Component.dispatchEvent(Component.java:4686) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707) at java.awt.EventQueue.access$000(EventQueue.java:101) at java.awt.EventQueue$3.run(EventQueue.java:666) at java.awt.EventQueue$3.run(EventQueue.java:664) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:680) at java.awt.EventQueue$4.run(EventQueue.java:678) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:677) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)