??xml version="1.0" encoding="utf-8" standalone="yes"?>日本中文字幕在线一区,亚洲特级片在线,国产精品久久不能http://www.aygfsteel.com/freeman1984/category/38742.htmlSTANDING ON THE SHOULDERS OF GIANTS zh-cnMon, 05 Jun 2017 06:16:40 GMTMon, 05 Jun 2017 06:16:40 GMT60oracle 索引字段包含datecdQ用spring jdbc更新时不走烦引,而是走table access full的问?/title><link>http://www.aygfsteel.com/freeman1984/archive/2015/11/15/428197.html</link><dc:creator>疯狂</dc:creator><author>疯狂</author><pubDate>Sat, 14 Nov 2015 16:04:00 GMT</pubDate><guid>http://www.aygfsteel.com/freeman1984/archive/2015/11/15/428197.html</guid><wfw:comment>http://www.aygfsteel.com/freeman1984/comments/428197.html</wfw:comment><comments>http://www.aygfsteel.com/freeman1984/archive/2015/11/15/428197.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/freeman1984/comments/commentRss/428197.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/freeman1984/services/trackbacks/428197.html</trackback:ping><description><![CDATA[     摘要: oracle 索引字段包含datecdQ用spring jdbc更新时不走烦引,而是走table access full的问?nbsp; <a href='http://www.aygfsteel.com/freeman1984/archive/2015/11/15/428197.html'>阅读全文</a><img src ="http://www.aygfsteel.com/freeman1984/aggbug/428197.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/freeman1984/" target="_blank">疯狂</a> 2015-11-15 00:04 <a href="http://www.aygfsteel.com/freeman1984/archive/2015/11/15/428197.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于java RMI在多|卡?或者启?60Q百度,腾讯{wifi׃n?无法q接问题(java.rmi.ConnectException: Connection refused to host: xx)http://www.aygfsteel.com/freeman1984/archive/2014/12/05/421085.html疯狂疯狂Fri, 05 Dec 2014 06:08:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2014/12/05/421085.htmlhttp://www.aygfsteel.com/freeman1984/comments/421085.htmlhttp://www.aygfsteel.com/freeman1984/archive/2014/12/05/421085.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/421085.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/421085.html场景Qjava RMI 在服务端者启?60 wifi׃nQ报错java.rmi.ConnectException: Connection refused to host: xx?br />         也就是服务端在调用时使用了wifi׃n|卡的地址。此地址在RMI客户端pc上无法ping通。(因ؓ没有q接此wifi。当然RMI客户端pc如果q接此wifi是不会报错的Q?br />惛_资料Q?br />
http://docs.huihoo.com/java/rmi/whitepage/index.html
比较全的解释RMI的英文资料:http://docs.oracle.com/javase/1.5.0/docs/guide/rmi/faq.html#netunknownhost
http://www.aygfsteel.com/shaolijun/archive/2007/05/22/119213.html

试代码Q?br />
(一)服务端:
  • 服务接口
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
 * rmi remote 接口
 * 
@author joe
 * @2014-12-5 @上午11:49:10
 
*/
public interface RmiInterface extends Remote{
    
    public String say(String name) throws RemoteException;

}
  • 接口实现
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;


public class RmiServer extends UnicastRemoteObject implements RmiInterface{
    
    private static final long serialVersionUID = 1L;

    protected RmiServer() throws RemoteException {
        super();
    }

    public String say(String name) throws RemoteException {
        return "helloQ?+name;
    }
}
  • 发布服务
public static void main(String[] args) throws MalformedURLException, RemoteException, AlreadyBoundException {
        RmiServer server=new RmiServer();
        LocateRegistry.createRegistry(8808);  
        Naming.rebind("http://10.10.XX.XX:8808/SAMPLE-SERVER", server);  
    }

