The server did not provide any stacktrace information

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/iteye_1611/article/details/82514766

学习WebDriver时,第一个程序报错如下

java.lang.Exception: org.openqa.selenium.WebDriverException: Failed to navigate to  url This usually means that a call to the COM method IWebBrowser2::Navigate2() failed. (WARNING: The server did not provide any stacktrace information)

 

想起我的IE不是默认浏览器,试着改为默认浏览器后,程序运行OK

展开阅读全文

JasperException: Cannot find any information on property

11-30

jsp代码:rnrn...rnrnrnrn...rnJAVA:rnpackage mybean;rnrnimport java.io.*;rnimport java.sql.*;rnimport mybean.DBConnSource;rnrnpublic class AddNews rn rn private String title;rn private String style;rn private String from;rn private String content;rn private String postorid;rn private Date posttime;rn private int clicktime;rn private Statement stmt;rn rn public AddNews()rn rn public void setTitle(String title)rn this.title=title;rn rn rn public void setStyle(String style)rn this.style=style;rn rn rn public void setFrom(String from)rn this.from=from;rn rn rn public void setContent(String content)rn this.content=content;rn rn rn public void setPostorid(String postorid)rn this.postorid=postorid;rn rn rn public void setPosttime(Date posttime)rn this.posttime=posttime;rn rn rn public void setClicktime(int clicktime)rn this.clicktime=clicktime;rn rn rn public void getAddNews()rn tryrn DBConnSource dbc=new DBConnSource("jdbc/myweb"); rn stmt=dbc.getStmt(); rn catch(Exception e)rn System.out.print("不能连接到数据源");rn rn rn tryrn String sql="INSERT INTO news(title,style,from,content,postorid,posttime,clicktime) " +rn "VALUES('"+title+"','"+style+"','"+from+"','"+content+"','"rn +postorid+"','"+posttime+"','"+clicktime+"')";rn ResultSet rs = stmt.executeQuery(sql);rn rs.close();rn stmt.close();rn System.out.print("插入数据成功!");rn catch(Exception e)rn System.out.print("插入数据失败"+e.toString());rn rnrnrn错误提示:rnorg.apache.jasper.JasperException: Cannot find any information on property 'AddNews' in a bean of type 'mybean.AddNews'rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnorg.apache.jasper.JasperException: Cannot find any information on property 'AddNews' in a bean of type 'mybean.AddNews'rn org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:837)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1011)rn org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:1062)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:456)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Generator.generate(Generator.java:3305)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn我不是已经设置了"public void getAddNews"又怎么会报这个错呢?rn新手初学JSP.请各位多多指教! 论坛

org.apache.jasper.JasperException: Cannot find any information on property 'qpag

04-09

各位大神帮帮忙,我采用useBean时出现错误rnorg.apache.jasper.JasperException: Cannot find any information on property 'qpageallcount' in a bean of type 'done.showrecordbypage'rnrnpackage done;rnimport java.sql.*;rnimport com.sun.rowset.*;rnpublic class showrecordbypage rnrnint pagesize=10;rnint qpageallcount=0;rnint showpage=1;rnStringBuffer presentpageresult;rnCachedRowSetImpl rowset;rnString databasename="";rnString tablename="";rnString user="";rnString password="";rnString 字段[]=new String[100];rnint 字段个数=0;rnrnpublic showrecordbypage()rnrnpresentpageresult=new StringBuffer();rntryrn Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance();rnrncatch(Exception e)rnrnpublic void setpagesize(int size)rnrnpagesize=size;rn字段个数=0;rnString uri="jdbc:sqlserver://127.0.0.1:1433;DatabaseName="+databasename;rntryrn Connection con=DriverManager.getConnection(uri,user,password);rn DatabaseMetaData metadata=con.getMetaData();rn ResultSet rsl=metadata.getColumns(null, null, tablename, null);rn int k=0;rn while(rsl.next())rn 字段个数++;rn 字段[k]=rsl.getString(1);//获得字段的名字rn k++; rn rn Statement sql=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);rn ResultSet rs=sql.executeQuery("select* from"+tablename);rn rowset=new CachedRowSetImpl();//创建行集对象rn rowset.populate(rs);rn con.close();rn rowset.last();//关闭连接rn int m=rowset.getRow();//总行数rn int n =pagesize;rn qpageallcount=((m%n)==0)?(m/n):(m/n+1);rnrncatch(Exception exp)rnrnpublic int getpagesize()rnrnreturn pagesize; rnrnpublic int getpageAllCount()rnrnreturn qpageallcount;rnrnpublic void setshowpage(int n)rnrnshowpage=n; rnrnpublic int getshowpage()rnrnreturn showpage; rnrnpublic StringBuffer getPresentPageResult()rnrn if(showpage>qpageallcount)rn showpage=1;rn if(showpage<=0)rn showpage=qpageallcount;rn presentpageresult=show(showpage);rn return presentpageresult;rn rnpublic StringBuffer show(int page)rnrnStringBuffer str=new StringBuffer();rnstr.append(""+字段[i]+"");rnrnstr.append("");rn for(int k=1;k"+rowset.getString(k)+"");rn rn str.append("");rn rnrncatch(SQLException exp)rnstr.append(" ");rnstr.append(" ");rnfor(int i=0;i");rntryrowset.absolute((page-1)*pagesize+1);rnfor(int i=1;i");rnreturn str;rnrnpublic void setDatabaseName(String s)rnrndatabasename=s.trim(); rnrnpublic String getDatabaseName()rnrnreturn databasename; rnrnpublic void setTableName(String s)rnrntablename=s.trim(); rnrnpublic String getTableName()rnrnreturn tablename; rnrnpublic void setPassword(String s)rnrnpassword=s.trim(); rnrnpublic void setUser(String s)rnrnuser=s.trim(); rnrnpublic String getUser()rnrnreturn user; rnrnrnrnrnrnrn<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rn<%@ page contentType="text/html;charset=gb2312" %>rn<%@ page import="java.sql.* "%>rn<%@ page import="done.*" %>rnrnrnrnrnrnrnrnrn rn rn rn 000000rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn 人力资源管理>人员档案管理>员工基本信息维护 rn rn rnrn 员工基本信息共有页。每页显示条记录信息。rn rn rn 当前显示页。rn rn rn rn rn rn rn rn rn rn rn rn 输入页码:rn rn rn rn rn rn rn rn rn rnrn 论坛

