weblogic无法启动报NumberFormatException的解决方法

最近在使用weblogic的过程中碰到了一个NumberFormatException的错误,导致weblogic无法启动。错误信息如下:

 <Notice> <Management> <BEA-140005> <Loading domain configuration from configuration repository at D:\bea\user_projects\domains\mydomain\config.xml.>  
<2011-8-12 上午01时14分48秒 GMT> <Notice> <Log Management> <BEA-170019> <The server log file D:\bea\user_projects\domains\mydomain\myserver\myserver.log is opened. All server side log events will be written to this file.>  
<2011-8-12 上午01时14分48秒 GMT> <Critical> <WebLogicServer> <BEA-000364> <Server failed during initialization. Exception:java.lang.NumberFormatException: null

把服务器重启后,问题依然存在。通过分析日志我们可以知道 NumberFormatException: null 的异常是Weblogic启动是找不到一个参数。经过查阅资料,最终把问题解决。以下是解决方案:

在 bea\user_projects\domains 中查找 replicas.prop ,编辑这个文件,删除掉所有的内容并且添加以下内容:

replica.num=0

这个文件会随weblogic正常启动而被修改,其中记录有正常启动所存储的信息。按照此操作,Weblogic正常启动了。

具体查找文件可以通过命令: Find ./ -name replicas.prop 找到并修改。


