
异常小记
markix
什么问题,什么结果,预期结果?
展开
-
http 请求没携带 cookie
看看 cookie 的 secure 属性是否为 true,如果为 true,那么这个cookie只能用https协议发送给服务器,用http协议是不发送的。原创 2022-08-19 22:51:49 · 1488 阅读 · 0 评论 -
Invalid content was found starting with element ‘{“http://www.springframework.org/schema/aop“:adviso
异常信息:Invalid content was found starting with element ‘{“http://www.springframework.org/schema/aop”:advisor}’. One of ‘{“http://www.springframework.org/schema/aop”:aspect}’ is expected.aop:config 要以以下顺序进行配置:pointcutadvisoraspect顺序不对则会提示该异常信息!...原创 2022-03-10 23:46:38 · 1048 阅读 · 1 评论 -
Push failed Dst refspec V1.0.0 matches more than one.
执行git push失败,异常信息:Push failed Dst refspec V1.0.0 matches more than one.原因:远程存在相同名称的branch和tag,冲突了。解决:删除branch或者tag删除远程tag(本地tag不会被删)$ git push origin --delete refs/tags/[name]删除远程branch(本地branch不会被删)$ git push origin --delete refs/heads/[name]另一种解原创 2021-08-22 11:56:13 · 1368 阅读 · 0 评论 -
访问Swagger页面异常 Unable to infer base url.
访问Swagger页面无法正常显示,提示如下信息:Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at原创 2021-07-30 00:52:40 · 3535 阅读 · 1 评论 -
ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘
修改MySQL root密码报错:ERROR 1054 (42S22): Unknown column 'password' in 'field list',执行的sql如下:UPDATE user SET password=PASSWORD('root') WHERE user='root';查了下资料,发现是MySQL版本的改动导致。https://dev.mysql.com/doc/refman/5.7/en/upgrading-from-previous-series.html原因:My原创 2021-06-24 00:20:39 · 2324 阅读 · 0 评论 -
Event: Failed: Repository Writable
依赖发布到nexus仓库失败,报错如下:Event: Failed: Repository WritabletypeId RepositoryWritePolicyfailureMessage Artifact updating: Repository ='releases:Releases' does not allow updating artifact='/io/github/markixy/flowable-swagger/1.0.0/flowable-swagger-1.0.0.jar'·原创 2021-04-28 23:50:10 · 462 阅读 · 0 评论 -
软件的窗口消失了,桌面看不到,如何解决
解决软件窗口消失的问题,将消失的窗口显示在当前屏幕。起因在办公环境连接了外置显示器,将软件拖到外置显示屏幕使用。下班后直接盖上盖子走人,回到宿舍后打开电脑发现任务栏处软件还在,但是软件的窗口在桌面看不到。现象任务栏可见软件在运行,但是软件的窗口消失了,桌面看不到。解决首先点击任务栏中的软件图标,并使用如下快捷键和操作。alt + space -> m -> 使用方向键移动窗口(使用方向键后,才可以使用鼠标移动窗口)原理如下:...原创 2020-12-06 00:26:12 · 16872 阅读 · 4 评论 -
WebLogic 异常问题记录
weblogic创建数据源失败解决:检查各项配置:ip,port,数据库名,账号,密码,驱动类型,防火墙权限NoSuchMethodError: xxxxx、NoClassDefFoundError:xxxx、NoSuchFieldError: xxxxxeg:java.lang.NoSuchMethodError:javax.persistence.Table.indexes()[Ljavax/persistence/Index;解决:基本断定为包冲突导致,指定war包内的类优先加载在WEB-原创 2020-12-10 00:27:28 · 1770 阅读 · 0 评论 -
WebSphere 异常问题记录
java.lang.IllegalAccessError: Class com/mysql/jdbc/NonRegisteringDriver illegally accessing “protected” member of class com/mysql/jdbc/ConnectionImpl解决:确认jar包存在;可能为Jar包版本;猜测或者为was bug: JDBC provides新建后,修改一下才会生效,否则报错如上(NonRegisteringDriver);而且,新建Data sour原创 2020-12-09 23:17:05 · 4376 阅读 · 0 评论 -
Gerrit not allowed to update webhooks
创建钩子需要项目的 Owner 权限,或者属于 Administrators 分组的用户。项目权限可查看项目 -> Access -> ‘Reference: refs/*’ -> Owner原创 2021-01-27 23:02:49 · 412 阅读 · 0 评论 -
npm ERR! code EINTEGRITY npm ERR! sha1-xxxxxx integrity checksum failed when using sha1: wanted sha1
运行 npm install 安装依赖时报错,异常信息如下:npm ERR! code EINTEGRITY npm ERR! sha1-xxxxxx integrity checksum failed when using sha1: wanted sha1-xxxxxx but got sha512-xxxxxx sha1-yyyyyyy. (10379 bytes)解决方式一:直接删除 package-lock.json 文件,重新执行 npm install 即可。博主在尝试了各种方式无果后原创 2021-01-04 23:51:07 · 23290 阅读 · 1 评论 -
javax.naming.NoInitialContextException: Need to specify class name in environment or system property
使用内嵌Tomcat启动web项目,报了错误javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial原因是使用了JNDI数据源。解决:启用tomcat的JNDI;即调用 tom原创 2020-12-28 00:26:56 · 4848 阅读 · 2 评论 -
docker 环境问题清单
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sockFailed to connect to containerd: failed to didocker service 一直是 Preparing 状态container init caused “write /proc/self/attr/keycreate: permission denied原创 2020-12-09 21:49:21 · 1139 阅读 · 0 评论 -
git push失败:Push failed REMOTE HOST IDENTIFICATION HAS CHANGED
最近有一次 git push 时有报错,异常信息如下:异常信息Push failed@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE THAT SOMEONE IS原创 2020-10-25 23:25:46 · 753 阅读 · 0 评论 -
gitlab rest api 通过名称查询方式(URL-encoded path of the project)一直404错误
问题发现gitlab rest api 有个查询项目详情接口,如下:其提供的 URL-encoded path of the project方式支持使用 命名空间/项目 的方式进行查询,但是有个前置操作,就是需要先将特殊字符进行 encode。比如我们要查询名称为 root/name 的项目详情,不能直接访问 /projects/root/name,需要将 root/name 先进行url encode(编码)再拼接到url上,即 /projects/root%2fname最近调用接口时遇到了’诡异原创 2020-07-02 23:17:14 · 1948 阅读 · 0 评论 -
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.mar
实体配置懒加载时遇到的异常情况org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.markix.entity.po.UserPO.roles, could not initialize proxy - no Session at org.hibernate.collection.internal.AbstractPersistentCollection.thro原创 2020-06-23 00:45:04 · 1397 阅读 · 1 评论 -
cannot create network xxx(br-xxx) conflicts with network yyy(br-yyy) networks have overlapping IPv4
执行 docker stack deploy -f docker-compose.yml 时报错cannot create network xxx(br-xxx) conflicts with network yyy(br-yyy) networks have overlapping IPv4具体报错信息cannot create network aa90481a88226785be9da4cffdc97415051b2025dbe267f992422bc56efe7a1f (br-aa90481a88原创 2020-06-01 22:36:59 · 3067 阅读 · 0 评论 -
java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion 验证码无法显示
本地没问题,部署到服务器上图片验证码生成报错。搜罗网上的答案,原来是图形验证码依赖了系统组件,只需安装依赖即可解决。Centos 7.3系统:yum install fontconfigfc-cache --forceAlpine 系统:apk add fontconfigapk add --update ttf-dejavufc-cache --force项目采用docker进行构建运行,如果每次都需要重新安装此组件,很耗时。采取另一种措施:重新构建一个基础镜像(安装好依赖,用于支原创 2020-06-01 14:09:00 · 5629 阅读 · 2 评论 -
weblogic java.lang.NoSuchMethodError: javax.persistence.Table.indexes() 排错记录
记录一下项目部署在weblogic发生的java.lang.NoSuchMethodError: javax.persistence.Table.indexes()异常。项目在tomcat中运行正常。部署到 weblogic12c时,运行报错。Invocation of init method failed; nested exception is java.lang.NoSuchMethod...原创 2020-04-20 00:38:28 · 1213 阅读 · 0 评论 -
解决weblogic异常ClassCastException, NoSuchMethodError, NoSuchFieldError...
文章目录情景解决办法常见的冲突情景项目在tomcat运行正常,但是部署到weblogic总会报出ClassCastException, NoSuchFieldError, NoSuchMethodError…等等异常。分析:此类异常,大多可以归结为类库冲突导致。即weblogic类库已经包含了项目依赖的类库,程序运行时,同个模块的一些类从项目类库中加载,一些类从weblogic类库中加载,...原创 2020-04-19 19:57:59 · 894 阅读 · 0 评论 -
weblogic中web项目不打印日志,logback失效
情景:项目部署在tomcat有日志文件输出,而部署在weblogic 12c上就没有日志文件的输出。分析:可能的原因1:项目中的 slf4j 的和 weblogic 12c 自带的slf4j模块冲突。解决办法:在 WEB-INF目录新增 weblogic.xml,配置有限加载项目中的slf4j。<?xml version="1.0" encoding="UTF-8"?>&...原创 2020-04-19 01:02:00 · 3181 阅读 · 0 评论 -
Auction-service:jar:0.0.1-SNAPSHOT is missing, no dependency information available
Maven项目部署时遇到的问题 Auction-service:jar:0.0.1-SNAPSHOT is missing, no dependency information available最后发现是在父项目的pom.xml文件中的modules节点误删了一个module,解决办法如下:解决:检查父项目 pom.xml,检查modules节点缺少了对应的module,我是缺少了<mod...原创 2017-10-11 10:17:08 · 5930 阅读 · 0 评论 -
Eclipse里maven项目解决An error occurred while filtering resources错误
eclipse构建maven项目时,出现错误提示:An error occurred while filtering resources,在项目中到处都找不到哪里有问题解决办法:1、右键项目 --> maven --> update project或者 2、选中项目 --> 顶部菜单栏Project --> clean...原创 2017-10-08 15:26:38 · 2347 阅读 · 0 评论 -
Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment var
执行 svn commit ~/dev-svn//src/Svr/StatSync.java 报错,提示信息如下:svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the –message (-m) or ...原创 2018-05-10 17:25:22 · 3588 阅读 · 0 评论 -
异常:This application has no explicit mapping for /error, so you are seeing this as a fallback.
原文地址:https://www.cnblogs.com/lilinzhiyu/p/7921890.html异常:This application has no explicit mapping for /error, so you are seeing this as a fallback. 出现这个异常说明了跳转页面的url无对应的值.原因1: Application启动类的位置不...转载 2018-06-20 20:58:02 · 1949 阅读 · 0 评论 -
Dubbo配置xml配置文件报红叉 (找不到 dubbo.xsd 报错)
在用 Dubbo 的时候,创建 xml 会提示http://code.alibabatech.com/schema/dubbo/dubbo.xsd 找不到参考了这篇文章解决了这个问题: https://www.cnblogs.com/xums/p/7801569.html后来,上了一下 dubbo的官网 看到了官方的例子,其中xml里引用的xsd已经不是 http ://code.al...原创 2018-09-08 17:19:27 · 6026 阅读 · 6 评论 -
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes
多次遇到这个问题,记录下解决方案,以备后查,也给后来者一点提示。网上很多的文章都是写着这个是错误是JSP过大导致的,我也曾一度这样认为。 网上的解决方案: 方法1、修改include方式将&amp;amp;amp;lt;%@ include file=&amp;amp;quot; &amp;amp;quot;%&amp;amp;amp;gt;改为:&amp;amp;amp;lt;jsp:include page=&原创 2018-06-05 20:31:27 · 17149 阅读 · 3 评论 -
SEVERE: Could not contact localhost:8005. Tomcat may not be running. Connection refused (Connection
运行./shutdown 停止tomcat报错报错信息: Using CATALINA_BASE: /home/tomcat/apache-tomcat-7.0.88 Using CATALINA_HOME: /home/tomcat/apache-tomcat-7.0.88 Using CATALINA_TMPDIR: /home/tomcat/apache-tomcat-7....原创 2018-05-27 22:00:39 · 20481 阅读 · 25 评论 -
java.lang.UnsupportedClassVersionError: xin/junit/TestMapper : Unsupported major.minor version 51.0
解决办法:右键项目 &amp;amp;amp;gt; Properties &amp;amp;amp;gt; Java Compiler &amp;amp;amp;gt; 选择和你项目 jre 相同的版本号原创 2018-05-16 20:24:42 · 2877 阅读 · 0 评论 -
XML Parser Error on line 1: Content is not allowed in prolog.
某度翻译;第1行XML解析器错误:Prolog中不允许内容。解决办法:使用文本编辑器或记事本打开 xml配置文件,修改 xml文件的编码为 ANIS 或 UTF-8 编码格式即可 ...原创 2018-05-16 19:58:06 · 8638 阅读 · 0 评论 -
Unable to locate Spring NamespaceHandler for XML schema namespace排错记录
今日运行项目,发生了这个错误 Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema ...原创 2018-09-08 22:48:14 · 7917 阅读 · 3 评论 -
ERROR - file: tracker_proto.c, line: 48, server: 127.0.0.1:22122, response status 2 != 0
报错信息: [2018-09-09 20:33:12] ERROR - file: tracker_proto.c, line: 48, server: 127.0.0.1:22122, response status 2 != 0 [2018-09-09 20:33:12] ERROR - file: tracker_proto.c, line: 48, server: 127.0.0.1:...原创 2018-09-09 20:57:54 · 26052 阅读 · 2 评论 -
freemarker.core.NonBooleanException: For "&&" right-hand operand: Expected a boolean, but this has
今日,在执行hibernate的 dynamic-hibernate-statement(动态查询语句)时遇到异常,异常信息如下:Caused by: freemarker.core.NonBooleanException: For &amp;quot;#if&amp;quot; condition: Expected a boolean, but this has evaluated to a method+sequence (...原创 2018-11-09 14:33:26 · 6486 阅读 · 0 评论 -
hive ls: cannot access /usr/local/src/spark-2.1.3-bin-hadoop2.6/lib/spark-assembly-*.jar: No such fi
执行hive报错ls: cannot access /usr/local/src/spark-2.1.3-bin-hadoop2.6/lib/spark-assembly-*.jar: No such file or directory[root@server ~]# hivels: cannot access /usr/local/src/spark-2.1.3-bin-hadoop2.6...原创 2019-01-12 15:33:31 · 1309 阅读 · 1 评论 -
Intellij IDEA: 运行Scala代码右键没有Run选项
应该建一个object而不是建一个class不仅仅是要有object类而且得有main函数,两个缺一不可。object HelloWorld { def main(args: Array[String]): Unit = { printf(&amp;amp;amp;quot;Hello World!&amp;amp;amp;quot;) }}reference:https://blog.youkuaiyun.com/w5688414/原创 2019-01-07 21:05:25 · 15099 阅读 · 1 评论 -
pyspark java.net.SocketException: Connection reset by peer
在window、运行pyspark训练模型,报错Caused by: java.net.SocketException: Connection reset by peer: socket write errorpy4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.Py...原创 2019-01-20 11:29:45 · 3402 阅读 · 0 评论 -
weblogic包冲突NoSuchMethod,配置weblogic.xml
Weblogic不同版本,支持的属性不同WebLogic Server 8.1https://docs.oracle.com/cd/E13222_01/wls/docs81/webapp/weblogic_xml.htmlWebLogic Server 12.1.3https://docs.oracle.com/cloud/latest/fmw121300/WBAPP/weblogic_x...原创 2019-04-09 11:48:43 · 1060 阅读 · 0 评论 -
PropertyDescriptor获取getWriteMethod为null,使用了lombok
想要实现 Map 转为 Bean 的功能,使用了org.apache.commons.beanutils.BeanUtils.populate(object, map);maven依赖<dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils&...原创 2019-09-18 19:18:57 · 4152 阅读 · 0 评论 -
调用list.add方法报错(java.lang.UnsupportedOperationException)
今天在写一些统计,偶然写出如下段代码,跑了一下JUnit,竟然!!!调用list.add方法会报错(java.lang.UnsupportedOperationException) 代码段如下:@Test public void test01() { List&amp;amp;lt;String&amp;amp;gt; a7DaysTitleList = Arrays.asList(&amp;quot;7日[0]&原创 2018-04-26 21:10:07 · 24675 阅读 · 3 评论