1

Java クラスから Intersystems キャッシュに接続する例を作成しようとしています。Intersystems Cache` の eXtreme Data Objects フレームワークを使用しています。ここにソースコードがあります -

package demo;

import com.intersys.xdo.DatabaseConnection;
import com.intersys.xdo.DatabaseConnectionFactory;
import com.intersys.xdo.XDOException;

class XDODemo {
    public static void main(String[] args) {

        java.sql.Connection jdbcConnection = null;
        DatabaseConnection xdoConnection = null;
        String namespc = "USER";
        String url = "jdbc:Cache://localhost:1972/" + namespc;
        String user = "admin";
        String password = "admin";
        try {
            xdoConnection = DatabaseConnectionFactory
                    .createJNIDatabaseConnection();
            xdoConnection.connect(namespc, user, password);
        } catch (XDOException e) {
            System.out.println(e.getMessage());
        } catch (Exception e) {
            System.out.println(e.getMessage());
        } finally {
            try {
                if (xdoConnection != null)
                    xdoConnection.disconnect();
            } catch (XDOException e) {
                System.out.println(e.getMessage());
            } catch (Exception e) {
                System.out.println(e.getMessage());
            }
        }
    }
}

このクラスを実行すると、次の例外が表示されます -

lc_conn::connect_device が Db_err を返しました: ソース: lc_conn::connect() メッセージ: lc_conn::connect: CacheSecureStart が -15 を返しました:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000045ab78, pid=5132, tid=9084
#
# JRE version: Java(TM) SE Runtime Environment (7.0_60-b19) (build 1.7.0_60-b19)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.60-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [lcbjni.dll+0xab78]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# c:\intersystems\trycache1\mgr\hs_err_pid5132.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

この問題の修正にご協力いただけますか?

監査テーブルの詳細は次のとおりです-

ここに画像の説明を入力

4

1 に答える 1

2
  1. Cube から ManagementPortal を開きます。
  2. [ホーム] -> [システム管理] -> [セキュリティ] -> [サービス] に移動します
  3. %Service_Callin をクリックして編集ウィンドウを開きます
  4. サービスが有効になっているチェックボックスをオンにします

これにより、JNI経由でログインできるようになります

于 2014-09-30T03:30:42.053 に答える