/* */ package qbeanejbs; /* */ /* */ import java.io.PrintStream; /* */ import java.sql.CallableStatement; /* */ import java.sql.Connection; /* */ import java.sql.PreparedStatement; /* */ import java.sql.ResultSet; /* */ import java.sql.ResultSetMetaData; /* */ import java.sql.SQLException; /* */ import java.util.Hashtable; /* */ import java.util.Iterator; /* */ import java.util.Vector; /* */ import java.util.regex.Matcher; /* */ import java.util.regex.Pattern; /* */ import java.util.regex.PatternSyntaxException; /* */ import javax.ejb.CreateException; /* */ import javax.ejb.SessionBean; /* */ import javax.naming.Context; /* */ import javax.naming.InitialContext; /* */ import javax.naming.NamingException; /* */ import javax.sql.DataSource; /* */ import org.apache.log4j.Logger; /* */ import qbeanclasses.XMLParse; /* */ /* */ public abstract class QQueryBean /* */ implements SessionBean /* */ { /* */ private Context context; /* */ private Vector paramList; /* */ private Vector params; /* */ private Vector rsVector; /* */ private String sqlElement; /* */ private String sqlString; /* */ private String xmlFilePath; /* */ private String dbName; /* */ private String ArcDbName; /* */ private Logger log; /* */ /* */ public QQueryBean() /* */ { /* 48 */ this.paramList = null; /* 49 */ this.params = null; /* 50 */ this.rsVector = null; /* 51 */ this.sqlElement = null; /* 52 */ this.sqlString = null; /* 53 */ this.xmlFilePath = null; /* 54 */ this.dbName = null; /* */ /* 56 */ this.log = null; /* */ } /* */ /* */ public void ejbCreate() throws CreateException /* */ { /* 61 */ this.log = Logger.getRootLogger(); /* */ /* 63 */ this.log.debug("ejbCreate...."); /* */ /* 65 */ this.paramList = new Vector(2, 2); /* 66 */ this.params = new Vector(2, 2); /* 67 */ this.rsVector = new Vector(2, 2); /* */ try { /* 69 */ this.context = getInitialContext(); /* */ } /* */ catch (Exception localException) /* */ { /* 74 */ this.log.error("ejb Create() error: " + localException); /* */ } /* */ } /* */ /* */ private Context getInitialContext() /* */ throws Exception /* */ { /* 81 */ return new InitialContext(); /* */ } /* */ /* */ private InitialContext getContext() throws NamingException { /* 85 */ Hashtable localHashtable = new Hashtable(); /* */ /* 87 */ localHashtable.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory"); /* 88 */ localHashtable.put("java.naming.provider.url", "t3://10.224.89.40:7001"); /* */ /* 90 */ InitialContext localInitialContext = new InitialContext(localHashtable); /* 91 */ return localInitialContext; /* */ } /* */ /* */ private void assignParamValue(PreparedStatement paramPreparedStatement) /* */ throws NumberFormatException, SQLException /* */ { /* 110 */ int i = 0; /* 111 */ while (i < this.paramList.size()) { /* 112 */ if (((Param)this.paramList.elementAt(i)).type.compareTo("Integer") == 0) /* 113 */ paramPreparedStatement.setInt(i + 1, Integer.parseInt((String)((Param)this.paramList.elementAt(i)).value)); /* */ else { /* 115 */ paramPreparedStatement.setString(i + 1, ((Param)this.paramList.elementAt(i)).value.toString()); /* */ } /* 117 */ i++; /* */ } /* */ } /* */ /* */ private int findFieldByName(String paramString) /* */ { /* 124 */ int i = -1; /* 125 */ int j = 0; /* 126 */ Vector localVector = (Vector)this.rsVector.elementAt(0); /* 127 */ for (j = 0; j < localVector.size(); j++) { /* 128 */ String str = localVector.elementAt(j).toString(); /* 129 */ if (str.toUpperCase().compareTo(paramString.toUpperCase()) == 0) { /* 130 */ i = j; /* 131 */ break; /* */ } /* */ /* */ } /* */ /* 136 */ return i; /* */ } /* */ /* */ private int findKeyPos(String paramString, int paramInt) /* */ { /* 141 */ int i = -1; /* 142 */ int j = this.sqlString.indexOf(paramString); /* */ try { /* 144 */ String str1 = "(\\Wunion\\s|\\Wwhere\\s|\\Wand\\s|\\Wor\\s|\\Wfrom\\s|\\Worder\\s|\\(|\\))"; /* 145 */ Pattern localPattern = Pattern.compile(str1, 2); /* 146 */ if (paramInt < 0) { /* 147 */ str2 = this.sqlString.substring(0, j); /* 148 */ localMatcher = localPattern.matcher(str2); /* 149 */ while (localMatcher.find()) { /* 150 */ i = localMatcher.end(); /* */ } /* */ /* */ } /* */ /* 156 */ String str2 = this.sqlString.substring(j); /* 157 */ Matcher localMatcher = localPattern.matcher(str2); /* 158 */ if (localMatcher.find()) { /* 159 */ i = localMatcher.start(); /* */ } /* */ else /* */ { /* 163 */ i = str2.length(); /* */ } /* 165 */ i = j + i; /* */ } /* */ catch (PatternSyntaxException localPatternSyntaxException) /* */ { /* 169 */ this.log.error("find 'key where and or' error : " + localPatternSyntaxException); /* */ } /* */ /* 172 */ return i; /* */ } /* */ /* */ private String findNextParam() /* */ { /* 179 */ String str1 = null; /* 180 */ String str2 = "\\W:\\w+"; /* */ /* 182 */ Pattern localPattern = Pattern.compile(str2, 2); /* 183 */ Matcher localMatcher = localPattern.matcher(this.sqlString); /* 184 */ if (localMatcher.find() == true) { /* 185 */ str1 = localMatcher.group(); /* 186 */ if (str1.indexOf(":") > -1) { /* 187 */ str1 = str1.substring(str1.indexOf(":") + 1); /* */ } /* */ } /* */ /* 191 */ return str1; /* */ } /* */ /* */ private String findNullCond(String paramString) /* */ { /* 196 */ String str = null; /* */ try { /* 198 */ int i = findKeyPos(":" + paramString, -1); /* 199 */ int j = findKeyPos(":" + paramString, 1); /* 200 */ if ((i > 0) && (j > 0) && (i < j)) /* 201 */ str = this.sqlString.substring(i, j).trim(); /* */ } /* */ catch (Exception localException) /* */ { /* 205 */ this.log.error("Find null condition error :" + localException); /* */ } /* 207 */ return str; /* */ } /* */ /* */ private int findParamByName(String paramString) /* */ { /* 213 */ int i = -1; /* 214 */ int j = 0; /* 215 */ for (j = 0; j < this.params.size(); j++) { /* 216 */ if (((Param)this.params.elementAt(j)).name.toUpperCase().compareTo(paramString.trim().toUpperCase()) == 0) { /* 217 */ i = j; /* 218 */ break; /* */ } /* */ } /* */ /* 222 */ return i; /* */ } /* */ /* */ public Object getFieldByName(String paramString) /* */ throws Exception /* */ { /* 236 */ Object localObject = null; /* 237 */ Vector localVector = null; /* 238 */ if (this.rsVector.size() <= 0) { /* 239 */ getResultVector(); /* */ } /* */ /* 242 */ int i = findFieldByName(paramString); /* */ /* 244 */ if ((this.rsVector.size() > 1) && (i > -1)) { /* 245 */ localVector = (Vector)this.rsVector.elementAt(1); /* 246 */ localObject = localVector.elementAt(i); /* */ } /* 248 */ return localObject; /* */ } /* */ /* */ public String getParamByName(String paramString) /* */ { /* 263 */ String str = null; /* 264 */ int i = findParamByName(paramString); /* */ /* 266 */ if (i > -1) { /* 267 */ str = (String)((Param)this.params.elementAt(i)).value; /* */ } /* */ /* 270 */ return str; /* */ } /* */ /* */ public String getBindParamInfo() /* */ { /* 286 */ String str = ""; /* 287 */ int i = 0; /* 288 */ while ((this.paramList != null) && (i < this.paramList.size())) { /* 289 */ str = str + ((Param)this.paramList.elementAt(i)).name + "=" + ((Param)this.paramList.elementAt(i)).value + ";"; /* 290 */ i++; /* */ } /* 292 */ return str; /* */ } /* */ /* */ private String loadSql(String paramString1, String paramString2) throws Exception /* */ { /* 297 */ String str = null; /* 298 */ if ((paramString1 == null) || (paramString2 == null)) { /* 299 */ return null; /* */ } /* 301 */ XMLParse localXMLParse = new XMLParse(); /* */ try { /* 303 */ str = localXMLParse.getInfo(paramString1, paramString2); /* */ } catch (Exception localException) { /* 305 */ this.log.error(localException + " Load sql from XML " + paramString1 + " error. The element is : " + paramString2); /* */ } /* 307 */ return str; /* */ } /* */ /* */ public void reset() /* */ { /* 321 */ this.paramList.clear(); /* 322 */ this.params.clear(); /* 323 */ this.rsVector.clear(); /* 324 */ this.xmlFilePath = null; /* 325 */ this.sqlElement = null; /* 326 */ this.sqlString = null; /* */ } /* */ /* */ public void resetParams() /* */ { /* 336 */ this.params.clear(); /* 337 */ this.paramList.clear(); /* */ } /* */ /* */ public void resetResult() /* */ { /* 346 */ this.rsVector.clear(); /* */ } /* */ /* */ public void setParamByName(String paramString, int paramInt) /* */ { /* 360 */ int i = findParamByName(paramString); /* 361 */ Param localParam = null; /* 362 */ if (i != -1) { /* 363 */ ((Param)this.params.elementAt(i)).value = Integer.toString(paramInt); /* */ } else { /* 365 */ localParam = new Param(); /* 366 */ localParam.name = paramString; /* 367 */ localParam.value = Integer.toString(paramInt); /* 368 */ localParam.type = "Integer"; /* 369 */ this.params.addElement(localParam); /* */ } /* */ } /* */ /* */ public void setParamByName(String paramString1, String paramString2) /* */ { /* 385 */ if (paramString2.indexOf("*") > -1) { /* 386 */ paramString2 = paramString2.replace('*', '%'); /* */ } /* 388 */ int i = findParamByName(paramString1); /* 389 */ Param localParam = null; /* 390 */ if (i != -1) { /* 391 */ ((Param)this.params.elementAt(i)).value = ("'" + paramString2 + "'"); /* */ } else { /* 393 */ localParam = new Param(); /* 394 */ localParam.name = paramString1; /* 395 */ localParam.type = "String"; /* 396 */ localParam.value = paramString2; /* 397 */ this.params.addElement(localParam); /* */ } /* */ } /* */ /* */ private void setParamList() /* */ { /* */ try /* */ { /* 407 */ String str1 = findNextParam(); /* */ /* 409 */ while (str1 != null) /* */ { /* 411 */ int i = findParamByName(str1); /* */ /* 413 */ if (i > -1) { /* 414 */ this.paramList.addElement(this.params.elementAt(i)); /* 415 */ this.sqlString = this.sqlString.replaceFirst(":" + str1, "?"); /* */ } else { /* 417 */ String str2 = findNullCond(str1); /* 418 */ this.sqlString = this.sqlString.replaceFirst(str2, "1=1"); /* */ } /* 420 */ str1 = findNextParam(); /* */ } /* */ } catch (Exception localException) { /* 423 */ this.log.error("set param list error :" + localException); /* */ } /* */ } /* */ /* */ public void setQueryInfo(String paramString1, String paramString2) /* */ { /* 439 */ this.params.clear(); /* 440 */ this.paramList.clear(); /* 441 */ this.rsVector.clear(); /* 442 */ this.xmlFilePath = null; /* 443 */ this.sqlElement = null; /* 444 */ this.sqlString = paramString2; /* 445 */ this.dbName = paramString1; /* */ } /* */ /* */ public void setQueryInfo(String paramString1, String paramString2, String paramString3) /* */ throws Exception /* */ { /* 460 */ this.params.clear(); /* 461 */ this.paramList.clear(); /* 462 */ this.rsVector.clear(); /* 463 */ this.dbName = paramString1; /* 464 */ this.xmlFilePath = paramString2; /* 465 */ this.sqlElement = paramString3; /* 466 */ this.sqlString = loadSql(paramString2, paramString3); /* */ } /* */ /* */ public Vector getResultVector() /* */ throws Exception /* */ { /* 483 */ if (this.dbName.indexOf(",") != -1) /* */ { /* 485 */ getResultVectorForArchive(); /* 486 */ return this.rsVector; /* */ } /* 488 */ Connection localConnection = getConnection(this.dbName); /* 489 */ if (localConnection == null) { /* 490 */ this.log.error("Connection is null. "); /* 491 */ return null; /* */ } /* 493 */ if (this.sqlString == null) { /* 494 */ this.log.error("Sql string is null. "); /* 495 */ return null; /* */ } /* 497 */ PreparedStatement localPreparedStatement = null; /* 498 */ ResultSet localResultSet = null; /* 499 */ ResultSetMetaData localResultSetMetaData = null; /* */ /* 501 */ Vector localVector = null; /* */ try { /* 503 */ setParamList(); /* 504 */ handleWildcard(); /* */ /* 506 */ localPreparedStatement = localConnection.prepareStatement(this.sqlString); /* 507 */ assignParamValue(localPreparedStatement); /* */ /* 509 */ localResultSet = localPreparedStatement.executeQuery(); /* 510 */ localResultSetMetaData = localResultSet.getMetaData(); /* 511 */ localVector = new Vector(localResultSetMetaData.getColumnCount()); /* */ /* 513 */ for (int i = 1; i <= localResultSetMetaData.getColumnCount(); i++) { /* 514 */ localVector.addElement(localResultSetMetaData.getColumnName(i)); /* */ } /* 516 */ this.rsVector.addElement(localVector.clone()); /* */ /* 518 */ while (localResultSet.next()) { /* 519 */ localVector.clear(); /* */ /* 521 */ for (i = 1; i <= localResultSetMetaData.getColumnCount(); i++) { /* 522 */ if (localResultSet.getObject(i) != null) /* 523 */ localVector.addElement(localResultSet.getObject(i)); /* */ else { /* 525 */ localVector.addElement(""); /* */ } /* */ } /* */ /* 529 */ this.rsVector.addElement(localVector.clone()); /* */ } /* */ /* */ } /* */ catch (SQLException localSQLException) /* */ { /* 535 */ this.log.error("Get result vector error :" + localSQLException); /* 536 */ this.log.error("The error sql is :" + getReplacedSql()); /* 537 */ this.log.error("Current connection is belong to :" + this.dbName); /* */ } finally { /* 539 */ if (localPreparedStatement != null) { /* 540 */ localPreparedStatement.close(); /* */ } /* 542 */ if (localResultSet != null) { /* 543 */ localResultSet.close(); /* */ } /* 545 */ if (localConnection != null) { /* 546 */ localConnection.close(); /* */ } /* */ } /* 549 */ return this.rsVector; /* */ } /* */ /* */ public void getResultVectorForArchive() /* */ throws Exception /* */ { /* */ do /* */ { /* 558 */ if (this.dbName.indexOf(",") != -1) /* */ { /* 560 */ this.ArcDbName = this.dbName.substring(this.dbName.indexOf(",") + 1); /* 561 */ this.dbName = this.dbName.substring(0, this.dbName.indexOf(",")); /* */ } /* */ else { /* 564 */ this.dbName = this.ArcDbName; /* 565 */ this.ArcDbName = null; /* */ } /* 567 */ this.params.clear(); /* 568 */ this.paramList.clear(); /* 569 */ this.rsVector.clear(); /* 570 */ this.xmlFilePath = null; /* 571 */ this.sqlElement = null; /* 572 */ getResultVector(); /* 573 */ if (this.ArcDbName == null) /* 574 */ return; /* 575 */ this.dbName = this.ArcDbName; /* 576 */ }while (this.rsVector.size() < 2); /* */ } /* */ /* */ public int getResultInt() /* */ throws Exception /* */ { /* 590 */ Connection localConnection = getConnection(this.dbName); /* 591 */ if (localConnection == null) { /* 592 */ this.log.error("Connection is null. "); /* 593 */ return -1; /* */ } /* 595 */ if (this.sqlString == null) { /* 596 */ this.log.error("Sql string is null. "); /* 597 */ return -1; /* */ } /* 599 */ PreparedStatement localPreparedStatement = null; /* 600 */ int i = 0; /* */ try /* */ { /* 603 */ setParamList(); /* 604 */ handleWildcard(); /* */ /* 606 */ localPreparedStatement = localConnection.prepareStatement(this.sqlString); /* 607 */ assignParamValue(localPreparedStatement); /* */ /* 609 */ i = localPreparedStatement.executeUpdate(); /* */ } /* */ catch (SQLException localSQLException) /* */ { /* 613 */ this.log.error("Get result error :" + localSQLException); /* 614 */ System.out.println("Get result error :" + localSQLException); /* 615 */ this.log.error("The error sql is :" + getReplacedSql()); /* 616 */ System.out.println("The error sql is :" + getReplacedSql()); /* 617 */ this.log.error("Current connection is belong to :" + this.dbName); /* 618 */ System.out.println("Current connection is belong to :" + this.dbName); /* */ } finally { /* 620 */ if (localPreparedStatement != null) { /* 621 */ localPreparedStatement.close(); /* */ } /* 623 */ if (localConnection != null) { /* 624 */ localConnection.close(); /* */ } /* */ } /* 627 */ return i; /* */ } /* */ /* */ public String runPLSQL(String paramString1, String paramString2, String paramString3) /* */ throws SQLException /* */ { /* 637 */ CallableStatement localCallableStatement = null; /* 638 */ Connection localConnection = null; /* 639 */ String str1 = ""; /* 640 */ String str2 = "ERROR"; /* */ try /* */ { /* 643 */ this.log.debug("runPLSQL entered..."); /* 644 */ System.out.println("runPLSQL entered..."); /* 645 */ localConnection = getConnection(paramString1); /* 646 */ localCallableStatement = localConnection.prepareCall(paramString2); /* 647 */ localCallableStatement.setString(1, paramString3); /* 648 */ localCallableStatement.registerOutParameter(2, 12); /* 649 */ localCallableStatement.execute(); /* 650 */ str2 = localCallableStatement.getString(2); /* 651 */ this.log.debug("runPLSQL exited..."); /* 652 */ System.out.println("runPLSQL exited..."); /* */ } /* */ catch (SQLException localSQLException) /* */ { /* 656 */ this.log.error("Call Oracle Store Procedure error :" + localSQLException); /* 657 */ System.out.println("runPLSQL error due to:" + localSQLException); /* */ } /* */ finally /* */ { /* 661 */ if (localCallableStatement != null) localCallableStatement.close(); /* 662 */ if (localConnection != null) localConnection.close(); /* */ } /* */ /* 665 */ return str2; /* */ } /* */ /* */ public boolean callInsertEqpInfo(String paramString1, String paramString2, String paramString3) /* */ throws SQLException /* */ { /* 674 */ CallableStatement localCallableStatement = null; /* 675 */ Connection localConnection = null; /* 676 */ int i = 0; /* */ try { /* 678 */ this.log.debug("beginning of callInsertEqpInfo"); /* 679 */ localConnection = getConnection(paramString1); /* 680 */ localCallableStatement = localConnection.prepareCall("{call qbean_insert_eqpinfo(?,?)}"); /* 681 */ localCallableStatement.setString(1, paramString2); /* 682 */ localCallableStatement.setString(2, paramString3); /* 683 */ localCallableStatement.execute(); /* 684 */ i = 1; /* 685 */ this.log.debug("Call qbean_insert_eqpinfo success."); /* */ } catch (SQLException localSQLException) { /* 687 */ this.log.error("Call Oracle Store Procedure error :" + localSQLException); /* */ } finally { /* 689 */ if (localCallableStatement != null) { /* 690 */ localCallableStatement.close(); /* */ } /* 692 */ if (localConnection != null) { /* 693 */ localConnection.close(); /* */ } /* */ } /* */ /* 697 */ return i; /* */ } /* */ /* */ public boolean callDelEqpInfo(String paramString1, String paramString2) /* */ throws SQLException /* */ { /* 705 */ int i = 0; /* 706 */ CallableStatement localCallableStatement = null; /* 707 */ Connection localConnection = null; /* */ try { /* 709 */ this.log.debug("beginning of callDeleteEqpInfo"); /* 710 */ localConnection = getConnection(paramString1); /* 711 */ localCallableStatement = localConnection.prepareCall("{call qbean_delete_eqpinfo(?)}"); /* 712 */ localCallableStatement.setString(1, paramString2); /* 713 */ localCallableStatement.execute(); /* 714 */ i = 1; /* 715 */ this.log.debug("Call qbean_delete_eqpinfo success."); /* */ } catch (SQLException localSQLException) { /* 717 */ this.log.error("Call Oracle Store Procedure error :" + localSQLException); /* */ } finally { /* 719 */ if (localCallableStatement != null) { /* 720 */ localCallableStatement.close(); /* */ } /* 722 */ if (localConnection != null) { /* 723 */ localConnection.close(); /* */ } /* */ } /* */ /* 727 */ return i; /* */ } /* */ /* */ public String getReplacedSql() /* */ { /* 736 */ int i = 0; /* 737 */ String str1 = null; /* */ try { /* 739 */ setParamList(); /* */ /* 741 */ handleWildcard(); /* */ /* 743 */ str1 = this.sqlString; /* 744 */ while ((this.paramList != null) && (i < this.paramList.size())) { /* 745 */ String str2 = (String)((Param)this.paramList.elementAt(i)).value; /* 746 */ if (((Param)this.paramList.elementAt(i)).type.compareTo("Integer") == 0) /* 747 */ str1 = str1.replaceFirst("\\?", str2); /* */ else { /* 749 */ str1 = str1.replaceFirst("\\?", "'" + str2 + "'"); /* */ } /* 751 */ i++; /* */ } /* */ } /* */ catch (Exception localException) { /* 755 */ this.log.error("Call getReplacedSql() error : " + localException); /* */ } /* */ /* 759 */ return str1; /* */ } /* */ /* */ public Connection getConnection(String paramString) /* */ { /* 766 */ Connection localConnection = null; /* */ try { /* 768 */ if (paramString != null) { /* 769 */ Object localObject = this.context.lookup(paramString); /* 770 */ DataSource localDataSource = (DataSource)localObject; /* */ try { /* 772 */ localConnection = localDataSource.getConnection(); /* */ } catch (SQLException localSQLException) { /* 774 */ this.log.error("Call QQueryBean.getConnection() error : " + localSQLException); /* */ } /* */ } /* */ } catch (NamingException localNamingException) { /* 778 */ this.log.error("Call QQueryBean.getConnection() error : " + localNamingException); /* */ } /* */ /* 781 */ return localConnection; /* */ } /* */ /* */ public String getSqlString() /* */ { /* 789 */ return this.sqlString; /* */ } /* */ /* */ private void handleWildcard() /* */ { /* 794 */ Param localParam = null; /* 795 */ int i = 0; /* */ try { /* 797 */ if (this.paramList != null) { /* 798 */ Iterator localIterator = this.paramList.iterator(); /* 799 */ while (localIterator.hasNext()) { /* 800 */ localParam = (Param)localIterator.next(); /* 801 */ i++; /* 802 */ if (localParam.value.toString().indexOf('%') > -1) /* 803 */ replaceEqualMark(i); /* */ } /* */ } /* */ } /* */ catch (Exception localException) /* */ { /* 809 */ this.log.equals("Call QQueryBean.handleWildcard() error : " + localException); /* */ } /* */ } /* */ /* */ private void replaceEqualMark(int paramInt) /* */ { /* 815 */ int i = 0; int j = 0; int k = 0; int m = -1; /* */ try /* */ { /* 818 */ while (k < paramInt) { /* 819 */ m = this.sqlString.indexOf("?", m + 1); /* */ /* 821 */ k++; /* 822 */ if (k == paramInt) { /* 823 */ j = m; /* 824 */ i = this.sqlString.substring(0, j).lastIndexOf('='); /* */ } /* */ /* */ } /* */ /* 829 */ if (i > -1) /* 830 */ this.sqlString = (this.sqlString.substring(0, i) + " like " + this.sqlString.substring(j)); /* */ } catch (Exception localException) { /* 832 */ this.log.error("Call QQueryBean.replaceCondSymbol() error : " + localException); /* */ } /* */ } /* */ /* */ class Param /* */ { /* 86 */ String name = null; /* 87 */ String type = null; /* 88 */ Object value = null; /* */ /* */ Param() { } /* */ /* 91 */ public void param() { this.name = ""; /* 92 */ this.type = ""; /* 93 */ this.value = ""; /* */ } /* */ } /* */ } /* Location: D:\cup\ESPCJ2A\SILTECHSPCWEB\WEB-INF\classes\ * Qualified Name: qbeanejbs.QQueryBean * JD-Core Version: 0.6.0 */ 这个时查询SQL调用的,没看到配置Oracle数据库的地方
最新发布
09-09
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值