自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(46)
  • 资源 (2)
  • 收藏
  • 关注

原创 emulator might not function correctly, please try updating the emulator.

Emulator:WARNING:unexpectedsystemimagefeaturestring,emulatormightnotfunctioncorrectly,pleasetryupdatingtheemulator.16:45 Emulator:Unexpectedfeaturelist:DynamicPartitionGLDirectMe...

2019-12-28 19:23:21 9678 1

原创 Android Studio sdk配置镜像下载拒绝

已经选上还是访问拒绝解决方案:C:\Users\Administrator 下Android studio 文件全部删除

2019-12-28 14:48:49 298

原创 Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '

org.springframework.dao.DuplicateKeyException: SqlMapClient operation; SQL [];  --- The error occurred while applying a parameter map.  --- Check the LanagerVO.ibatorgenerated_insertSelective-Inli

2012-07-01 12:06:15 3395 1

原创 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lanagerServi

org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:  --- The error occurred while ap

2012-07-01 03:04:50 1146

原创 求解决 严重: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:

mulcore下包含两个索引core0 core1两个索引同时更新for (int i = 1; i <= pageSize; i++) {{ solr.addBean(product); solr2.addBean(suggest);}报上述错误solrconfig.xml中设置为none或者false 都没有用<!-- If true, unl

2012-04-19 15:10:43 5451

原创 org.apache.solr.common.SolrException: ERROR: multiple values encountered for non multiValued copy

solr配置  uuid包含 numIid字段的数据  <!-- Field to use to determine and enforce document uniqueness. Unless this field is marked with required="false", it will be a required field --> uuid

2012-04-19 00:35:58 3342 2

原创 求解决,ibatis级联查询异常,求解决,哪里配置错了吗??(已经解决)

这是主表 xiuCentItem <!-- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify. This element was generated on Wed Mar 21 19:47:05 CST 2012. -->

2012-03-27 14:37:09 2013

原创 Cause: java.lang.IllegalArgumentException: argument type mismatch

public XiuItemAttr selectByPrimaryKey(Integer xiaId) throws SQLException { return (XiuItemAttr) sqlMapClient.queryForObject( "XIU_ITEM_ATTR.ibatorgenerated_selectByPrimaryKey", xiaId); }ibati

2012-03-26 18:50:47 3846

原创 list from JavaBean. Cause java.lang.StringIndexOutOfBoundsException: String index out of range: -1

数组越界,先前以为是传过去的list参数为null或者list.size==0,于是就在执行ibatis语句前添加了判断 。代码如下if (ids != null&&0 < ids.size()) { List xiuCentAttrList = sqlMapClient .queryForList( "XIU_CENT_ATTR.ibatorgenerated_se

2012-03-26 12:59:31 7393

原创 servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/s

tomcat项目启动的时候报下面的错误原因:项目的WEB-INF/lib下有servlet-api*.*.jar。jar包,和tomcat/lib 下的servlet-api.jar 包冲突两选一去掉ok ,建议去掉WEB-INF/lib 下信息: Starting Servlet Engine: Apache Tomcat/6.0.302012-3-23 16:08:01 org.apa

2012-03-23 16:17:09 1934

原创 求解决 org.apache.solr.common.SolrException: Internal Server Error

一个全量更新数据的时候,有几批数据出了这个错误,其他的又没有2012-03-22 04:26:03:INFO pool-26-thread-4 com.xiu.search.good.GoodSearchIndexHelper - 使用solr document实时更新true     [java] org.apache.solr.common.SolrException: Inter

2012-03-22 16:31:57 2746 1

原创 com.ibatis.sqlmap.client.SqlMapExceptionThere is no statement named XIU_ITEM_INFO.ibatorgenerated_in

查看XIU_ITEM_INFO_SqlMap.xml  两个statement都有  ,就是找不到问题,后来发现先前为了做测试-->-->查看我的sqlmap.xml文件 把注释去掉ok啦 com.ibatis.sqlmap.client.SqlMapException: There is no statement named XIU_ITEM_INFO.ib

2012-03-22 14:59:04 1628

原创 Cause: java.lang.IllegalArgumentException:

用代码生成器成成的是private BigDecimal id;需要改成intprivate Integer id;改成后报下面的错误 原来插入的时候还要把序列类型改啦            select            seq_XIU_ITEM_INFO.nextval from dual                select

2012-03-16 15:32:20 4395 1

原创 IOException parsing XML document from class path resource [spring-jms-application.xml]; nested

改成这个就行啦 private XiuPromCenterService xiuPromCenterService; private ApplicationContext app; @Before public void setUp() throws Exception { app = new ClassPathXmlApplicationContext("classpath*:sp

2012-03-15 12:04:16 4616

原创 org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

slf4j系列包版本不匹配的原因org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnectionFatory' defined in class path resource [spring-jms-application.xml]: Instantiat

2012-03-15 11:56:11 1713

原创 web.xml The content of element type "web-app" must match "

The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-ma

2012-03-12 17:19:10 849 1

原创 Cannot create a server using the selected type

到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime/.settings3.把org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件去掉4.重启eclipse

2012-03-07 22:55:13 425

原创 ORA-08102: index key not found, obj# 129038, file 78, block 2910787 (2)

表的索引发生发生问题  查询发现obj#239是索引I_JOB_NEXT 。 SQL> col object_name format a15;SQL> col owner format a10;SQL> select o.owner, o.object_name, o.object_id, o.object_type  2    from dba_objects

2012-03-03 17:23:28 1989

原创 listener could not find available handler for requested type of server

http://www.ispirer.com/wiki/sqlways/troubleshooting-guide/oracle/import/tns_listenerorcal默认参数“PROCESSES ”  指定orcale xe Server 为40个解决方法,增加"PROCESSES "为100,200 或更多,步骤如下在系统中   1.set ORACLE_SID=XE

2012-03-03 16:57:14 2392

原创 Error initializing endpoint java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bin

tomcat端口被占用了,改一下端口Error initializing endpointjava.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind    at java.net.PlainSocketImpl.socketBind(Native Method)    at java.net

2012-03-01 00:17:26 2958

原创 ClassNotFoundException: org.apache.lucene.analysis.tokenattributes.CharTermAttribute

solr1.4.1版本加入mmseg4j-1.8.5版本分词器分词的时候报下面的错误解压原包C:\solrwork\mmseg4j-1.8.5\mmseg4j-all-1.8.5.jar  确实没有org/apache/lucene/analysis/tokenattributes/CharTermAttribute路径查看 http://code.google.com/p/mmseg

2012-02-29 15:08:37 3390

原创 bug

Exception in thread "pool-4-thread-8" java.lang.OutOfMemoryError: GC overhead limit exceeded     [java] Exception in thread "pool-12-thread-2" java.lang.OutOfMemoryError: GC overhead limit exceeded

2012-02-28 10:38:18 1061

原创 solr query错误,查询请求数据的url长度过长

把请求模式改成post模式, QueryResponse qr = solr.query(this.getSolrQuery(ids));改成QueryResponse qr = solr.query(this.getSolrQuery(ids),METHOD.POST);

2012-02-27 15:54:32 4232

原创 Missing artifact org.codehaus:wstx-asl:jar:3.2.7:compile

org.codehaus            wstx-asl            3.2.7            jar        C:\Documents and Settings\Administrator\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.7目录下有wstx-asl-3.2.7.jar文件

2012-02-09 19:01:43 2568

原创 Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'http://10

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'http://10.0.0.34:3737/solr/MC_10001_CatalogEntry_zh_CN/' is defined    at org.springframework.beans.factory

2012-01-12 17:24:27 4312 2

原创 clob转化为string的orcal函数

CREATE OR REPLACE FUNCTION blob_to_clob (blob_in IN BLOB) RETURN CLOB   AS    v_clob    CLOB;    v_varchar VARCHAR2(400000);    v_start PLS_INTEGER := 1;    v_buffer PLS_INTEGER := 400000;

2012-01-07 18:34:34 1011

原创 ORA-22835 缓冲区太小

ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: string, maximum: string)    Cause: An attempt was made to convert CLOB to CHAR or BLOB to RAW, where the LOB size was

2012-01-06 10:54:20 9386

原创 HTTP ERROR: 404 missing core name in path with solr

直接访问http://localhost:8085/solr/ 能够访问访问http://localhost:8085/solr/ admin时候报上面错误后来发现是solr的scheml.xml配置文件里面的file标签写错啦

2012-01-05 15:14:05 2607 1

原创 java.util.ConcurrentModificationException

对于数组,在遍历的时候,不能把他remove掉,否则会报这个错误    for (GoodPrice good : allGoodPric) {                lastTime = good.getUpdateTime();                if (lastTime != null                        && (jobTime.

2012-01-05 12:40:48 386

原创 在oracle里报错:ORA-00979: 不是 GROUP BY 表达式

orcal 使用聚合函数中用group by来分组数据时特别说明了select列表项中不存在的列可以出现在group by的列表项中,但反过来就不行了,在select列表项中出现的列必须全部出现在group by后面(聚合函数除外)例如下面的例子就会出现这个错误:SQL> select deptno,job,avg(sal)2 from emp3 group b

2012-01-05 11:16:31 3828

原创 ORA-00932:不一致的数据类型:要求-得到的却是CLOB

原因是:lob字段不能做group by,而union中需要使用group by过滤到重复纪录,所以不行 解决方法1.不使用不合適型態的比對方式。把table clob类型改为varchar2或其它类型2.調整table 的資料格式。 3.自製一個PL/SQL 函式轉換資料型別。 使用tochar()函数select to_char(a.clob) from ab

2012-01-05 11:00:46 1499

原创 Caused by: java.sql.SQLException: 无效的列索引

打印出拼写的sql    delete from XI_CATENTRY where store_id=? and catentry_id in (,?,?,?)sql语句错误org.springframework.jdbc.InvalidResultSetAccessException: PreparedStatementCallback; invalid ResultSet

2011-12-26 15:38:50 9026

原创 Missing artifact com.sun:tools:jar:1.5.0:system

是${java.home}在作怪,eclipse 没有使用 JAVA_HOME 找不到tools.jar包默认,eclipse 使用 C:"windows"system32"javaw.exe 作为 JVM,C:\Program Files\Java\lib\tools.jar找不到解决方法在pom加上如下代码,异常消失properties>   java.home>j

2011-12-26 10:39:07 771

原创 The Network Adapter could not establish the connection;The Network Adapter could not establish the c

在切换数据库德时候由于原来的配置是jdbc.url=jdbc:oracle:thin:@10.0.0.28:1526:ORCL   ,要切换刀106数据库,于是改成jdbc.url=jdbc:oracle:thin:@10.0.0.106:1526:ORCL   报下列异常网上搜索出3种情况出现上述错误1、IP错误:在设置URL时错误,例如:jdbc:oracle:thin:@

2011-12-24 11:41:50 1150

原创 CloneNotSupportedException

@Overridepublic Object clone() {        GoodSearchIndexHelper o = null;        try {            o = (GoodSearchIndexHelper) super.clone();        } catch (CloneNotSupportedException e) {

2011-12-20 11:49:15 534

原创 java.lang.IllegalMonitorStateException

当前线程等待timeout时间出现一次暂时把  Thread.currentThread().wait(timeout); 改成this.wait(timeout),效果暂时有待考证public class MultipleGoodsPriceChangedMessageHandlerImpl implements Job,        JMSMessageHandler {}

2011-12-14 18:44:01 645

原创 org.apache.solr.common.SolrException: Request-URI Too Large

采用post提交url提交方式有两种,一种是get方式,一种是post方式sol查询的时候添加个参数    QueryResponse qr = solr.query(this.getSolrQuery(ids),METHOD.POST);org.apache.solr.client.solrj.SolrServerException: Error executin

2011-12-12 18:09:56 1926

原创 Failed to convert property value of type [java.lang.String] to required type [boolean] for property

config.property文件配置的为closeSolrUpdate=true;类文件public class GoodSearchIndexHelper {private boolean colseSolrUpdate;    public boolean isCloseSolrUpdate() {        return closeSolrUpdate;

2011-12-10 18:52:06 7738 1

原创 Solrj实时更新遇到数据变化的问题

系统原来没有做索引的实时更新,而是采用脚本10min中全量索引一遍,由于做的是电子商务,需要做实时更新功能;实时更新部分使用的是SolrInputDocument sid = new SolrInputDocument();sid.addFiled();sid.commit();系统上线之后,发现数据在不停的变化;可是solrj的机制是更新完索引才会从备份中转移到主文件当中

2011-12-07 10:57:04 1102

原创 org.apache.solr.client.solrj.SolrServerException: java.net.SocketTimeoutException: Read timed out

出现过两次,一次是连接solr地址的端口写错啦!org.apache.solr.client.solrj.SolrServerException:java.net.SocketTimeoutException‌​: Read timed out at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsH

2011-11-30 16:01:31 3441 3

Maven常用命令 Maven Maven学习

Maven常用命令 Maven Maven学习

2011-12-09

log4j.properties完整版本

log4j.properties log4j log4j日志保存到邮件 log4j保存到数据库

2011-12-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除