草庐IT

panic-not

全部标签

linux下qt程序报qt.qpa.xcb: could not connect to display 错的解决方法

最近qt的项目需要在移植到linux上,在linux上运行时,报qt.qpa.xcb:couldnotconnecttodisplayqt.qpa.plugin:CouldnotloadtheQtplatformplugin"xcb"in""eventhoughitwasfound的错,具体错误信息如下图: 明明已经找到了qxcb这个库,但是却加载不上,插件位置也是正确的,就是加载不上。其实这个错误原因不是插件本身的问题,插件是没问题的,这个错误是qt无法连接到显示设备,问题出现在linux上,有个DISPLAY环境变量,这个环境变量需要正确设置。在linux上查看该环境变量是否正确,在终端上

java - Ubuntu 16.04 : Oracle JDK 9 is NOT installed

每次我尝试从终端安装一些东西时,都会弹出这条消息。同时,我正确安装了Java:downloadfailedOracleJDK9isNOTinstalled.dpkg:errorprocessingpackageoracle-java9-installer(--configure):subprocessinstalledpost-installationscriptreturnederrorexitstatus1Errorswereencounteredwhileprocessing:oracle-java9-installerE:Sub-process/usr/bin/dpkgretu

Java 应用引擎 : "appengine-web.xml does not contain a <threadsafe> element" message

当我尝试在Eclipse中运行Google网络应用程序时,我得到了appengine-web.xmldoesnotcontainaelement并且该应用程序没有运行(好吧,任何新应用程序仍然没有运行)。修复起来并不难(我只是在true文件中添加了一个带有appengine-web.xml值的元素),但我之前没有遇到此错误。这种意外行为的原因可能是什么?提前致谢。 最佳答案 Google在1.6.4的发行说明中宣布了这一点,并在最新版本中强制执行。Omittingthedirectivefromappengine-web.xmlno

java - hibernate 异常 : Could not obtain transaction-synchronized Session for current thread

我遇到错误:Exceptioninthread"main"org.hibernate.HibernateException:Couldnotobtaintransaction-synchronizedSessionforcurrentthread主要ppService.deleteProductPart(cPartId,productId);@Service("productPartService")@OverridepublicvoiddeleteProductPart(intcPartId,intproductId){productPartDao.deleteProductPart

【已解决】Redis错误:Could not create server TCP listening socket 127.0.0.1:6379: bind: 操作成功完成。

报错:redis服务在window下启动,报错:CouldnotcreateserverTCPlisteningsocket127.0.0.1:6379:bind:操作成功完成。原因:6379端口已绑定。应该是因为上次服务没有关闭解决方法:①依次输入命令:redis-cli.exe(启动redis客户端,连接本机6379端口(127.0.0.1)并启动redis服务)shutdownexit②启动redis服务:redis-server.exeredis.windows.conf

java - org.hibernate.hql.ast.QuerySyntaxException : TABLE NAME is not mapped

我有两个模型,Item和ShopSection。它们之间存在多对多关系。@Entity(name="item")publicclassItemextendsModel{@ManyToMany(cascade=CascadeType.PERSIST)publicSetsections;}@Entity(name="shop_section")publicclassShopSectionextendsModel{publicListfindActiveItems(intpage,intlength){returnItem.find("selectdistinctifromItemijoin

java - NetBeans 错误 : package org does not exist

我刚刚安装了NetbeansIDE。我现在无法导入任何org.*库,它只是说packageorgdoesnotexist。此外,我将jdic.jar导入到项目中,即使代码完成建议显示为org.jdesktop.*,它也显示相同的错误。我该如何解决这个问题? 最佳答案 Clearingthecache固定它。在Windows7中,缓存位于C:\Users\username\AppData\Local\NetBeans\...在Linux上,缓存位于:/home/username/.cache/netbeans/...清除缓存并重新启动

java - 组织.hibernate.HibernateException : get is not valid without active transaction

我是Hibernate新手。自动创建hibernate.cfg.xml(Netbeans向导)自动创建HibernateUtil.java自动创建带注释的POJO类尝试从数据库中获取对象但出现错误:Exceptioninthread"pool-1-thread-1"org.hibernate.HibernateException:getisnotvalidwithoutactivetransactionatorg.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadL

java - 错误 : Could not find action or result No result defined for action action. 部分和结果 {"col1":"col1","col2":"col2"}

我没有从服务器收到JSON类型数据的响应。我正在使用JSON插件。jQuery("#dialog-form").dialog({autoOpen:false,height:500,width:750,modal:true,buttons:{"Search":function(){jQuery.ajax({type:'POST',dataType:'json',url:'',success:handledata})}}});varhandledata=function(data){alert(data);}如果dataType='json'我没有得到任何响应,但是如果我没有提到任何dat

java - 尝试使用 Smack 登录 XMPP 服务器导致 SASL "not authorized"

我正在尝试使用Smack登录XMPP服务器。尝试登录时出现以下错误:SASLauthenticationPLAINfailed:not-authorized我已经能够使用具有相同凭据的PSI-IM连接并登录服务器。这是我目前拥有的:System.setProperty("smack.debugEnabled","true");XMPPConnection.DEBUG_ENABLED=true;SASLAuthentication.supportSASLMechanism("PLAIN",0);ConnectionConfigurationconfiguration=newConnect