When running a Java application, the following error occurs.
Org. logicalcobwebs. proxool. Housekeeper sweepWarning: #0002 was active for 634297 milliseconds and has been removed automaticaly. the thread responsible was named 'HTTP-8080-1 ', but the last SQL it timed med is unknown because the trace property is not enabled.
Error code:
Try {
Analysis:
According to the prompt, the database connection in the program is not released. The connection may
Calling a WebServices service today throws an exception: org. xml. Sax. saxexception: simpledeserializer encountered a child element, which is not expected, in SOMETH ing it was trying to deserialize.
It took one day to find information online.
Call the WebServices code:
Getsubscriptionreq input = new getsubscriptionreq ();
If the getsubscriptionrsp class object returned by services is not associated with another subinfo class object. this exception
The exception as following:
[Fatal error] server. msdk. Perf. All. xml: 192: 1: content is not allowed in trailing section.
Org. xml. Sax. saxparseexception: content is not allowed in trailing section.
At com.sun.org. Apache. xerces. Internal. parsers. domparser. parse (unknown source)
At com.sun.org. Apache. xerces. Internal. JAXP. documentbuilderimpl. parse (unknown source)
At javax. xml. parsers. documentbuilder. parse (unknown source)
...
...
W
Org. hibernate. Id. identifiergenerationexception: IDs for this class must be manually assigned before calling save ()
The cause of this error may be that your table has a primary key. But when you insert (call save), the value is null.
The ID (primary key) type in the data table you want to operate on is set to "auto-increment type ".
In hibernate. cfg. XML, the ID generation method is assigned, that is
Solution:
The primary key generation
Org. apache. commons. beanutils is a sub-project under Apache commons. Because of tracking struts, we tracked this package in depth and found that some static tool functions provided by the beanutils class are still very useful. This toolkit is widely used in struts to operate the struts actionform object.
Clonebean: copy a bean object. The reflect method is used to call getter and setter to copy bean objects, which is equally effective for bean ob
The following problems were encountered during project implementation:
Info: couldn't set dynamic validation feature org. xml. Sax. saxnotrecognizedexception: sax feature 'HTTP: // apache.org/xml/features/validation/dynamic' not recognized .......
After careful analysis, the cause of this error is that the XML parser in WebLogic 10.3 has a problem. In WebLogic Server 10.3, weblogic. jar META-INF/services/javax. XML. parsers. saxparserfactory specifies
Environment
JBoss 6.0 + myeclipse 8.6 + MySQL 5.1 + Struts 2.3 + EJB 3.0
Problem
When JBoss is started, "Java. Lang. noclassdeffounderror ORG/Apache/commons/lang3/stringutils jar" exception occurs.
Solution
The commons-lang3-3.1.jar is missing, add this jar to the build path of the project or under webroot/WEB-INF/lib.
References
Http://snowfigure.diandian.com/post/2012-07-20/40029447675
Http://blog.csdn.net/jeffyu328/article/details/7721022
Data do
3. call a class in action and inject the class into spring. In this class, the dao operation times: org. springframework. dao. invalidDataAccessApiUsageException: 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. this error occurs. Cause: When S2SH is used in the project, OpenSessionInViewFilter is enabled to prevent loadi
We often operate on strings. Spring has implemented common processing functions. We can use the org. springframework. util. stringutils tool class to help us process strings.Tool classes are organized as follows:Stringutils. haslength (null) = falseStringutils. haslength ("") = falseStringutils. haslength ("") = trueStringutils. haslength ("hello") = trueStringutils. hastext (null) = falseStringutils. hastext ("") = falseStringutils. hastext ("") = fa
Eclipse version 3.5.2 is used to configure the android development environment ......
Install the SDK step by step according to the official Android documentation. When the ADT plug-in of eclipse is installed, the system prompts "requires 'org. eclipse. GEF 0.0.0 'But it cocould not be found ". After a long time, the problem was finally solved:
The GEF and eclipse's graphic editing framework are missing. The following is the plug-in address:
Http://d
Exception in json parsing org. json. JSONException: A JSONObject text must begin with #39 ;{ #39; at character 1? {Solution
The reason for this exception is that the json string format is not normal and does not end with "{" or "}". Check the json file format carefully to solve this problem. But sometimes the json file is normal, there is still this exception information, how to do it, this is because your json file header contains encoding characte
Org. hibernate. LazyInitializationException cocould not initialize proxy-no Session solution, hibernate. initializeMethod 1: configure the filter to disable the session with a delay in web. xml.
Method 2
: Set lazy = "false"
Setting lazy = "false" solves most of the delayed loading problems, but also reduces the system performance. This method should be avoided.
Copyright Disclaimer: This article is an original article by the blogger and cannot be re
Org. apache. commons. fileupload. FileUploadBase $ InvalidContentTypeException, apachecommons
1. Error cause
org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is nullat org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.
2. Error cause
3. Solution
My Hibernate is 3.2.6
The last solution to this problem is to add the following red-colored code.
Org. hibernate. dialect. oracle9dialectTrue
If you have a better solution, please leave a message. Thank you.
When I started tomcat in the project today, the following error was reported in the window:Java. Lang. noclassdeffounderror: ORG/hibernate/CFG/hbmbinder $ secondpass
This problem has plagued me for the whole afternoon and I have not found it out ~~
Finally, I checked it online and found that there were quite a few people with this problem. Some people who did not encounter this problem said they could not find this class, but they did not explain the
child nodes. in particle, this is true when character references are involved, given that they are not represented in the Dom and they impact attribute value normalization. on the other hand, if the implementation knows about the schema in use when the attribute value is changed, and it is of a different type than CDATA, it may normalize it again at that time. this is especially true of specialized Dom implementations, such as SVG Dom implementations, which store attribute values in an internal
org.apache.lucene.index.IndexWriterConfig.setIndexWriter(IndexWriterConfig.java:148) at org.apache.lucene.index.IndexWriter.Principle Analysis
Analysis constructor: New indexwriter (directory, indexwriterconfig );
1 public IndexWriter(Directory d, IndexWriterConfig conf) throws IOException {2 conf.setIndexWriter(this); // prevent reuse by other instances3 ……4 ……5 ……6 }
Focus on the second line Conf. setindexwriter (this );
1 private SetOnce
In this case, the wirter variable
When non-built-in objects such as java. SQL. Date are used, this exception occurs if the object is null. The simplest method is to ensure that non-built-in objects are not null.
As the demand changes in the project business, there is no guarantee that the built-in objects are not null. Therefore, it is necessary to solve this exception to achieve a general effect. The following is a solution to this exception:
/** Time to market */Private java. SQL. Date timeToMarket;
// If timeToMarket is null
Org. apache. tomcat. util. bcel. classfile. ClassFormatException: It is not a Java. class file, javaclassnotfound
The following error is returned when Tomcat is started:
24-May-2015 14:47:07.441 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsJar Unable to process Jar entry [com/auth/spring/listener/SpringLoaderListener.class] from Jar [jar:file:/opt/apache-tomcat-8.0.22/webapps/ROOT/WEB-INF/lib/xinghe-core-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.