The WebLogic Server did not start up properly.

11-06

我的文件发布后,在domains目录下的没有config.xml,startWeblogic.cmd,stopWebLogic.cmd,DefaultAuthenticatorInit.ldift等等文件。所以Weblogic无法启动了。请问各位高人,为什么这些文件都消失了呢?他们的工作原理是什么样的?最重要的是我改怎么让他们正常工作呢?rn现在报的错误是:rn<2008-11-6 下午01时59分30秒 CST> rn<2008-11-6 下午01时59分32秒 CST> rn<2008-11-6 下午01时59分32秒 CST> rn<2008-11-6 下午01时59分32秒 CST> rn<2008-11-6 下午01时59分33秒 CST> rnrnC:\bea\user_projects\domains\config.xml not foundrnrnNo config.xml was found.rnWould you like the server to create a default configuration and boot? (y/n): yrn<2008-11-6 下午01时59分44秒 CST> rnFor confirmation, please re-enter password required to boot WebLogic server:rn***************************************************************************rnThe WebLogic Server did not start up properly.rnException raised: 'weblogic.management.configuration.ConfigurationException: Passwords do not match, unable to generate default configuration, please try again.'rnReason: weblogic.management.configuration.ConfigurationException: Passwords do not match, unable to generate default configuration, please try again.rn***************************************************************************rnPasswords do not match.rnFor confirmation, please re-enter password required to boot WebLogic server:rnrn谢谢大家了,快来帮帮忙吧!急啊 论坛

The WebLogic Server did not start up properly问题!

10-22

运行WEBLOGIC出现:rnrn<2006-10-22 上午11时28分51秒 CST> rn<2006-10-22 上午11时28分52秒 CST> rn<2006-10-22 上午11时28分52秒 CST> rn***************************************************************************rnThe WebLogic Server did not start up properly.rnjava.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848rn at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)rn at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1551)rn at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1465)rn at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1551)rn at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1465)rn at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1698)rn at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)rn at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)rn at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)rn at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1917)rn at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1841)rn at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)rn at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)rn at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)rn at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:261)rn at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:366)rn at weblogic.management.internal.ConfigurationMBeanImpl.(ConfigurationMBeanImpl.java:128)rn at weblogic.management.AdminServer.(AdminServer.java:59)rn at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)rn at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:753)rn at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)rn at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)rn at weblogic.Server.main(Server.java:32)rn--------------- nested within: ------------------rnweblogic.management.configuration.ConfigurationException: - with nested exception:rn[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]rn at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:266)rn at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:366)rn at weblogic.management.internal.ConfigurationMBeanImpl.(ConfigurationMBeanImpl.java:128)rn at weblogic.management.AdminServer.(AdminServer.java:59)rn at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)rn at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:753)rn at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)rn at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)rn at weblogic.Server.main(Server.java:32)rn--------------- nested within: ------------------rnweblogic.management.configuration.ConfigurationError - with nested exception:rn[weblogic.management.configuration.ConfigurationException: - with nested exception:rn[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]]rn at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:377)rn at weblogic.management.internal.ConfigurationMBeanImpl.(ConfigurationMBeanImpl.java:128)rn at weblogic.management.AdminServer.(AdminServer.java:59)rn at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)rn at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:753)rn at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)rn at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)rn at weblogic.Server.main(Server.java:32)rn***************************************************************************rn 论坛

没有更多推荐了,返回首页