错误代码:
D:\Java(64bit)\jdk1.6.0_37\bin\java -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\JetBrains\IntelliJ IDEA 11.1.4\bin" -Dfile.encoding=UTF-8 -classpath "D:\Java(64bit)\jdk1.6.0_37\jre\lib\charsets.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\deploy.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\javaws.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\jce.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\jsse.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\management-agent.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\plugin.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\resources.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\rt.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\ext\dnsns.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\ext\localedata.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\ext\sunjce_provider.jar;E:\Project\oracle\olap\examples\310886\out\production\310886;E:\Project\oracle\olap\examples\310886\lib\xmlparserv2.jar;E:\Project\oracle\olap\examples\310886\lib\olap_api.jar;E:\Project\oracle\olap\examples\310886\lib\ojdbc5.jar;D:\JetBrains\IntelliJ IDEA 11.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain oracle.olapi.examples.metadata.SpecifyAWValues -url jdbc:oracle:thin:@127.0.0.1:1521:orcl -user GLOBAL -password 870731
oracle.express.idl.util.OlapiException: java.sql.SQLException: ORA-37158: CLOB 或可变数组输入参数错误: (情形 6)
ORA-06512: 在 "SYS.GENSERVERINTERFACE", line 2
ORA-06512: 在 line 1
at oracle.express.idl.ExpressConnectionModule.ServerInterfaceStub.connect(Unknown Source)
at oracle.olapi.session.UserSessionFactory.createConnectionInterface(Unknown Source)
at oracle.olapi.session.UserSessionFactory.createUserSession(Unknown Source)
at oracle.olapi.data.source.DataProvider.connect(Unknown Source)
at oracle.olapi.data.source.DataProvider.initializeSession(Unknown Source)
at oracle.olapi.data.source.DataProvider.createSession(Unknown Source)
at oracle.olapi.data.source.DataProvider.createSession(Unknown Source)
at oracle.olapi.examples.Context11g._createProviders(Context11g.java:241)
at oracle.olapi.examples.Context11g._connect(Context11g.java:190)
at oracle.olapi.examples.Context11g.<init>(Context11g.java:107)
at oracle.olapi.examples.BaseExample11g.createContext(BaseExample11g.java:135)
at oracle.olapi.examples.BaseExample11g.initialize(BaseExample11g.java:105)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:63)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:84)
at oracle.olapi.examples.metadata.SpecifyAWValues.main(SpecifyAWValues.java:819)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Process finished with exit code 0
解决方法:需要一个包orai18n.jar
在oracle_home\jlib中可以找到
D:\Java(64bit)\jdk1.6.0_37\bin\java -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\JetBrains\IntelliJ IDEA 11.1.4\bin" -Dfile.encoding=UTF-8 -classpath "D:\Java(64bit)\jdk1.6.0_37\jre\lib\charsets.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\deploy.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\javaws.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\jce.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\jsse.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\management-agent.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\plugin.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\resources.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\rt.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\ext\dnsns.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\ext\localedata.jar;D:\Java(64bit)\jdk1.6.0_37\jre\lib\ext\sunjce_provider.jar;E:\Project\oracle\olap\examples\310886\out\production\310886;E:\Project\oracle\olap\examples\310886\lib\xmlparserv2.jar;E:\Project\oracle\olap\examples\310886\lib\olap_api.jar;E:\Project\oracle\olap\examples\310886\lib\ojdbc5.jar;D:\JetBrains\IntelliJ IDEA 11.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain oracle.olapi.examples.metadata.SpecifyAWValues -url jdbc:oracle:thin:@127.0.0.1:1521:orcl -user GLOBAL -password 870731
oracle.express.idl.util.OlapiException: java.sql.SQLException: ORA-37158: CLOB 或可变数组输入参数错误: (情形 6)
ORA-06512: 在 "SYS.GENSERVERINTERFACE", line 2
ORA-06512: 在 line 1
at oracle.express.idl.ExpressConnectionModule.ServerInterfaceStub.connect(Unknown Source)
at oracle.olapi.session.UserSessionFactory.createConnectionInterface(Unknown Source)
at oracle.olapi.session.UserSessionFactory.createUserSession(Unknown Source)
at oracle.olapi.data.source.DataProvider.connect(Unknown Source)
at oracle.olapi.data.source.DataProvider.initializeSession(Unknown Source)
at oracle.olapi.data.source.DataProvider.createSession(Unknown Source)
at oracle.olapi.data.source.DataProvider.createSession(Unknown Source)
at oracle.olapi.examples.Context11g._createProviders(Context11g.java:241)
at oracle.olapi.examples.Context11g._connect(Context11g.java:190)
at oracle.olapi.examples.Context11g.<init>(Context11g.java:107)
at oracle.olapi.examples.BaseExample11g.createContext(BaseExample11g.java:135)
at oracle.olapi.examples.BaseExample11g.initialize(BaseExample11g.java:105)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:63)
at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:84)
at oracle.olapi.examples.metadata.SpecifyAWValues.main(SpecifyAWValues.java:819)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Process finished with exit code 0
解决方法:需要一个包orai18n.jar
在oracle_home\jlib中可以找到