(?客户?调用服务Q?br />
public static void main(String[] args) throws Exception {
        RmiInterface server=(RmiInterface) Naming.lookup("http://10.10.116.XX:8808/SAMPLE-SERVER");
        System.out.println(server.say("张三"));
    }

此时报错Qjava.rmi.ConnectException: Connection refused to host: 192.168.23.X?br />
RMI的调用原理基本如下:

大致译如下Q首先客L必须通过Naming.lookup得到服务端服务的一个指针或者叫指针Q一旦拥有的q个应用Q客L用服务的引用里面包含的主机名(ip)和端口来讉K服务?br />    也就是说Q虽然我们就服务端的IP和端口去Naming.lookup("http://10.10.116.XX:8808/SAMPLE-SERVER");Q但是服务端q回的服务的引用里面包含的ipq不是lookup时的ip?br />官方说法Q?br />【In many versions of the JDK (all versions of the JDK except in v1.1 and the latest releases), Java RMI may default to using an unresolvable server hostname (for example: unqualified names, Windows Internet Naming Service (WINS) names, or unqualified DHCP names). When a Java RMI client invokes a remote method using a reference that contains an unresolvable server hostname, the client will throw an UnknownHostException.?/span>

In order to generate functional remote references, Java RMI servers must be able to supply a fully qualified hostname or IP address that is resolvable from all Java RMI clients (an example of a fully qualified hostname is foo.bar.com). If a Java RMI program provides a remote callback operation, then that program serves a Java RMI object and consequently, must be able to determine a resolvable hostname to use as its server hostname in the remote references it passes to Java RMI clients. VMs that make calls to applets that serve remote objects may throwUnknownHostExceptions because the applet has failed to provide a usable server hostname.

If your Java RMI application throws an UnknownHostException, you can look at the resulting stack trace to see if the hostname that the client is using to contact its remote server is incorrect or not fully qualified.?nbsp;If necessary, you can set the java.rmi.server.hostname property on the server to the correct IP address or hostname of the server machine and Java RMI will use this property's value to generate remote references to the server.?/strong>

解决办法是在服务端发布注册服务的之前设|:
System.setProperty("java.rmi.server.hostname", 指定IP);

对应到本文例子就是:
public static void main(String[] args) throws MalformedURLException, RemoteException, AlreadyBoundException {
        RmiServer server=new RmiServer();
        System.setProperty("java.rmi.server.hostname", 指定IP);
        LocateRegistry.createRegistry(8808);  
        Naming.rebind("http://10.10.116.74:8808/SAMPLE-SERVER", server);  
    }

但是此时q是报相同的错没法访问,百思不得其解,原来java.rmi.server.hostname的设|必d服务对象创徏之前?br />
public static void main(String[] args) throws MalformedURLException, RemoteException, AlreadyBoundException {
        System.setProperty("java.rmi.server.hostname", 指定IP);
        RmiServer server=new RmiServer();
        LocateRegistry.createRegistry(8808);  
        Naming.rebind("http://10.10.116.74:8808/SAMPLE-SERVER", server);  
    }
Z么呢Q?br />    RmiServer q个实现cM用了UnicastRemoteObject去联接RMIpȝ。在我们的例子中Q我们是直接的从UnicastRemoteObjectq个cMl承的,事实上ƈ不一定要q样做,当然也可以不是从UnicastRmeoteObject上承,那必M用它的exportObject()Ҏ去联接到RMI。如果一个类l承自UnicastRemoteObjectQ那么它必须提供一个构造函数ƈ且声明抛Z个RemoteException对象。当q个构造函数调用了super()Q它久激zUnicastRemoteObject中的代码完成RMI的连接和q程对象的初始化。而此时应该已l决定了使用哪个hostname来实例化q程对象。因此必d服务对象创徏之前指定l定的hostname?br />
~~~完?/div>

疯狂 2014-12-05 14:08 发表评论
]]>It is indirectly referenced from required .class file异常http://www.aygfsteel.com/freeman1984/archive/2014/09/23/418187.html疯狂疯狂Tue, 23 Sep 2014 06:33:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2014/09/23/418187.htmlhttp://www.aygfsteel.com/freeman1984/comments/418187.htmlhttp://www.aygfsteel.com/freeman1984/archive/2014/09/23/418187.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/418187.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/418187.html环境Qmaven目?br />
H然出现异常Q显C某个类无法引用QIt is indirectly referenced from required .class file异常Q通过跟踪到这个类Q发现无法点L看这个类Q报Qjava.util.zip.ZipException: invalid LOC header (bad signature)?br />
解决办法Q删除本C库对应的jar包重C载,卛_Q?img src ="http://www.aygfsteel.com/freeman1984/aggbug/418187.html" width = "1" height = "1" />

