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
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
nel
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
Abraços!
alandiniz
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
alandiniz
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
snowblacksoul
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?!
alandiniz
entao eu ja fiz isso…
ai agora eu formatei meu pc
instalei o java 6, jdk 6 e netbeans 6.9
:S
snowblacksoul
Instalou o Mysql?
alandiniz
¬¬’
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
snowblacksoul
Mysql ja foi melhor, a minha conexao esta falhando hehehehe!!
alandiniz
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!!!
snowblacksoul
O meu o Oracle esá funcionando sem problemas até o SQLServer esta funcionando
alandiniz
Consegui fazer funcionar com o mysql mesmo… está funcionando o CRUD certinho…
porém ao iniciar da um erro, mais o sistema funciona normal!!
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)