jjzjj

illegalstateexception

全部标签

java - 下载项目依赖时Maven(SSL相关?)抛出IllegalStateException

我正在ARM机器上设置开发环境,使用以下版本的Java和Maven,它们都是通过apt-get安装的:(xenial)craig@localhost:~$mvn-versionApacheMaven3.3.9Mavenhome:/usr/share/mavenJavaversion:1.8.0_91,vendor:OracleCorporationJavahome:/usr/lib/jvm/java-8-openjdk-armhf/jreDefaultlocale:en_US,platformencoding:ANSI_X3.4-1968OSname:"linux",version:"

java - 定时器错误 java.lang.IllegalStateException

我试图显示一个标签,说明在JRE8中所有内容仅在3秒内正确,因为我无法在JRE7中使用DatePicker并且我收到此错误。Exceptioninthread"Timer-2"java.lang.IllegalStateException:NotonFXapplicationthread;currentThread=Timer-2atcom.sun.javafx.tk.Toolkit.checkFxUserThread(UnknownSource)atcom.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(UnknownSo

java - 安全处理 org.xml.sax.SAXNotRecognizedException 导致 java.lang.IllegalStateException 在 Tomcat 中运行的解决方案

我在接收Xml并尝试解析它时遇到此异常。负责的代码在作为独立应用程序运行时经过了很好的测试。不过,我现在正在将它集成到Tomcat中。堆栈跟踪是:java.lang.IllegalStateException:org.xml.sax.SAXNotRecognizedException:http://javax.xml.XMLConstants/feature/secure-processingatcom.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:121)atcom.sun.x

java - 使用 Maven 生成 Hibernate 元模型中的 IllegalStateException

我正在使用hibernate-jpamodelgen通过Maven生成元模型类。当我运行mvncleanpackage时,它工作正常,没有任何问题。但是如果我第二次运行mvnpackage(没有清理),我会得到以下异常:Anexceptionhasoccurredinthecompiler(1.8.0_51).PleasefileabugattheJavaDeveloperConnection(http://java.sun.com/webapps/bugreport)aftercheckingtheBugParadeforduplicates.Includeyourprograman

java - Caused by : java. lang.IllegalStateException : Ambiguous mapping found. Cannot map 'appController' bean method

大家早上好,我正在处理一个我无法解码的模糊映射...我正在使用Springmvc4.0.6和hibernate4.3.6在tomcat中发起war时出现此错误:ERROR[localhost-startStop-2]:Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'requestMappingHandlerMapping'definedinclassorg.springframework.web.servlet.con

java - 表单验证play framework 2.0

我正在学习http://www.playframework.org/documentation/2.0/JavaForms上的教程我创建了一个LoginForm.java类(而不是示例中的User.class。不是用于持久化的类,只是一个表单值持有者)packagedomain;importstaticplay.data.validation.Constraints.*;publicclassLoginForm{@RequiredpublicStringemail;publicStringpassword;}在我的Controller中我这样做(作为示例),但我将值设置为空字符串以尝试

java - Iterator.remove() IllegalStateException 异常

在下面的代码中,我有一个trycatchblock,它尝试使用Iterator从Vector中删除一个元素。我创建了自己的类QueueExtendingVect,它扩展了Vector并实现了Iterator。变量qev1是类QueueExtendingVect的实例。我也已经向这个Vector添加了一些元素。try{qev1.iterator().remove();}catch(UnsupportedOperationExceptione){System.out.println("CallingIterator.remove()andthrowingexception.");}qev1

java - List.addAll() 什么时候抛出 IllegalStateException?

我有代码privateListsubFields;privateCollectionsubFieldsCollection;...try{if(subFields==null&&subFieldsCollection!=null&&!subFieldsCollection.isEmpty()){subFields=newArrayList();subFields.addAll(subFieldsCollection);}}catch(IllegalStateExceptione){...}我想知道为什么会抛出IllegalStateException。这显然发生在我的应用程序的用户身上

java - 春java.lang.IllegalStateException : Cannot create a session after the response has been committed

我的spring应用程序中存在session管理问题,情况如下。当用户打开我的应用程序URL时,它会要求提供凭据并登录。用户登录后,如果他打开一个新选项卡并粘贴我的应用程序URL,它会再次要求提供凭据并用户登录。现在,如果用户在选项卡1中注销,并且如果用户想在第二个选项卡中执行任何操作,用户会收到以下堆栈跟踪错误并注销。Oct10,20143:11:27PMorg.apache.catalina.core.StandardWrapperValveinvokeSEVERE:Servlet.service()forservlet[CollPortal]incontextwithpath[/

java - 为什么 Tomcat 在取消部署时会抛出 'java.lang.IllegalStateException: Class invariant violation'?

我有一个网络应用程序(Tomcat6,log4j1.2.16),它以一个监听器开始。取消部署应用程序会引发以下异常:INFO(HqListener.java:28)-HqListenerexited!log4j:ERRORlog4jcalledafterunloading,seehttp://logging.apache.org/log4j/1.2/faq.html#unload.java.lang.IllegalStateException:Classinvariantviolationatorg.apache.log4j.LogManager.getLoggerRepository