疯狂 2014-09-23 14:33 发表评论
]]>
automation服务器不能创建对?解决办法http://www.aygfsteel.com/freeman1984/archive/2014/03/21/411308.html疯狂疯狂Fri, 21 Mar 2014 01:39:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2014/03/21/411308.htmlhttp://www.aygfsteel.com/freeman1984/comments/411308.htmlhttp://www.aygfsteel.com/freeman1984/archive/2014/03/21/411308.html#Feedback1http://www.aygfsteel.com/freeman1984/comments/commentRss/411308.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/411308.htmljavascript脚本中报q个错误。应IE的安全设|?#8220;不允许运行未标记为安全的activeX控g”启用卛_?br />

疯狂 2014-03-21 09:39 发表评论
]]>
ERROR: transport error 202: gethostbyname: unknown host 解决办法http://www.aygfsteel.com/freeman1984/archive/2014/03/12/410935.html疯狂疯狂Wed, 12 Mar 2014 05:55:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2014/03/12/410935.htmlhttp://www.aygfsteel.com/freeman1984/comments/410935.htmlhttp://www.aygfsteel.com/freeman1984/archive/2014/03/12/410935.html#Feedback1http://www.aygfsteel.com/freeman1984/comments/commentRss/410935.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/410935.html

疯狂 2014-03-12 13:55 发表评论
]]>
ORA-06548错误http://www.aygfsteel.com/freeman1984/archive/2013/11/28/406952.html疯狂疯狂Thu, 28 Nov 2013 08:44:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/11/28/406952.htmlhttp://www.aygfsteel.com/freeman1984/comments/406952.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/11/28/406952.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/406952.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/406952.html原因Q有可能是通过pl/sql{客L执行道输出函数QpipelinedQ造成Qpl/sql客户端一般不会显C全部结果,道输出挂v?

疯狂 2013-11-28 16:44 发表评论
]]>
tmpFile.renameTo(classFile) failedhttp://www.aygfsteel.com/freeman1984/archive/2013/10/21/405469.html疯狂疯狂Mon, 21 Oct 2013 09:42:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/10/21/405469.htmlhttp://www.aygfsteel.com/freeman1984/comments/405469.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/10/21/405469.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/405469.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/405469.html

疯狂 2013-10-21 17:42 发表评论
]]>
ora-01031:insufficient privilegeshttp://www.aygfsteel.com/freeman1984/archive/2013/09/04/403674.html疯狂疯狂Wed, 04 Sep 2013 12:03:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/09/04/403674.htmlhttp://www.aygfsteel.com/freeman1984/comments/403674.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/09/04/403674.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/403674.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/403674.html如果密码文g存在的话Q\径:$ORACLE_HOME/dbs/Q,L看密码文Ӟ格式Qorapw$ORACLE_SIDQ里面sid和当前ORACLE_SID大小写是否一致。必Mh行?br />不一h用mv 修改成一L。即可?br />
相关文章参考?br />
http://www.xifenfei.com/2025.html


疯狂 2013-09-04 20:03 发表评论
]]>
mysqlq程q接问题 Access denied for user 'root'@' ip ' (using password: YES)http://www.aygfsteel.com/freeman1984/archive/2013/07/12/401488.html疯狂疯狂Fri, 12 Jul 2013 02:43:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/07/12/401488.htmlhttp://www.aygfsteel.com/freeman1984/comments/401488.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/07/12/401488.html#Feedback1http://www.aygfsteel.com/freeman1984/comments/commentRss/401488.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/401488.html服务器登录mysqlQ然后执行:

GRANT ALL PRIVILEGES ON *.* TO'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;

flush privileges;

疯狂 2013-07-12 10:43 发表评论
]]>
用MyEclipse试发送email时报java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream http://www.aygfsteel.com/freeman1984/archive/2013/05/28/399863.html疯狂疯狂Tue, 28 May 2013 05:05:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/05/28/399863.htmlhttp://www.aygfsteel.com/freeman1984/comments/399863.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/05/28/399863.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/399863.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/399863.htmlJava EE5 替换为Java EE6 卛_。java EE5 里面不包含mail.jar{jar包。如果用JAVA EE5需要另外导入相关jar包?br />

