[b][i][color=red]sequence number not allowed here[/color][/i][/b]
sequence 不能使用在 order by , group by 等 sql 语句当中。
[b][i][color=red]java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException [/color][/i][/b]
使用 net.sf.json 这种 json 包时程序编译正常,但还要配合下面几个包才能正常使用:json-lib-2.2.2-jdk15.jar ezmorph-1.0.2.jar commons-beanutils-1.7.0.jar commons-collections-3.2.jar commons-lang-2.0.jar commons-logging-1.0.4.jar 每个包都可能会有新的版本,版本取新的就可能兼容了。
[b][i][color=red]ORA-02064: distributed operation not supported[/color][/i][/b]
存储过程或者包跨域调用报错问题。
解决办法,在存储过程声明后面加个 as PRAGMA AUTONOMOUS_TRANSACTION;
例:
(create or replace) procedure myProcedure (param in out type)
as PRAGMA AUTONOMOUS_TRANSACTION;
v_param type;
...
[b][i][color=red]Myeclipse 不自动编译问题[/color][/i][/b]
Project->clean 也没有用,后来找了下发现以前删了个没有用的 jar 包,原来的 Libraries 里面导入了这个 jar 包,导致编译失败。
[b][i][color=red]Unable to update index for central http://repo1.maven.org/maven2[/color][/i][/b]
Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse =>禁用Download repository index updates on startup
[b][i][color=red]java.sql.SQLException: ORA-06550: line 1, column 18:
PLS-00302: component 'GETACCESSNETINFO' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored[/color][/i][/b]
原因是 GETACCESSNETINFO 这个方法在包头里面没有声明
[b][i][color=red]cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean[/color][/i][/b]
因为spring2.0和1.0配置的区别,在spring2.0中,bean没有“singleton”这个属性,而是在“scope”中对它进行设定。“scope”可以设定为 “singleton”和“prototype”默认情况下是“singleton”即和1.0的“singleton=true”性质一样,如果要实现单例模式则将“scope”设定为“prototype”,即和1.0的“singleton=false”一样。
[b][i][color=red]javax.servlet.ServletException: Request[/jc/web/export] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.[/color][/i][/b]
原因是 action 继承的是 DispatchAction 这个类,要跳转的方法必要在 action 里面实现,在 struts-config 里面配上 forwar 这个节点指向这个方法,方法里面跟 execute 里面一样要有4个参数,另外在提交 action 处理的地方要加上方法 **.do?method=方法名 ,即可以解决。
[b][i][color=red]java.net.MalformedURLException: no protocol:[/color][/i][/b]
SAXReader 对象直接 read 字符串的时候就会报这个错,
报这个异常说明这里面传的是一个文件路径..
所谓的protocol:就是file://,http://,ftp://等等.
SAXReader reader = new SAXReader();
[color=red]StringReader read = new StringReader(str);[/color]
Document doc = reader.read(read);
sequence 不能使用在 order by , group by 等 sql 语句当中。
[b][i][color=red]java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException [/color][/i][/b]
使用 net.sf.json 这种 json 包时程序编译正常,但还要配合下面几个包才能正常使用:json-lib-2.2.2-jdk15.jar ezmorph-1.0.2.jar commons-beanutils-1.7.0.jar commons-collections-3.2.jar commons-lang-2.0.jar commons-logging-1.0.4.jar 每个包都可能会有新的版本,版本取新的就可能兼容了。
[b][i][color=red]ORA-02064: distributed operation not supported[/color][/i][/b]
存储过程或者包跨域调用报错问题。
解决办法,在存储过程声明后面加个 as PRAGMA AUTONOMOUS_TRANSACTION;
例:
(create or replace) procedure myProcedure (param in out type)
as PRAGMA AUTONOMOUS_TRANSACTION;
v_param type;
...
[b][i][color=red]Myeclipse 不自动编译问题[/color][/i][/b]
Project->clean 也没有用,后来找了下发现以前删了个没有用的 jar 包,原来的 Libraries 里面导入了这个 jar 包,导致编译失败。
[b][i][color=red]Unable to update index for central http://repo1.maven.org/maven2[/color][/i][/b]
Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse =>禁用Download repository index updates on startup
[b][i][color=red]java.sql.SQLException: ORA-06550: line 1, column 18:
PLS-00302: component 'GETACCESSNETINFO' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored[/color][/i][/b]
原因是 GETACCESSNETINFO 这个方法在包头里面没有声明
[b][i][color=red]cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean[/color][/i][/b]
因为spring2.0和1.0配置的区别,在spring2.0中,bean没有“singleton”这个属性,而是在“scope”中对它进行设定。“scope”可以设定为 “singleton”和“prototype”默认情况下是“singleton”即和1.0的“singleton=true”性质一样,如果要实现单例模式则将“scope”设定为“prototype”,即和1.0的“singleton=false”一样。
[b][i][color=red]javax.servlet.ServletException: Request[/jc/web/export] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.[/color][/i][/b]
原因是 action 继承的是 DispatchAction 这个类,要跳转的方法必要在 action 里面实现,在 struts-config 里面配上 forwar 这个节点指向这个方法,方法里面跟 execute 里面一样要有4个参数,另外在提交 action 处理的地方要加上方法 **.do?method=方法名 ,即可以解决。
[b][i][color=red]java.net.MalformedURLException: no protocol:[/color][/i][/b]
SAXReader 对象直接 read 字符串的时候就会报这个错,
报这个异常说明这里面传的是一个文件路径..
所谓的protocol:就是file://,http://,ftp://等等.
SAXReader reader = new SAXReader();
[color=red]StringReader read = new StringReader(str);[/color]
Document doc = reader.read(read);