精华内容
下载资源
问答
  • java.lang.IllegalStateException: No parameter name specified for argument of type [java.lang.Integer
    2022-04-04 18:31:34

    Springmvc绑定参数出现的异常(springmvc argument type [java.lang.Integer] not available)

    在使用SpringMVC绑定基本类型(如String,Integer等)参数时,应通过@RequestParam注解指定具体的参数名称否则,当源代码在非debug模式下编译后,运行时会引发HandlerMethodInvocationException异常,这是因为只有在debug模式下编译,其参数名称才存储在编译好的代码中

    java.lang.IllegalStateException: No parameter name specified for argument of type [java.lang.Integer], and no parameter name information found in class file either. 

     最好的做法是通过@RequestParam注解指定具体的参数名称

    更多相关内容
  • 1. java.lang.IllegalStateException: No wrapped connection. 2.java.lang.IllegalStateException: Adapter is detached. 原因: 1.单线程一次执行一个请求可以正常执行,如果使用多线程,同时执行多个请求时就会...
  • 异常:Caused by: java.lang.IllegalStateException: Method has too many Body parameters Caused by: java.lang.IllegalStateException: Method has too many Body parameters: public abstract ...
  • NULL 博文链接:https://hw1287789687.iteye.com/blog/1925191
  • 适用于新手的 Web 部署时的 java.lang.IllegalStateException 错误

    本章是存放我遇到该异常子类的文章,但凡是涉及此异常都会放在里面,
    所以会多次更新,如果有遇到其他困难可以告诉我,我可能碰到过

    有帮助就帮忙给个赞或者关注吧!!!!!【鞠躬】

    1、情况一:@WebServlet 的配置问题

    1.1、错误警告查看

    			你可以页面搜索一些关键字,看下有没有相同的异常提示/警告
    
    18-Jan-2022 08:57:20.774 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke 调用方法[manageApp]时发生异常
    	java.lang.IllegalStateException: 启动子级时出错
    		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
    		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
    		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
    		at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1822)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    		at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:293)
    		at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
    		at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    		at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:428)
    		at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:376)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    		at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:293)
    		at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
    		at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    		at java.management/com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)
    		at java.base/java.security.AccessController.doPrivileged(Native Method)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1406)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    		at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
    		at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
    		at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
    		at java.base/java.security.AccessController.doPrivileged(Native Method)
    		at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
    		at java.base/java.security.AccessController.doPrivileged(Native Method)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
    		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    		at java.base/java.lang.Thread.run(Thread.java:834)
    	Caused by: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/my]]
    		at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
    		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
    		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    		... 42 more
    	Caused by: java.lang.IllegalArgumentException: servlet映射中的<url pattern>[mytest1]无效
    		at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3261)
    		at org.apache.catalina.Context.addServletMappingDecoded(Context.java:905)
    		at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1562)
    		at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1329)
    		at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:986)
    		at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
    		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5068)
    		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    		... 43 more
    18-Jan-2022 08:57:20.778 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke 调用方法[createStandardContext]时发生异常
    	javax.management.RuntimeOperationsException: 调用方法[manageApp]时发生异常
    		at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:303)
    		at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
    		at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    		at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:428)
    		at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:376)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    		at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:293)
    		at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
    		at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    		at java.management/com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)
    		at java.base/java.security.AccessController.doPrivileged(Native Method)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1406)
    		at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    		at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
    		at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
    		at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
    		at java.base/java.security.AccessController.doPrivileged(Native Method)
    		at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
    		at java.base/java.security.AccessController.doPrivileged(Native Method)
    		at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
    		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    		at java.base/java.lang.Thread.run(Thread.java:834)
    	Caused by: java.lang.IllegalStateException: 启动子级时出错
    		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
    		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
    		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
    		at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1822)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    		at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:293)
    		... 34 more
    	Caused by: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/my]]
    		at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
    		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
    		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    		... 42 more
    	Caused by: java.lang.IllegalArgumentException: servlet映射中的<url pattern>[mytest1]无效
    		at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3261)
    		at org.apache.catalina.Context.addServletMappingDecoded(Context.java:905)
    		at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1562)
    		at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1329)
    		at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:986)
    		at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
    		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5068)
    		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    		... 43 more
    [2022-01-18 08:57:20,800] 工件 untitled1:war exploded: 部署工件时出错。请参阅服务器日志了解详细信息。
    18-Jan-2022 08:57:30.198 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [D:\softwore\Tomcat\apache-tomcat-10.1.0-M8\webapps\manager]
    18-Jan-2022 08:57:30.614 警告 [Catalina-utility-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom 使用[SHA1PRNG]创建会话ID生成的SecureRandom实例花费了[310]毫秒。
    18-Jan-2022 08:57:30.650 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[D:\softwore\Tomcat\apache-tomcat-10.1.0-M8\webapps\manager]的部署已在[453]毫秒内完成
    
    

    1.2、详解:

    前提

    		这一天我在测试刚学的东西,昨天服务器运行正常,今天刚刚写点测试就报错
    		​因为不知道是不是昨天试图让别人访问我的服务器,修改了servlet.xml(**我用的是Tomcat**)
    		所以我第一时间去看了对应文档
    

    行动

    		servlet.xml 发现无误,所以只能查看错误警告:从上到下粗略查看
    		发现关键字**<url pattern>[mytest1]**无效,应该是映射出现了问题
    		(前面有提示服务器正常启动,但后面部署工程出现错误)
    

    原因

    		写映射的时候遗漏了   “ **/** ” ,如图:
    
    		有绿色波浪线,但是没有飘红,而且也只是提示拼写错误,更换一个字符串而已,所以我没有多想
    

    更改前:

    在这里插入图片描述

    更改后:仍然提示:

    在这里插入图片描述

    2、情况二:XML映射问题

    		异常情况和情况一相同,只是地点换了,错误相同,不过多赘述
    
    		在写XML映射标签的时候,也是漏了   ” / “ 
    
    		hello  ->   /hello 
    

    正确形式:

        <servlet-mapping>
            <servlet-name>Mymap</servlet-name>
            <url-pattern>/hello</url-pattern>
        </servlet-mapping>
    
    展开全文
  • Caused by: nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘java.lang.String’ to required type ‘javax.sql.DataSource’ for property ‘dataSource’: no matc...

    ssm项目突然报出下列异常
    Caused by: nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘java.lang.String’ to required type ‘javax.sql.DataSource’ for property ‘dataSource’: no matching editors or conversion strategy found

    翻译:
    嵌套异常是java.lang.IllegalStateException:无法将“java.lang.string”类型的值转换为属性“datasource”所需的“javax.sql.datasource”:未找到匹配的编辑器或转换策略
    分析问题后,找到问题在于spring的applicationContext的配置文件中

    出现异常的原因:

    spring中<property name=xxx value / ref = xxx >对于引用类型和值类型的引导方式使用错误所致(粗心的结果):

    解决

    1. 引用类型的使用ref来引导
      异常的原因

    将value改为ref即解决
    在这里插入图片描述
    -------------------------分隔线-----------------------------
    2. 值类型使用value来引导 如下
    在这里插入图片描述

    总的来说这种异常就是粗心之过,希望自己下次不要再犯

    展开全文
  • Caused by: java.lang.IllegalStateException: zookeeper not connected at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.5] .....

    错误产生环境

    在这里插入图片描述

    Spring Boot 项目,dubbo整合zookeeper ,启动项目时报错

    错误描述

    java.lang.IllegalStateException: zookeeper not connected
    Caused by: java.lang.IllegalStateException: zookeeper not connected
    	at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.5]
    	... 30 common frames omitted
    java.lang.NullPointerException: null
    

    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述

    错误原因

    通过status 命令查看zookeeper 正常运行
    在这里插入图片描述
    放行2181端口

    在这里插入图片描述
    通过端口扫描,可以看到端口已经暴露出来了。
    在这里插入图片描述
    以上的种种可以说明zookeeper 服务器是正常启动了。

    为什么客户端代码无法访问呢?

    解决办法

    通过查阅相关资料得知,可能是zookeeper 的超时问题,zookeeper 默认的超时时间是5000(毫秒),时间较短,配置超时时间长些即可解决!
    设置如下,我这里设置为25000
    在这里插入图片描述
    系统启动成功
    在这里插入图片描述

    展开全文
  • NULL 博文链接:https://anminer.iteye.com/blog/845067
  • 之前搭建的网关今天居然启动...java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.client.loadbalancer.AsyncLoadBalancerAutoConfiguration at org.springframework.boot.a
  • java.lang.IllegalStateException: Failed to register dubbo://10.3.5.176:20880 2、解决办法: 第一步: 1、先检查是否导入了项目所需要的全部Jar包,一般情况下是因为缺少某一个包导致,猜现在是缺少common-...
  • 解决okhttp 报java.lang.IllegalStateException: closed,java.lang.IllegalStateException: closed,原因为OkHttp请求回调中response.body().string()只能有效调用一次,我们可以把它保存起来 传递给下一个调用方 ...
  • java.lang.IllegalStateException 错误解决过程 今天在搭建 spring boot 项目的过程中出现了以下的错误,也是花了好长时间才解决,今天我就来分享一下我解决报错的过程。 2021-01-18 19:59:28.637 ERROR 19504 --- ...
  • 错误日志: nested exception is org.spring... nested exception is java.lang.IllegalStateException: Unable to load cache item at org.springframework.beans.factory.support.AbstractAutowireCapableB
  • java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl....
  • Artifact servlet-01:war exploded: Artifact is being deployed, please wait… 严重 [RMI TCP Connection(3)-127.0.0.1] org....java.lang.IllegalStateException: 启动子级时出错 at org.apache.catalina.core.C
  • java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration.taskExecutorBuilder 详细报错代码 D:\java\jdk1.8.0_201\bin\...
  • java.lang.IllegalStateException Can not perform this action after onSaveInstanceState 解决方案 Fragment 闪退复现 Handler().postDelayed({ //打开页面后在 5 秒内按 home 或 back val fragment = Fragment...
  • "C:\Program Files\Java\jdk1.8.0_251\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.3\lib\idea_rt.jar=53883:C:\Program Files\...
  • 项目启动报错,java.lang.IllegalStateException: zookeeper not connected 错误提示是连接不上zookeeper,一般这种情况要么是网络问题,要么是权限问题 1:首先确认zookeeper是否正常运行,登录服务器查看...
  • java.lang.IllegalStateException问题解决

    千次阅读 2021-09-07 14:35:00
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘scheduledTaskMapper’ defined in URL [jar:file:/D:/gongzuo/shikong/java/ckedi/target/ckedi-0.0.1-...
  • java.lang.IllegalStateException: Failed to load property source from 'file:/H:/codes20210804/nacos-demo/provider/target/classes/application.yml' (classpath:/application.yml) at org.springframework....
  • 消息 java.lang.IllegalStateException: 无输出目录 描述 服务器遇到一个意外的情况,阻止它完成请求。 例外情况 org.apache.jasper.JasperException: java.lang.IllegalStateException: 无输出目录 org.apache....
  • java.lang.RuntimeException: Unable to pause activity : java.lang.IllegalStateException: No activity。页面切换时使用错误的方法关闭Activity,导致项目闪退
  • 成功解决java.lang.IllegalStateException:Another strategy was already registered.项目场景:问题描述:原因分析:解决方案:参考文章 ** 项目场景: 项目场景:微服务项目使用了熔断器Hystrix配置,在添加...
  • java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:...
  • 风吹起了从前,看着天边似在眼前,万般流连~

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 56,412
精华内容 22,564
关键字:

java.lang.illegalstateexception

java 订阅