疯狂 2013-05-28 13:05 发表评论
]]>
java.lang.ClassNotFoundException: javax.jms.MessageListener http://www.aygfsteel.com/freeman1984/archive/2013/04/07/397457.html疯狂疯狂Sun, 07 Apr 2013 05:31:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/04/07/397457.htmlhttp://www.aygfsteel.com/freeman1984/comments/397457.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/04/07/397457.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/397457.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/397457.html原因:~少具体实现MessageListener 接口的jar包。可Ҏ自己所用的消息中间Ӟ去里面找客户端jar。例?xxxclient.jar

疯狂 2013-04-07 13:31 发表评论
]]>
ERROR 1049 (42000): Unknown database 'root' 处理http://www.aygfsteel.com/freeman1984/archive/2013/03/29/397132.html疯狂疯狂Fri, 29 Mar 2013 03:01:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/03/29/397132.htmlhttp://www.aygfsteel.com/freeman1984/comments/397132.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/03/29/397132.html#Feedback1http://www.aygfsteel.com/freeman1984/comments/commentRss/397132.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/397132.html命oQmysql  -u root -p root -P 8066 -v -S  /opt/app/DataBase/mysql.sock
报错QERROR 1049 (42000): Unknown database 'root'
解决办法Q?br />命o的密码参数部分:-p root 修改?proot 中间没有I格?br />
卛_Q?img src ="http://www.aygfsteel.com/freeman1984/aggbug/397132.html" width = "1" height = "1" />

疯狂 2013-03-29 11:01 发表评论
]]>
mysql 1130 错误 处理http://www.aygfsteel.com/freeman1984/archive/2013/03/29/397131.html疯狂疯狂Fri, 29 Mar 2013 02:57:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/03/29/397131.htmlhttp://www.aygfsteel.com/freeman1984/comments/397131.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/03/29/397131.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/397131.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/397131.html解决q程q接mysql错误1130代码的方?
转自Q?a >http://hi.baidu.com/qkcan/item/1527cf08663d388803ce1be2。其中加_的部分必须执行

今天在用q程q接Mysql服务器的数据库,不管怎么弄都是连接不刎ͼ错误代码?130QERROR 1130: Host 192.168.2.159 is not allowed to connect to this MySQL server
猜想是无法给q程q接的用h限问题。结果这样子操作mysql库,卛_解决。在本机dmysql后,更改 “mysql” 数据库里?“user” 表里?“host” ,?#8221;localhost”改称'%'。?br />mysql -u root -p
mysql>use mysql;
mysql>select 'host' from user where user='root';
mysql>update user set host = '%' where user ='root';
mysql>flush privileges;
mysql>select 'host'   from user where user='root';
W一句是以权限用户rootd
W二句:选择mysql?br />W三句:查看mysql库中的user表的host|卛_q行q接讉K的主?IP名称Q?br />W四句:修改host|以通配W?的内容增加主?IP地址Q,当然也可以直接增加IP地址
W五句:hMySQL的系l权限相兌
W六句:再重新查看user表时Q有修改。?br />重vmysql服务卛_完成?

 

============================

一、通过MySQL-Front或mysql administratorq接mysql的时候发生的q个错误

ERROR 1130: Host ***.***.***.*** is not allowed to connect to this MySQL server

说明所q接的用户帐h有远E连接的权限Q只能在本机(localhost)d?br />
需更改 mysql 数据库里?user表里?host?br />把localhost改称%

首先按下面的步骤dMysql服务?br />
dmysql需要切换到dos下的mysql的bin目录Q进行如下操作:

