2017-04-11 12 views
0

最近まで、JavaおよびNotesFactoryを使用して、ローカルマシン上およびサーバー上の両方のコピーでNotesアプリケーションにアクセスできました。私は今両方のシナリオで次のようなエラーがあります。 db.open()でデータベースを開こうとすると、成功しません。1%に達して失敗します。数週間前、最近のODAの追加以外に、何年も働いていたことが今や失敗する理由は考えられません。NotesFactoryを使用してNotesアプリケーションにアクセスできない

ご協力いただければ幸いです。

2つのメソッドと関連する引数を使用したエラーのサンプル。スレッド「メイン」NotesExceptionで

Session s = NotesFactory.createSessionWithFullAccess(); 

例外:データベースガニメデ!! NCLCMS.nsfはスレッド「メイン」NotesExceptionで

Session s = NotesFactory.createSessionWithFullAccess("mypassword"); 

例外まだ開かれていない:IDファイルが別のプロセスによってロックされています。 IDファイル別のプロセスによってロックされている:スレッド「メイン」NotesExceptionの例外が

Session s = NotesFactory.createSession((String)null, (String)null, "mypassword"); 

後でもう一度試してください。データベースガニメデ!! NCLCMS:スレッド "メイン" NotesExceptionでのデータベースガニメデ!! NCLCMS.nsfがまだ開かれていない

Session s = NotesFactory.createSession((String)null, (String)null,(String)null); 

例外:スレッド "メイン" NotesExceptionに例外

Session s = NotesFactory.createSession() 

後でもう一度お試しください.nsfはまだ開かれていません

例として、次の例は最近までうまくいきました。 ..

セッションS = NotesFactory.createSessionWithFullAccess( "mypasswordという")でソート

import lotus.domino.Database; 
import lotus.domino.Document; 
import lotus.domino.NotesException; 
import lotus.domino.NotesFactory; 
import lotus.domino.Session; 
import lotus.domino.View; 
import lotus.notes.NotesThread; 

public class AssignItemParentType { 

public static void main(String[] args) throws NotesException{ 
    assignItemParentType(); 
} 

public static void assignItemParentType() throws NotesException{ 
    NotesThread.sinitThread(); 
    Session s = NotesFactory.createSessionWithFullAccess(); 

    Database db = s.getDatabase("Ganymede","NCLCMS.nsf"); 
    View itmView = db.getView("Itm Sales Order Form Internal"); 
    String parentID = null; 
    String docType = null; 
    Document parentDoc = null; 
    Document itmDoc = itmView.getFirstDocument(); 
    Document oldDoc = null; 
    int cnt=0; 
    int x=0; 
    while (itmDoc !=null){ 
     try{ 
     parentID = itmDoc.getItemValueString("ItmParentUID"); 
     parentDoc = db.getDocumentByUNID(parentID); 
     docType = parentDoc.getItemValueString("Form"); 
     if (docType.equals("SOFInt")){ 
      cnt++; 
      itmDoc.replaceItemValue("ItmParentType","Core"); 
      itmDoc.save(); 
     } 
     parentDoc.recycle(); 
     }   
     catch (Exception e){System.out.println("Error with ID"); 
    } 
     x++; 
    oldDoc = itmView.getNextDocument(itmDoc); 
    itmDoc.recycle(); 
    itmDoc = oldDoc; 

    } 
    itmView.recycle(); 
    db.recycle(); 

    System.out.println("Matches ="+cnt + " Records = "+x); 

    NotesThread.stermThread(); 

} 
+0

ODAはどのようにサーバーにインストールされていますか?アップデートサイトを経由している場合、エージェントには使用できません。HTTPタスク経由でのみロードされるため、Javaエージェントに影響を与えることはできません。 ODA自体は 'NotesFactory.createSession()'を使用します。 –

+0

注9クライアントおよび場合によってはフィックスパックのバージョンにJavaセキュリティの変更がありました。私は詳細を覚えていないが、クライアントは最近更新されている? –

+0

こんにちはPaul。 ODAはUpdate Siteを使用してインストールされます。私はJavaを「テストプロジェクト」としてnsfではなく使用しています。 –

答えて

0

パスワードを使用しないで試行した場合(以前は正常だった)、NotesとDesignerを再起動する必要があります。たぶん4時間後には私には分かりやすいかもしれませんね!

関連する問題