Domino Java代理错误

时间:2018-04-08 18:46:40

标签: lotus-domino javaagents

当我尝试运行java代理时,我在java控制台上遇到此错误。代理的目标属性为None。触发器是“On Event,”Action Menu Selected“。我不知道如何解决这个问题。任何建议。

import org.openntf.domino.*;
import org.json.JSONArray;
import org.json.JSONObject;

import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;

import org.openntf.domino.ext.Session.Fixes;
import org.openntf.domino.utils.Factory;

public class JavaAgent extends AgentBase 
{ 

    public void NotesMain() 
    { 
        try 
        {

            Session session = getSession(); 
            AgentContext agentContext = session.getAgentContext(); 

            } 
        }
        catch(Exception e) 
        { 
            e.printStackTrace(); 
        } 

    }
}

错误行:

Unexpected error while executing java agent:JavaAgent
-->java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=, offset=6
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=, offset=6
    at java.lang.ClassLoader.defineClass(ClassLoader.java:287)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:224)
    at lotus.domino.AgentLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:638)
    at java.lang.ClassLoader.defineClassImpl(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:287)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:224)
    at lotus.domino.AgentLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:638)
    at lotus.domino.AgentLoader.runAgent(Unknown Source)

我已将此.jar文件添加到归档inported JAR files

0 个答案:

没有答案