语法格式Qmysql -h host_name -u user_name -p password   Q本机的?h 和host_name可省Q?br />
例如Q?br />
C:\program files\mysql\mysql server 5.0\bin>mysql -u root -p
Enter password:******
先输入用户名和密码登陆要求(-pQ,回R后等出现"Enter password:"Q再输入密码回RQ这样就可以
成功登陆mysqlQ否则将会登陆失败?br />
登陆成功后会昄如下信息及Mysql标识W:

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.1-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>


标识W?mysql>"Q当你看到这个出现在H口的最左边的顶格时Q这是告诉你,你可以输入命令进行操作了?br />
mysql> \s 查看版本信息
mysql> \q or mysql> quit 退出mysql数据库服务器
mysql> \h or mysql> help 查看帮助Q其他的数据库服务器相关命oQ?br />
二、登录成功后可通过以下步骤对用戯行权限更?br />
mysql>use mysql;

mysql>update user set host = '%'   where user ='root';

mysql>flush privileges;

mysql>select 'host','user' from user where user='root';

mysql>quit


退出后会回到DOS正常的提C符状态,此时可以通过q程q接Mysql了!

 

 

========================================

 

 

MySQL 用户帐号的修?error 11302007-09-07 09:18

MySQL上的一个数据库要备份,装了个MySQL的gui工具。打开"MySQL Administrator"工具Q填好用户名和密码却d不了Q老是报这个错“ERROR 1130: Host 'lijuan-' is not allowed to connect to this MySQL server”。网上查了下Q有q两个方法解冻I 解决ҎQ?br />1?改表法。可能是你的帐号不允总q程登陆Q只能在localhost。这个时候只要在localhost的那台电脑,dmysql后,更改 "mysql" 数据库里?"user" 表里?"host" ,?localhost"改称"%"
mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;
2. 授权法。例如,你想myuser使用mypassword从Q何主接到mysql服务器的话?
GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 如果你想允许用户myuser从ip?92.168.1.3的主接到mysql服务器,q用mypassword作ؓ密码 GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY 'mypassword' WITH GRANT OPTION;      我的mysql.user里root用户的host果然是localhostQ先用改表法llocalhostҎ“Q?#8221;Q还是不行,仍然?130的错误,又按“从Q何主接到mysql服务?#8221;Ҏ授权Q还是报一L错,最后给自己的ip授权之后Q终于登录上了。。。?

     乎乎。。?/p>

mysql的ERROR 1045 在上面情况后如再出现客户D?045可在服务器执行如?/p>

UPDATE user SET Password=PASSWORD('123456') where USER='myuser';
FLUSH PRIVILEGES;



疯狂 2013-03-29 10:57 发表评论
]]>
oracle ORA-39212异常http://www.aygfsteel.com/freeman1984/archive/2013/02/20/395438.html疯狂疯狂Wed, 20 Feb 2013 02:10:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2013/02/20/395438.htmlhttp://www.aygfsteel.com/freeman1984/comments/395438.htmlhttp://www.aygfsteel.com/freeman1984/archive/2013/02/20/395438.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/395438.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/395438.html阅读全文

疯狂 2013-02-20 10:10 发表评论
]]>
svn checkout异常http://www.aygfsteel.com/freeman1984/archive/2012/11/21/391696.html疯狂疯狂Wed, 21 Nov 2012 06:26:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2012/11/21/391696.htmlhttp://www.aygfsteel.com/freeman1984/comments/391696.htmlhttp://www.aygfsteel.com/freeman1984/archive/2012/11/21/391696.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/391696.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/391696.html解决Q地址替换为https开头?img src ="http://www.aygfsteel.com/freeman1984/aggbug/391696.html" width = "1" height = "1" />

疯狂 2012-11-21 14:26 发表评论
]]>
oracle 在package里面用dba_data_filesQ字典表Q提C?Ora-00942 error:table or view does not exist)问题http://www.aygfsteel.com/freeman1984/archive/2012/04/06/373438.html疯狂疯狂Fri, 06 Apr 2012 02:23:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2012/04/06/373438.htmlhttp://www.aygfsteel.com/freeman1984/comments/373438.htmlhttp://www.aygfsteel.com/freeman1984/archive/2012/04/06/373438.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/373438.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/373438.html current_userZ当前的用?br />

