---
title: "问题积累"
author: "hello_player"
date: "2009-09-28T10:58:43Z"
tags: ["Bean", "Myeclipse", "SQL", "json", "maven"]
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2010-02-23T11:53:40Z"
id: 479143
url: "https://hello-player.iteye.com/blog/479143"
---

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