2016-05-17 18 views
0

問題のメッセージはこちらです。java(SQLNonTransient)のデータベースに接続する際のネットワークプロトコルエラーを修正する方法

Java.sql.SQLNonTransientConnectionException: A network protocol error was encountered and the connection has been terminated:The requested command encountered an unarchitected and implementation-specific condition for which there was no architected message (additional information may be available in the derby.log file on the server). 

また、私はダービーログを探しました。そして、それはアクセスがダービーファイル

ava.sql.SQLNonTransientConnectionException: A network protocol error was encountered and the connection has been terminated: The requested command encountered an unarchitected and implementation-specific condition for which there was no architected message (additional information may be available in the derby.log file on the server). 
at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(Unknown Source) 
at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source) 
at org.apache.derby.client.am.ClientStatement.executeQuery(Unknown Source) 
at habersitesihabertakibi.SQLCommand.select(SQLCommand.java:43) 
at habersitesihabertakibi.Site.getKullaniciSayisi(Site.java:423) 
at habersitesihabertakibi.GirisPaneli.<init>(GirisPaneli.java:36) 
at habersitesihabertakibi.GirisPaneli$3.run(GirisPaneli.java:234) 
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) 
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 
at java.awt.EventQueue.access$500(EventQueue.java:97) 
at java.awt.EventQueue$3.run(EventQueue.java:709) 
at java.awt.EventQueue$3.run(EventQueue.java:703) 
at java.security.AccessController.doPrivileged(Native Method) 
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) 
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) 
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) 
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) 
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) 
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) 
Caused by: ERROR 08006: A network protocol error was encountered and the connection has been terminated: The requested command encountered an unarchitected and implementation-specific condition for which there was no architected message (additional information may be available in the derby.log file on the server). 
    at org.apache.derby.client.net.NetConnectionReply.parseCMDCHKRM(Unknown Source) 
    at org.apache.derby.client.net.NetStatementReply.parsePrepareError(Unknown Source) 
    at org.apache.derby.client.net.NetStatementReply.parsePRPSQLSTTreply(Unknown Source) 
    at org.apache.derby.client.net.NetStatementReply.readPrepareDescribeOutput(Unknown Source) 
    at org.apache.derby.client.net.StatementReply.readPrepareDescribeOutput(Unknown Source) 
    at org.apache.derby.client.net.NetStatement.readPrepareDescribeOutput_(Unknown Source) 
    at 

org.apache.derby.client.am.ClientStatement.readPrepareDescribeOutput(Unknown Source) 
    at org.apache.derby.client.am.ClientStatement.flowExecute(Unknown Source) 
    at org.apache.derby.client.am.ClientStatement.executeQueryX(Unknown Source) 
    ... 19 more 
Caused by: ERROR XSDG3: DERBY SQL error: ERRORCODE: 45000, SQLSTATE: XSDG3, SQLERRMC: Meta-data for unknown could not be accessed to read C:\Users\bilal.harmansa\.netbeans-derby\habersitesitakibi\seg0\c860.dat::SQLSTATE: XJ001 
... 28 more 

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException 
    at habersitesihabertakibi.Site.getKullaniciSayisi(Site.java:426) 
    at habersitesihabertakibi.GirisPaneli.<init>(GirisPaneli.java:36) 
    at habersitesihabertakibi.GirisPaneli$3.run(GirisPaneli.java:234) 
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) 
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 
    at java.awt.EventQueue.access$500(EventQueue.java:97) 
    at java.awt.EventQueue$3.run(EventQueue.java:709) 
    at java.awt.EventQueue$3.run(EventQueue.java:703) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) 
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) 
    at 

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(E 

ventDispatchThread.java:105) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) 
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) 
BUILD STOPPED (total time: 5 minutes 1 second) 

私は私が接続するためにクリックされた意味のデータベースに接続できるように選手の一人のために拒否されたと、それが接続されているように私に見えたし、私はテーブルを見ることができますが、私はデータベース上のビュー件のデータを傾けると言います。私はしばらくインターネットで検索しましたが、解決策を見つけることができませんでした。 2日前にnetbeansを更新してから動作しなくなりました:)

答えて

0

私は何かをして、今動作します。なぜ私は考えていないが、私が何をしたか教えてくれるだろう。私はDに "の.netbeans-ダービー" にコピーした後、\ユーザーがbilal.harmansa.netbeans-ダービー

を\::その後\

は、まず私は、NetBeans

Cに私のデータベースファイルのパスを得ました私は、NetBeansでパスを変更した(NetBeansの>サービス> JavaDBは、右の私はDのように変化のプロパティ]> [データベースの場所

クリックします。。\の.netbeans-ダービーを

私は、NetBeansを閉じて再度開き、私はそれを接続しようとしました。私はいくつかの赤い線を譲ったが、それは接続され、私は見ることができた私のデータ。私はの.netbeans-ダービーを削除

bilal.harmansa.netbeans-ダービー\ \ユーザー:その後、私は Cで元のパスに行ってきました。その後、ドライバD:\に.netbeans-derbyをコピーし、

C:\ Users \ bilal.harmansa \に貼り付けました。

最後には、NetBeansを行って、元のようにデータベースの場所を設定します(私たちは、Dとして、それを変更:の.netbeans-ダービー)。:\ユーザーは再びbilal.harmansa.netbeans-ダービー

を\それは

Cでなければなりません。

それはそれです。おそらく、あなたが同じ問題を抱えているならば、おそらく動作します。私はアクセスが拒否されたファイルの原因をcantが読んでいると言っていました。あなたもあなたの問題を解決できることを願っています:)

関連する問題