疯狂 2012-04-06 10:23 发表评论
]]>
oracle exp :EXP-00091 以及sqlplusq问题http://www.aygfsteel.com/freeman1984/archive/2012/03/12/371732.html疯狂疯狂Mon, 12 Mar 2012 07:47:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2012/03/12/371732.htmlhttp://www.aygfsteel.com/freeman1984/comments/371732.htmlhttp://www.aygfsteel.com/freeman1984/archive/2012/03/12/371732.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/371732.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/371732.html一個DBA或需使用exp,imp的普通用戶來說,在我們做exp的過E中?font color="#ff0000">能經常會遇到EXPQ?0091 Exporting questionable statistics.這樣的EXP信息Q其實它是exp的error messageQ它產生的原因是因為?/span>們exp工具所在的環境變量中的NLS_LANG與DB中的NLS_CHARACTERSET?/span>一致。但需說明的是Qexp-91這個error message所生成的dump檔沒有媄響,生成的dump檔還可以正常的impQ個h體會Q不知道有沒?/span>
錯)Q雖然它我們的dump檔沒有媄響,我個h還是不想它出現,大家也有同感吧, 。。下面我們就讓它消失?/span>


step 01 查看DB中的NLS_CHARACTERSET的|提供兩種ҎQ:

select * from nls_database_parameters t where
t.parameter='NLS_CHARACTERSET'
or
select * from v$nls_parameters  where
parameter='NLS_CHARACTERSET';
SQL> select * from v$nls_parameters where
parameter='NLS_CHARACTERSET';
PARAMETER          VALUE
-----------------------  -------------------------
---------------------
NLS_CHARACTERSET    AL32UTF8

step 02 Ҏstep 01查出的NLS_CHARACTERSETQAL32UTF8Q來a定
exp的環境變量:
 
WINNT> set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
LINUX> export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
 

同样可以解决sqlplus昄q问题


疯狂 2012-03-12 15:47 发表评论
]]>
websphere 配置库中已存在应用程序,异常处理http://www.aygfsteel.com/freeman1984/archive/2012/02/03/369311.html疯狂疯狂Fri, 03 Feb 2012 03:26:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2012/02/03/369311.htmlhttp://www.aygfsteel.com/freeman1984/comments/369311.htmlhttp://www.aygfsteel.com/freeman1984/archive/2012/02/03/369311.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/369311.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/369311.htmlq行一下操?
1、删?$WAS_HOME/profiles/AppSrv01/config/cells/...cell/applications下对应的文g?br />2、删?$WAS_HOME/profiles/AppSrv01/installedApps/...cell下对应的文g?br />如有q有问题Q请重启websphere?

的方法,查找相关全部删除
find . -name '目?'|xargs rm -rf


疯狂 2012-02-03 11:26 发表评论
]]>
异常Qset hibernate.cglib.use_reflection_optimizer=false for more info http://www.aygfsteel.com/freeman1984/archive/2012/01/12/368417.html疯狂疯狂Thu, 12 Jan 2012 08:37:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2012/01/12/368417.htmlhttp://www.aygfsteel.com/freeman1984/comments/368417.htmlhttp://www.aygfsteel.com/freeman1984/archive/2012/01/12/368417.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/368417.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/368417.html

异常原因Q?br />java定义的属性ؓ原始cdQint,long,{)Q但数据该字D可为空时出现该异常

解决办法Q数据库修改该字Dؓ不ؓI,或者修改原始类型ؓ包装cd?/p>


疯狂 2012-01-12 16:37 发表评论
]]>
java.lang.NoClassDefFoundError: org/jaxen/JaxenExceptionhttp://www.aygfsteel.com/freeman1984/archive/2011/11/09/363266.html疯狂疯狂Wed, 09 Nov 2011 02:24:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/11/09/363266.htmlhttp://www.aygfsteel.com/freeman1984/comments/363266.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/11/09/363266.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/363266.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/363266.html~少jaxen-XX.jar,在dom4j的zip包里面可以找到?/div>

疯狂 2011-11-09 10:24 发表评论
]]>
Directory index forbidden by Options directive问题http://www.aygfsteel.com/freeman1984/archive/2011/11/01/362421.html疯狂疯狂Tue, 01 Nov 2011 02:09:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/11/01/362421.htmlhttp://www.aygfsteel.com/freeman1984/comments/362421.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/11/01/362421.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/362421.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/362421.htmlҎ1Q?在mod_jk.conf中配|JkMountCopy All Q这h有虚拟主机都公用了mod_jk的配|?br />Ҏ2Q在虚拟L中配|JkMountCopy On 例如Q?br />
<VirtualHost *:80>
    #JkMountCopy On
   ...

