Summary of issues encountered in Java permissions

Source: Internet
Author: User
Tags jboss

has been doing Itoojava permissions, to do this part, come up with a lot of problems, these problems because have not done before, a little weak. A lot of problems, after all, it is not difficult to understand.


I have been recording errors in my OneNote, for the subsequent study to provide information, these problems are generally met to solve, the next time there is no problem, after finishing a feeling, the project package is very good, a novice come up, and no not much effort can quickly join the project, And the project has a good package, the general code is not required to move.


Look at the error:


11:27:40,412 error[org.apache.catalina.core.containerbase.[ Jboss.web]. [Default-host]. [/itoo-authority-start-web]] (Serverservice Thread Pool--56) Jbweb000289:servlet action threw load () exception:javax.naming.namenotfoundexception:itoo-authority-role-ear/ itoo-authority-role-core-0.0.1-snapshot/rolebeanimpl!com.tgb.itoo.authority.service.rolebean-- Servicejboss.naming.context.java.global.itoo-authority-role-ear. " Itoo-authority-role-core-0.0.1-snapshot "." Rolebeanimpl!com.tgb.itoo.authority.service.rolebean "


This problem name can not be found, in fact, in the Maven warehouse is not Rolebean, generally no, in Maven we will empty the warehouse, after the regeneration is good, if not, then more directly, in JBoss deployment of this bean can be.


15:11:57,581 error[org.apache.catalina.core.containerbase.[ Jboss.web]. [Default-host]. [/itoo-authority-start-web]. [Action]] (http-/0.0.0.0:8091-9) JBWEB000236:Servlet.service () for Servlet action threwexception:java.lang.ClassCastException: [Ljava.lang.Object; Cannot be cast tocom.tgb.itoo.authority.entity.Notice


Unable to map out the notice entity class, notice the table in the corresponding database Ta_notice, which we can see from the collection of entities.


Let's take a look at the correct:



And that's what we're sending back:



is not very clear, is very to pass is a notice entity, came is an object, this is very simple, because I call the background method is not the mapping entity but the mapping table caused.


caused By:java.lang.ClassNotFoundException:com.tgb.itoo.authority.entity.User from[module " Deployment.itoo-authority-userrole-ear.ear.itoo-authority-userrole-core-0.0.1-snapshot.jar:main "from Service Module Loader]


Class cannot find that, this exception is the class did not load successfully, unable to find the ear, we regenerate the line.


11:31:19,173 error[org.apache.catalina.core.containerbase.[ Jboss.web]. [Default-host]. [/itoo-authority-start-web]. [Action]] (http-/0.0.0.0:8091-1) JBWEB000236:Servlet.service () for Servlet action Threwexception:java.net.ConnectException:Connection refused: Connect


The connection was rejected to see if it could be ping, or if the CAS did not start.


14:41:36,770 ERROR [org.jboss.as.ejb3.invocation] (http-/0.0.0.0:8091-1) JBAS014134: to Component Noticebeanimpl the method Public Abstractcom.tgb.itoo.authority.entity.Noticecom.tgb.itoo.authority.service.NoticeBean.findNoticeByNoticeId ( java.lang.string,java.lang.string) EJB call failed : javax.ejb.EJBException: Java.lang.NullPointerException


The EJB call failed with a null pointer exception, and the parameter in the method is null.


caused By:java.lang.ClassNotFoundException:com.tgb.itoo.authority.entity.Discution from[module "Org.apache.shiro: Main "from local module loader @768b970c (finder:local module finder @5a4041cc (roots:e:\java\jboss-eap-6.2\modules,e:\ Java\jboss-eap-6.2\modules\system\layers\base)]


This exception, is added Shiro problem, generally caused friebug collapse, restart the friebug can be.


12:11:38,827info [stdout] (serverservice Thread pool--Bayi) caused by: Com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link Failure


Connection problem, deletebyids the first parameter of this method class<t> T, to note that this can not be casually written.


14:36:52,181 error[org.apache.catalina.core.containerbase.[ Jboss.web]. [Default-host]. [/itoo-authority-start-web]. [Action]] (http-/0.0.0.0:8091-1) JBWEB000236:Servlet.service () for Servlet action Threwexception:java.lang.IllegalArgumentException:Unknown return Value Type[java.lang.boolean]


The return value type is not clear, this should be solved well.


Summarize:


A project to do first, do more, while thinking, think about it, so, the principle slowly understand, learning is a long thing, experience more, naturally know where the problem.






Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Summary of issues encountered in Java permissions

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.