Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

lei zhang

Greenhorn
+ Follow
since Sep 15, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by lei zhang

everybody,who knows how to integrated the jsf TM and javaFX TM together or who can give me some document or samples .my MSN:zl_830917103@hotmail.com that also my email address.


3Q!
13 years ago
JSF
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel
(Parser.java:1077)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(
Parser.java:1067)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseConten
ts(Template.java:213)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnC
hildren(Stylesheet.java:590)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseCont
ents(Stylesheet.java:562)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Par
ser.java:380)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.
java:325)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.
java:410)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.n
ewTemplates(TransformerFactoryImpl.java:791)
at net.sf.hibernate.xml.XMLDatabinder.getOutputStyleSheetTemplates(XMLDa
tabinder.java:254)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja
va:161)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
java:750)
at com.beelink.dbModules.HibernateDAO.<init>(HibernateDAO.java:79)
at com.beelink.actions.InitDBListener.contextInitialized(InitDBListener.
java:38)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
211)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
错误:�null�
致命错误:�无法编译样式表�
15 years ago
reply Abhijith Prabhakar :

thank you give me the methods to deal with this,but ,i do it like you say that,but i translate it in this way what you say,i didn't get the hours,minutes,and seconds only the day,month,and year ,can you tell me why?
15 years ago
how to cast the java.util.date to java.sql.date

please give me a help!



and i want to get the hours,seconds.
15 years ago
thank you Ulf Dittmer .thank you
15 years ago
i want to invoke the COM compenment in my java program,but i didn't know how to implement it ,some body can help me? thank you
15 years ago
somebody here who can help me to tell me how i invoke the COM compement.thank you.
15 years ago
please , somebody can checked my proplem.....
================================================
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: (class: org/apache/tools/ant/taskdefs/optional/XMLValidateTask, method: createDTD signature: ()Lorg/apache/tools/ant/types/DTDLocation;) Incompatible argument to function
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.jl165.action.CodeFilter.doFilter(CodeFilter.java:66)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:142)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:58)


root cause

java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/XMLValidateTask, method: createDTD signature: ()Lorg/apache/tools/ant/types/DTDLocation;) Incompatible argument to function
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:164)
org.apache.tools.ant.Project.init(Project.java:274)
org.apache.jasper.compiler.Compiler.getProject(Compiler.java:116)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.jl165.action.CodeFilter.doFilter(CodeFilter.java:66)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:142)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:58)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
=====================

in logs ,i do not find the error message,how can i deal this...
thack you...


=======
msn:zl_830917103@hotmail.com
16 years ago
..........................
16 years ago
hi Nidhi

the both are good ,but for you , which one you chose in a project that thinking about the size of this project

i like oracle,SQL server is bother,uninstalling it is very trivial,then,you uninstalled it take you a lot time,but you insatll it again,there has a mistake for installing it,
on all account,for installing it ,i installed my system several again.
it very bad!!
I installed SQL sever 2000 in my computer,but i doesn't connected it with the follow TestJDBC class:
---------------------------------------------------------------------------
import java.sql.*;


public class TestJDBC{
public static void main(String[] args){
try {

String url =
"jdbc:microsoft:sqlserver://localhost:1433;databaseName=jiaotong";
String username = "java";
String password = "java";
Connection conn = null;
System.out.println("1");
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
System.out.println("2");
conn = DriverManager.getConnection(url, username, password);
System.out.println("2" + conn);
Statement stmt = conn.createStatement() ;
//String strSql = " insert into cat values('1','jdbc','m',0) " ;
// stmt.execute( strSql );

stmt.close();
conn.close();

}
catch (Exception e) {
e.printStackTrace();
}

}
}
--------------------------------------------------------------------------
and the errors are follow:
D:\>java TestJDBC
1
2
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establis
hing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)

at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Sou
rce)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S
ource)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at TestJDBC.main(TestJDBC.java:18)

D:\>
-------------------------------------------------------------------------
set sql_home=D:\sql
set CLASSPATH=%classpath%;%sql_home%\mssqlserver.jar;%sql_home%\msutil.jar;%sql_home%\msbase.jar;

plase give me a help, thanks
Thanks Nicholas and Mark!
For I first come here,I am sorry!!!
After reading <<The peopleware paper>>,I have some question:
<1>There is one puzzle that what the real essence of the OOP,everyone here cangive me a living example to explain it.
Thank you first all!!
<2>There is one sentence which one kernel technologh of the OOP is taking the communication though the information on page 246, I don't understand it,which sage man of virtue can give me the guide!!!
Thank you!!