疯狂 2011-11-01 10:09 发表评论
]]>
org.hibernate.hql.ast.QuerySyntaxException异常http://www.aygfsteel.com/freeman1984/archive/2011/09/28/359694.html疯狂疯狂Wed, 28 Sep 2011 07:17:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/09/28/359694.htmlhttp://www.aygfsteel.com/freeman1984/comments/359694.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/09/28/359694.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/359694.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/359694.html详细原因知道的顶一下?/strong>

疯狂 2011-09-28 15:17 发表评论
]]>
ORA-01688:unable to extend table name.name partition NAME by NUM in tablespace NAME http://www.aygfsteel.com/freeman1984/archive/2011/09/07/358165.html疯狂疯狂Wed, 07 Sep 2011 03:35:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/09/07/358165.htmlhttp://www.aygfsteel.com/freeman1984/comments/358165.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/09/07/358165.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/358165.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/358165.html解决ҎQ?#8220;ALTER TABLESPACE ADD DATAFILE”命o增加文gpȝ文g和原始分区,或者增加INITIAL的大(如:alter tablespace CDRS101 default storage(next 500M pctincrease 1)Q应该能够解冻I否则是有h使用你的表空间上创徏了一个比较大的数据文件导致你的表I间不够用?

一个报错例子如下:

ORA-1688: unable to extend table RMMCDR.LOCAL_CDR partition LOCAL_CDR101 by 460800 in tablespace CDRS101

相应的英文如下:

Cause: An extent could not be allocated for a table segment in tablespace

Action: Use the ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the specified tablespace




疯狂 2011-09-07 11:35 发表评论
]]>
java.sql.SQLException: 数据大小出此类型的最大? http://www.aygfsteel.com/freeman1984/archive/2011/08/25/357295.html疯狂疯狂Thu, 25 Aug 2011 09:20:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/08/25/357295.htmlhttp://www.aygfsteel.com/freeman1984/comments/357295.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/08/25/357295.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/357295.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/357295.html

问题环境:oracle 10g
问题Qjava.sql.SQLException: 数据大小出此类型的最大?


解决办法是:更新ojdbc14.jar文g Q具体问题根据不同环境测试?/p>



疯狂 2011-08-25 17:20 发表评论
]]>
ClassNotFoundException: javax.persistence.Entity http://www.aygfsteel.com/freeman1984/archive/2011/07/27/355141.html疯狂疯狂Wed, 27 Jul 2011 06:58:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/07/27/355141.htmlhttp://www.aygfsteel.com/freeman1984/comments/355141.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/07/27/355141.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/355141.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/355141.html

疯狂 2011-07-27 14:58 发表评论
]]>
java.lang.NoClassDefFoundError: javax/persistence/Cacheablehttp://www.aygfsteel.com/freeman1984/archive/2011/07/27/355140.html疯狂疯狂Wed, 27 Jul 2011 06:57:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/07/27/355140.htmlhttp://www.aygfsteel.com/freeman1984/comments/355140.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/07/27/355140.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/355140.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/355140.html

疯狂 2011-07-27 14:57 发表评论
]]>
Hibernate java.lang.NoSuchFieldError: INSTANCE http://www.aygfsteel.com/freeman1984/archive/2011/07/27/355136.html疯狂疯狂Wed, 27 Jul 2011 06:53:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2011/07/27/355136.htmlhttp://www.aygfsteel.com/freeman1984/comments/355136.htmlhttp://www.aygfsteel.com/freeman1984/archive/2011/07/27/355136.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/355136.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/355136.html

在?/span>hibernate3.6.2是我遇到了一个有的错误java.lang.NoSuchFieldError: INSTANCEat org.hibernate.type.BasicTypeRegistry.<init>(BasicTypeRegistry.java:94)at org.hibernate.type.TypeResolver.<init>(TypeResolver.java:59)at org.hibernate.cfg.Configuration.<init>(Configuration.java:249)at org.hibernate.cfg.Configuration.<init>(Configuration.java:300)

 

Lhibernate-annotations.jar已经包含在hibernate3.jar中了

这?/span>jar包删除了卛_?/span>



