`
hello_player
  • 浏览: 152532 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

问题积累

阅读更多
sequence number not allowed here
sequence 不能使用在 order by , group by 等 sql 语句当中。

java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
使用 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 每个包都可能会有新的版本,版本取新的就可能兼容了。

ORA-02064: distributed operation not supported
存储过程或者包跨域调用报错问题。
解决办法,在存储过程声明后面加个 as PRAGMA AUTONOMOUS_TRANSACTION;
例:
(create or replace) procedure myProcedure (param in out type)
as PRAGMA AUTONOMOUS_TRANSACTION;
v_param  type;
...

Myeclipse 不自动编译问题
Project->clean 也没有用,后来找了下发现以前删了个没有用的 jar 包,原来的 Libraries 里面导入了这个 jar 包,导致编译失败。

Unable to update index for central http://repo1.maven.org/maven2
Window => Preferences => Myeclipse Enterprise Workbench => Maven4Myeclipse =>禁用Download repository index updates on startup

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

原因是 GETACCESSNETINFO 这个方法在包头里面没有声明

cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean
因为spring2.0和1.0配置的区别,在spring2.0中,bean没有“singleton”这个属性,而是在“scope”中对它进行设定。“scope”可以设定为 “singleton”和“prototype”默认情况下是“singleton”即和1.0的“singleton=true”性质一样,如果要实现单例模式则将“scope”设定为“prototype”,即和1.0的“singleton=false”一样。

javax.servlet.ServletException: Request[/jc/web/export] does not contain handler parameter named 'method'.  This may be caused by whitespace in the label text.
原因是 action 继承的是 DispatchAction 这个类,要跳转的方法必要在 action 里面实现,在 struts-config 里面配上 forwar 这个节点指向这个方法,方法里面跟 execute 里面一样要有4个参数,另外在提交 action 处理的地方要加上方法 **.do?method=方法名 ,即可以解决。

java.net.MalformedURLException: no protocol:
SAXReader 对象直接 read 字符串的时候就会报这个错,
报这个异常说明这里面传的是一个文件路径..
所谓的protocol:就是file://,http://,ftp://等等.
SAXReader reader = new SAXReader();
StringReader read = new StringReader(str);
Document doc = reader.read(read);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics