精华内容
下载资源
问答
  • {“timestamp”:“2020-05-12 10:16:51”,“status”:500,“error”:“Internal Server Error”,“exception”:“java.lang.IllegalArgumentException”,“message”:“JWT must have 3 tokens”,“path”:"/...

    jmeter执行接口,响应报如下:
    {“timestamp”:“2020-05-12 10:16:51”,“status”:500,“error”:“Internal Server Error”,“exception”:“java.lang.IllegalArgumentException”,“message”:“JWT must have 3 tokens”,“path”:"/detection/api/user/saveOrUpdate"}

    原因:请求头未添加动态认证数据
    在这里插入图片描述

    解决方法:
    在这里插入图片描述

    去使用正则替换写死的数据值
    在这里插入图片描述在这里插入图片描述

    再去运行接口:
    在这里插入图片描述

    展开全文
  • 情景: File.createTempFile(“temp”,suffix); 异常:java.lang.IllegalArgumentException: Prefix string too short 原因:这个方法要求前缀不得少于3个字符 ...java.lang.IllegalArgumentExcep...
    1. 情景: File.createTempFile(“temp”,suffix);
    2. 异常:java.lang.IllegalArgumentException: Prefix string too short
    3. 原因:这个方法要求前缀不得少于3个字符
    4. 解决方案:增加前缀长度(第一个参数),或换其它方法创建文件
    5. 异常详细信息:
      java.lang.IllegalArgumentException: Prefix string too short
      at java.io.File.createTempFile(File.java:2001) ~[na:1.8.0_102]
      at java.io.File.createTempFile(File.java:2070) ~[na:1.8.0_102]
      at cn.jintongsoft.dev.QAExtractor.getQAFromDocument(QAExtractor.java:20) ~[na:na]
      at com.alibaba.dubbo.common.bytecode.Wrapper1.invokeMethod(Wrapper1.java) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory1.doInvoke(JavassistProxyFactory.java:46) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:72) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:60) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:112) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper1.invoke(ProtocolFilterWrapper.java:91) [dubbo2.8.4.jar:2.8.4]atcom.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol1.reply(DubboProtocol.java:108) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:170) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52) ~[dubbo-2.8.4.jar:2.8.4]
      at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82) ~[dubbo-2.8.4.jar:2.8.4]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_102]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_102]
      at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_102]
    展开全文
  • 1、错误描述### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for UserMapper....### Cause: java.lang.IllegalArgumentExcep

    1、错误描述

    ### Error querying database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for UserMapper.findUserInfo
    ### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for TruckMapper.findTruckS
    	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)
    	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:107)
    	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98)
    	at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:601)
    	... 80 more
    Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for UserMapper.findUserInfo
    	at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:768)
    	at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:603)
    	at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:596)
    	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:103)
    	... 85 more

    2、错误原因

         由提示可知,UserMapper中没有findUserInfo拼接的SQL;检查发现,这个SQL语句注释掉了


    3、解决办法

         将这个解注,如果删除掉需要将其方法删掉

    展开全文
  • v详细错误信息 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentExcep...

    v详细错误信息

    Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.] with root cause java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
    复制代码
    2018-03-01 03:39:35.038 ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet][http-nio-8080-exec-1]: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.] with root cause java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
    	at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.updateNamedValueInfo(AbstractNamedValueMethodArgumentResolver.java:168)
    	at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.getNamedValueInfo(AbstractNamedValueMethodArgumentResolver.java:145)
    	at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:94)
    	at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)
    	at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:158)
    	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:128)
    	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
    	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
    	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
    	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
    	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
    	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
    	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
    	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
    	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    	at java.lang.Thread.run(Thread.java:748)
    复制代码

     

    v解决思路

    需要指定 @RequestParam 的name属性值

    v源码分析

     AbstractNamedValueMethodArgumentResolver.java

    复制代码
    private NamedValueInfo getNamedValueInfo(MethodParameter parameter) {
        NamedValueInfo namedValueInfo = this.namedValueInfoCache.get(parameter);
        if (namedValueInfo == null) {
            namedValueInfo = createNamedValueInfo(parameter);
            namedValueInfo = updateNamedValueInfo(parameter, namedValueInfo);
            this.namedValueInfoCache.put(parameter, namedValueInfo);
        }
        return namedValueInfo;
    }
    
    /**
     * Create the {@link NamedValueInfo} object for the given method parameter. Implementations typically
     * retrieve the method annotation by means of {@link MethodParameter#getParameterAnnotation(Class)}.
     * @param parameter the method parameter
     * @return the named value information
     */
    protected abstract NamedValueInfo createNamedValueInfo(MethodParameter parameter);
    
    /**
     * Create a new NamedValueInfo based on the given NamedValueInfo with sanitized values.
     */
    private NamedValueInfo updateNamedValueInfo(MethodParameter parameter, NamedValueInfo info) {
        String name = info.name;
        if (info.name.isEmpty()) {
            name = parameter.getParameterName();
            if (name == null) {
                throw new IllegalArgumentException(
                        "Name for argument type [" + parameter.getNestedParameterType().getName() +
                        "] not available, and parameter name information not found in class file either.");
            }
        }
        String defaultValue = (ValueConstants.DEFAULT_NONE.equals(info.defaultValue) ? null : info.defaultValue);
        return new NamedValueInfo(name, info.required, defaultValue);
    }
    复制代码

    RequestParamMethodArgumentResolver.java
    复制代码
    @Override
    protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
        RequestParam ann = parameter.getParameterAnnotation(RequestParam.class);
        return (ann != null ? new RequestParamNamedValueInfo(ann) : new RequestParamNamedValueInfo());
    }
    
    
    private static class RequestParamNamedValueInfo extends NamedValueInfo {
    
        public RequestParamNamedValueInfo() {
            super("", false, ValueConstants.DEFAULT_NONE);
        }
    
        public RequestParamNamedValueInfo(RequestParam annotation) {
            super(annotation.name(), annotation.required(), annotation.defaultValue());
        }
    }
    复制代码









    本文转自 小眼儿 博客园博客,原文链接:http://www.cnblogs.com/hujunzheng/p/8488781.html,如需转载请自行联系原作者
    展开全文
  • 转自:... 06-03 20:45:24.143: E/AndroidRuntime(1230): FATAL EXCEPTION: main 06-03 20:45:24.143: E/AndroidRuntime(1230): Java.lang.IllegalArgumentExcep
  • 报错日志 org.springframework.dao.InvalidDataAccessApiUsageException: Cannot locate field code on class com.ak47.cms.cms.entity.Tree; nested exception is java.lang.IllegalArgumentExcep...
  • select count(t1.id) from table t1 left join table2 t2 on t1.tid = t2.id 发现是别名问题 改为:select count(t1.id) as count from table t1 left join table2 t2 on t1.tid...java.lang.IllegalArgumentExcep...
  • com.fasterxml.jackson.databind.JsonMappingException: Instantiation of [simple type, class com.googlecode.jmxtrans.model.output.InfluxDbWriterFactory] value failed (java.lang.IllegalArgumentExcep ...
  • 错误:java.lang.IllegalArgumentException: Mapped Statements collection already contains value for *** 环境:springboot 错误原因: MyBatis不允许有重名方法,更改方法名称...java.lang.IllegalArgumentExcep...
  • java 8 bug

    2017-08-03 14:58:00
    jpa保存实体的时候,不能用{{}}初始化对象,否则会报异常 org.springframework.dao.InvalidDataAccessApiUsageException: Unknown entity: ... nested exception is java.lang.IllegalArgumentExcep...
  • webservice异常

    2017-04-05 15:39:00
    webservice的一个常见异常: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing ...quot;": java.util.NoSuchElementException; targetException=java.lang.IllegalArgumentExcep...
  • 错误代码如下: Document base /usr/local/apache-tomcat-6.0.43/host-manager does not exist or is not a readable directory 严重: Error starting static Resources java.lang.IllegalArgumentExcep...
  • 一. 配置jdk 去Oracle官网找到Java SE ... 找到合适的版本下载 这里选择的是windows .zip压缩文件 注意:全部完成后pycharm编译pyspak脚本时可能出现以下报错: Re: java.lang.IllegalArgumentExcep...
  • 一:错误:java.lang.IllegalArgumentException:No view found for id for fragment 在程序中嵌套使用Fragment,实现Fragment中动态加载新的Fragment。...Caused by: java.lang.IllegalArgumentExcep
  • 问题一: 2010-05-23 10:14:33,025 ERROR [org.apache.struts.action.ActionServlet] - Parsing error processing resource path jndi:/localhost/ssh1/WEB-INF/struts-config...java.lang.IllegalArgumentExcep...
  • 背景 微服务架构:springboot +springboot security+...资源服务器API通过浏览器或者是swagger测试调用传递中文参数皆能正常访问,但是在应用的后台通过网络编程调用出现如下错误:java.lang.IllegalArgumentExcep...
  • 问题: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property ‘id’ of ‘class ...Cause: java.lang.IllegalArgumentExcep
  • QuerySyntaxException: productType is not mapped [update productType o set o.visible=?1 where o.id in (?2)] 刚才出了这个错误,看一下明白了,原来是把ProductType实体类写成...java.lang.IllegalArgumentExcep...
  • 随着应用不断迭代,业务线的扩展,应用越来越大(比如集成了各种第三方sdk或者公共支持的jar包,项目耦合性高,重复作用的类越来越多),相信很多人都遇到过如下的错误: ...java.lang.IllegalArgumentExcep
  • 部署项目的时候,需要用到Tomcat,将开发提供的工程包部署到Tomcat的webapps目录下。发现webapps下很多自带应用很多余,故把Tomcat自带应用从webapps目录下删除,启动Tomcat。...java.lang.IllegalArgumentExcep
  • Android 65535解决方法

    2016-03-23 15:12:08
    随着应用不断迭代,业务线的扩展,应用越来越大(比如集成了各种第三方sdk或者公共支持的jar包,项目耦合性高,重复作用的类越来越多),相信很多人都遇到过如下的错误: ...java.lang.IllegalArgumentExcep
  • Android 解决65535的限制

    2016-03-09 22:15:15
    随着应用不断迭代,业务线的扩展,应用越来越大(比如集成了各种第三方sdk或者公共支持的jar包,项目耦合性高,重复作用的类越来越多),相信很多人都遇到过如下的错误: ...java.lang.IllegalArgumentExcep
  • 随着应用不断迭代,业务线的扩展,应用越来越大(比如集成了各种第三方sdk或者公共支持的jar包,项目耦合性高,重复作用的类越来越多),相信很多人都遇到过如下的错误: ...java.lang.IllegalArgumentExcep
  • 一、什么是MultiDex  随着时代的进步,人们对手机 APP 的需求越来越大,越来越苛刻,很多APP都变得很大,再加上APP都不可避免的需要导入一些框架、第三方类库等等,就更加大了...java.lang.IllegalArgumentExcep
  • java.lang.reflect.Field的getInt()方法用于获取必须为静态或实例字段类型的int值。此方法还用于获取通过扩展转换可转换为int类型的另一个基本类型的值。当一个类包含一个静态或实例int字段并且我们想要获取该字段的...
  • easyexcel报错,jdk1.8

    2020-11-13 12:58:32
    <p>easyexcel报错:java.lang.ExceptionInInitializerError,java.lang.IllegalArgumentExcep 代码: [code=java]public static List<User> data(){         List<...

空空如也

空空如也

1 2
收藏数 28
精华内容 11
关键字:

java.lang.illegalargumentexcep

java 订阅