疯狂 2011-07-27 14:53 发表评论
]]>
详解异常Qstruts使用中的StrutsPrepareAndExecuteFilterhttp://www.aygfsteel.com/freeman1984/archive/2010/09/08/331413.html疯狂疯狂Wed, 08 Sep 2010 09:15:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2010/09/08/331413.htmlhttp://www.aygfsteel.com/freeman1984/comments/331413.htmlhttp://www.aygfsteel.com/freeman1984/archive/2010/09/08/331413.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/331413.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/331413.html 严重: Exception starting filter struts2
java.lang.NullPointerException
at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:190)
。。?br /> 原因是多了一个struts2-spring-plugin-X.jar?
此包是struts的spring的插Ӟ
打开struts2-spring-plugin-X.jar看一下struts-plugin.xml内容Q?br />

<struts>
    <bean type="com.opensymphony.xwork2.ObjectFactory" name="spring" class="org.apache.struts2.spring.StrutsSpringObjectFactory" />
    
    <!--  Make the Spring object factory the automatic default -->
    <constant name="struts.objectFactory" value="spring" />
   
<package name="spring-default">
        <interceptors>
            <interceptor name="autowiring" class="com.opensymphony.xwork2.spring.interceptor.ActionAutowiringInterceptor"/>
            <interceptor name="sessionAutowiring" class="org.apache.struts2.spring.interceptor.SessionContextAutowiringInterceptor"/>
        </interceptors>
    </package>   
</struts>

请大家关注红色部分:
 <!--  Make the Spring object factory the automatic default -->意思是Q会Spring object factory 讄为默认。也是说我们不配置struts.objectFactory=spring 但是只要q个包在classpath下就{于讄了struts.objectFactory=spring ?br />
 
解决办法Q去掉此包即?


疯狂 2010-09-08 17:15 发表评论
]]>
关于@Transactional和配|文件؜用的问题http://www.aygfsteel.com/freeman1984/archive/2010/08/18/329225.html疯狂疯狂Wed, 18 Aug 2010 07:56:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2010/08/18/329225.htmlhttp://www.aygfsteel.com/freeman1984/comments/329225.htmlhttp://www.aygfsteel.com/freeman1984/archive/2010/08/18/329225.html#Feedback0http://www.aygfsteel.com/freeman1984/comments/commentRss/329225.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/329225.html 1   <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />

之后才是xml配置Q?br />  2  <tx:advice id="txAdviceService" transaction-manager="transactionManager">
        <tx:attributes>
             <tx:method name="add*" read-only="false"/>
            <tx:method name="add*" read-only="false"/>
            <tx:method name="update*" read-only="false"/>
            <tx:method name="del*" read-only="false"/>
              <tx:method name="apply*" read-only="false"/>
            <tx:method name="*" read-only="true"/>
        </tx:attributes>
    </tx:advice>
    <aop:config>
           <aop:pointcut id="serviceMethods"
            expression="execution(* com.joe.service.*.*(..))"/>
        <aop:advisor advice-ref="txAdviceService" pointcut-ref="serviceMethods"/>
    </aop:config>
    
     <bean id="transactionManager"
        class="org.springframework.orm.hibernate3.HibernateTransactionManager">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
如果写反会出现如果用的
@Transactional的方法在  <tx:method name="*" read-only="true"/>
里面 ׃发现没有可写事务 Q?br /> error:Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.


疯狂 2010-08-18 15:56 发表评论
]]>
strtuts2 异常之Could not create and/or set value back on to object http://www.aygfsteel.com/freeman1984/archive/2010/06/22/324133.html疯狂疯狂Tue, 22 Jun 2010 03:14:00 GMThttp://www.aygfsteel.com/freeman1984/archive/2010/06/22/324133.htmlhttp://www.aygfsteel.com/freeman1984/comments/324133.htmlhttp://www.aygfsteel.com/freeman1984/archive/2010/06/22/324133.html#Feedback2http://www.aygfsteel.com/freeman1984/comments/commentRss/324133.htmlhttp://www.aygfsteel.com/freeman1984/services/trackbacks/324133.html   最l解军_法:对应于表单的bean 需要空的构造函数?

疯狂 2010-06-22 11:14 发表评论
]]>
վ֩ģ壺 | | | ͼ| | | | ̨| | | ԭ| | | | | Ĭ| | | | Ͳ| | | ɽ| | | | ǿ| | | | | ¤| | ײ| | ɽ| ٹ| | | | |