{"id":35134,"date":"2024-11-26T15:42:06","date_gmt":"2024-11-26T07:42:06","guid":{"rendered":"https:\/\/fwq.ai\/blog\/35134\/"},"modified":"2024-11-26T15:42:06","modified_gmt":"2024-11-26T07:42:06","slug":"java-%e8%b0%83%e7%94%a8-kettle-%e6%97%b6%ef%bc%8ctomcat-%e4%b8%8b%e8%bf%90%e8%a1%8c%e6%8a%a5%e9%94%99%ef%bc%9a%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3-java-io-ioexception-invalid-constant-type","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/35134\/","title":{"rendered":"Java \u8c03\u7528 Kettle \u65f6\uff0cTomcat \u4e0b\u8fd0\u884c\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 &#8220;java.io.IOException: invalid constant type&#8221; \u9519\u8bef\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173062175157556.jpg\" class=\"aligncenter\" title=\"Java \u8c03\u7528 Kettle \u65f6\uff0cTomcat \u4e0b\u8fd0\u884c\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 &#8220;java.io.IOException: invalid constant type&#8221; \u9519\u8bef\uff1f\u63d2\u56fe\" alt=\"Java \u8c03\u7528 Kettle \u65f6\uff0cTomcat \u4e0b\u8fd0\u884c\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 &#8220;java.io.IOException: invalid constant type&#8221; \u9519\u8bef\uff1f\u63d2\u56fe\" \/><\/p>\n<p>\u5f53\u4f7f\u7528 java \u8c03\u7528 kettle \u65f6\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0 mn \u65b9\u6cd5\u4e0d\u62a5\u9519\uff0c\u4f46\u662f\u5728  \u4e0b\u8fd0\u884c\u65f6\u51fa\u73b0\u62a5\u9519\u7684\u60c5\u51b5\u3002\u9020\u6210\u8fd9\u79cd\u60c5\u51b5\u7684\u539f\u56e0\u4e4b\u4e00\u662f\uff0c\u5728 tomcat \u73af\u5883\u4e2d\u8fd0\u884c\u7684 java \u4ee3\u7801\u53ef\u80fd\u4f1a\u9047\u5230\u4e0e main \u65b9\u6cd5\u4e2d\u4e0d\u540c\u7684\u7c7b\u8def\u5f84\u6216\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>\u5728\u4f60\u7684\u6848\u4f8b\u4e2d\uff0c\u51fa\u73b0\u7684\u9519\u8bef\u662f\uff1a<\/p>\n<pre>java.io.IOException: invalid constant type: 20 at 7\nat javassist.bytecode.ConstPool.readOne(ConstPool.java:1241)<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u4e2a\u9519\u8bef\u901a\u5e38\u662f\u5728 java \u91cd\u5b9a\u4f4d\u5b57\u8282\u7801\u65f6\u629b\u51fa\u7684\uff0c\u5b83\u8868\u793a\u5728\u89e3\u6790\u5b57\u8282\u7801\u65f6\u9047\u5230\u4e86\u4e00\u4e2a\u65e0\u6548\u7684\u5e38\u91cf\u7c7b\u578b\u3002\u8fd9\u53ef\u80fd\u7531\u4e8e\u4f7f\u7528\u4e86\u8fc7\u65f6\u7684 java \u6216\u5b57\u8282\u7801\u64cd\u4f5c\u5e93\u5bfc\u81f4\u3002<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u8bf7\u68c0\u67e5\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li> <strong>\u7248\u672c\u95ee\u9898\uff1a<\/strong>\u786e\u4fdd\u4f7f\u7528\u7684 java \u7248\u672c\u4e0e kettle \u517c\u5bb9\u3002<\/li>\n<li> <strong>\u5b57\u8282\u7801\u5e93\u7248\u672c\uff1a<\/strong>\u68c0\u67e5\u6b63\u5728\u4f7f\u7528\u7684\u5b57\u8282\u7801\u5e93\u7684\u7248\u672c\uff0c\u4f8b\u5982 javassist\u3002\u5c06\u5b83\u4eec\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u4f7f\u7528\u4e0e kettle \u517c\u5bb9\u7684\u5df2\u77e5\u7248\u672c\u3002<\/li>\n<li> <strong>\u7c7b\u8def\u5f84\u95ee\u9898\uff1a<\/strong>\u9a8c\u8bc1\uff0c\u5728 tomcat \u4e0b\u8fd0\u884c\u65f6\uff0c\u6240\u9700\u7684\u7c7b\u548c\u8d44\u6e90\u662f\u5426\u5728\u7c7b\u8def\u5f84\u4e2d\u53ef\u7528\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fJava \u8c03\u7528 Kettle \u65f6\uff0cTomcat \u4e0b\u8fd0\u884c\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 &#8220;java.io.IOException: invalid constant type&#8221; \u9519\u8bef\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u4f7f\u7528 java \u8c03\u7528 kettle \u65f6\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0 mn \u65b9\u6cd5\u4e0d\u62a5\u9519\uff0c\u4f46\u662f\u5728 \u4e0b\u8fd0\u884c\u65f6\u51fa\u73b0\u62a5\u9519\u7684\u60c5\u51b5\u3002\u9020\u6210\u8fd9\u79cd\u60c5\u51b5\u7684\u539f\u56e0\u4e4b\u4e00\u662f\uff0c\u5728 tomcat \u73af\u5883\u4e2d\u8fd0\u884c\u7684 java \u4ee3\u7801\u53ef\u80fd\u4f1a\u9047\u5230\u4e0e main \u65b9\u6cd5\u4e2d\u4e0d\u540c\u7684\u7c7b\u8def\u5f84\u6216\u73af\u5883\u53d8\u91cf\u3002 \u5728\u4f60\u7684\u6848\u4f8b\u4e2d\uff0c\u51fa\u73b0\u7684\u9519\u8bef\u662f\uff1a java.io.IOException: invalid constant type: 20 at 7 at javassist.bytecode.ConstPool.readOne(ConstPool.java:1241) \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u4e2a\u9519\u8bef\u901a\u5e38\u662f\u5728 java \u91cd\u5b9a\u4f4d\u5b57\u8282\u7801\u65f6\u629b\u51fa\u7684\uff0c\u5b83\u8868\u793a\u5728\u89e3\u6790\u5b57\u8282\u7801\u65f6\u9047\u5230\u4e86\u4e00\u4e2a\u65e0\u6548\u7684\u5e38\u91cf\u7c7b\u578b\u3002\u8fd9\u53ef\u80fd\u7531\u4e8e\u4f7f\u7528\u4e86\u8fc7\u65f6\u7684 java \u6216\u5b57\u8282\u7801\u64cd\u4f5c\u5e93\u5bfc\u81f4\u3002 \u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u8bf7\u68c0\u67e5\u4ee5\u4e0b\u5185\u5bb9\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u7248\u672c\u95ee\u9898\uff1a\u786e\u4fdd\u4f7f\u7528\u7684 java \u7248\u672c\u4e0e kettle \u517c\u5bb9\u3002 \u5b57\u8282\u7801\u5e93\u7248\u672c\uff1a\u68c0\u67e5\u6b63\u5728\u4f7f\u7528\u7684\u5b57\u8282\u7801\u5e93\u7684\u7248\u672c\uff0c\u4f8b\u5982 javassist\u3002\u5c06\u5b83\u4eec\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u4f7f\u7528\u4e0e kettle \u517c\u5bb9\u7684\u5df2\u77e5\u7248\u672c\u3002 \u7c7b\u8def\u5f84\u95ee\u9898\uff1a\u9a8c\u8bc1\uff0c\u5728 tomcat \u4e0b\u8fd0\u884c\u65f6\uff0c\u6240\u9700\u7684\u7c7b\u548c\u8d44\u6e90\u662f\u5426\u5728\u7c7b\u8def\u5f84\u4e2d\u53ef\u7528\u3002 \u4ee5\u4e0a\u5c31\u662fJava \u8c03\u7528 Kettle \u65f6\uff0cTomcat \u4e0b\u8fd0\u884c\u62a5\u9519\uff1a\u5982\u4f55\u89e3\u51b3 &#8220;java.io.IOException: invalid constant type&#8221; \u9519\u8bef\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-35134","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/35134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=35134"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/35134\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=35134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=35134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=35134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}