`
yeelor
  • 浏览: 413896 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Expected: class java.lang.Long, got class java.lang.Integer异常处理

    博客分类:
  • Java
 
阅读更多

Config config = em.find(Config.class, 1);

 

改为

 

Config config = em.find(Config.class, 1L);

 

参数1默认会转化为int类型

分享到:
评论

相关推荐

    hbase 启动regionserver日志报错: Wrong FS: hdfs:// .regioninfo, expected: file:///

    NULL 博文链接:https://bnmnba.iteye.com/blog/2322332

    dubbo-monitor-simple.zip

    dubbo-monitor监控中心,基于alibaba dubbo.jar开发,解决Decode rpc invocation failed: expected map/object at java.lang.String (Ljava/lang/String)、com.alibaba.dubbo.common.URL' could not be instantiated...

    googleGson JsonObject json转换包

    包含以下java源文件: com.google.gson.DefaultDateTypeAdapter.class com.google.gson.ExclusionStrategy.class com.google.gson.FieldAttributes.class com.google.gson.FieldNamingPolicy.class ...

    avro-mapred-1.7.8-SNAPSHOT-hadoop2

    org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected at org.apache...

    关于springboot我出过的那些错误.docx

    错误一:java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet 错误原因:web.xml 中 servlet-class 标签中 org.springframework.web.servlet.DispatcherServlet.class 多了一个 ...

    springmodules-cache.xsd&springmodules-ehcache.xsd.rar

    解决web.xml中 <page-encoding>UTF-8报错。错误提示: cvc-complex-type.2.4.a: Invalid content was found starting with element '... java.sun.com/xml/ns/javaee":error-on-undeclared-namespace}' is expected.

    java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input

    Q: I am working with Oracle database 8.1.7 and I have written a JAVA code to update the table which contains one BLOB field . I am using updateBinaryStream method of resultset to update the BLOB field...

    AXMLPrinter2错误修正版本

    java.lang.ArrayIndexOutOfBoundsException: 128 at android.content.res.StringBlock.getShort(StringBlock.java:231) at android.content.res.StringBlock.getString(StringBlock.java:91) at android.content....

    精心整理的ssh2 一些错误问题的记录(推荐)

    <id name="id" type="java.lang.Long"> <generator class="sequence"> <param name="sequence">SEQ_GAMOA_MANAGE_REMARK ``` 确认`SEQ_GAMOA_MANAGE_REMARK`在数据库中正确存在并且可以被正确引用。 ### ...

    在Vue项目中使用Typescript的实现

    主要的工作是webpack对TS,TSX的处理,以及2.x版本下面使用class的形式书写Vue 组件的一些限制和注意事项。 Webpack 配置 配置webpack对TS,TSX的支持,以便于我们在Vue项目中使用Typescript和tsx。 module....

    Elasticsearch主备集群.docx

    gateway.expected_nodes: 1 http.content_type.required: true gateway.recover_after_time: 5m ``` 在备服务器(10.22.159.36)上,配置类似,只需更改node.name和network.host: ``` http.cors.enabled: true ...

    Java高性能线程库(java.util.concurrent包的补充)

    一个高性能的Java线程库,该库是 JDK 1.5 中的 java.util.concurrent 包的补充,可用于基于并发消息机制的应用。该类库不提供远程的消息功能,其设计的宗旨是实现一个内存中的消息传递机制. 主要特点有: * All ...

    selenium-java-3.141.59.zip

    5. **Wait** 和 **ExpectedConditions**:在处理动态加载的网页或等待元素出现时,可以使用 `WebDriverWait` 配合 `ExpectedConditions` 来实现异步等待。 6. **断言**:在测试中,我们通常会用到断言来验证预期...

    解决:dubbo找不到dubbo.xsd报错

    构建dubbo项目的时候会遇到: 操作步骤: ... Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:...

    牛津英语unit2 短语总结[精选].doc

    5. `a day earlier than expected`:比预期提前了一天到达或完成。 6. `can’t wait to do sth.`:表示非常期待做某事;`can't help doing sth.`:情不自禁地做某事;`can’t help (to) do sth.`:不能帮助做某事;`...

    LSPosed-v1.8.6-6953-zygisk-release.zip

    2. **daemon.apk**:后台服务应用,可能负责处理模块的加载和运行。 3. **daemon**:可能是一个可执行文件或服务,用于支持框架的核心功能。 4. **README.md**:包含了安装、使用和更新 LSPosed 的说明,对于用户来...

    Addison.Wesley.The.Java.Programming.Language.4th.Edition.Aug.2005.chm

    It also covers most of the classes in the main packages (java.lang, java.util, java.io) as implemented in the J2SE™ Development Kit 5.0 (more commonly known as JDK 5.0, or in the older nomenclature ...

Global site tag (gtag.js) - Google Analytics