草庐IT

pointer_impl

全部标签

java - Netbeans build-impl.xml 错误

我在netbeans6.8上开发一个项目,一切都很好,但一周前,我安装了netbeans7.0只是为了尝试。当我打开nb7.0时,我的项目也在7.0中列出。现在,我正在尝试在netbeans6.8上编译我的项目,但它给了我这个错误。nbproject\build-impl.xml:517:copylibsdoesn'tsupportthe"indexMetaInf"attribute我猜netbeans7.0更改了文件。我该如何解决这个问题? 最佳答案 我自己找到了解决方案,并想分享,使用netbeans6.8创建一个新项目并复制其

java - Possible null pointer dereference of 的说明和修复

代码审查工具提示可能在saveSafeScan(...)中取消引用safeScanWarnings的空指针在行if(safeScanWarnings!=Null&safeScanWarnings.size()>0)我想知道这怎么可能?这是因为我们通过引用返回集合吗?protectedvoidsaveSafeScan(finalResponseresponse,finalDtecdtec)throwsdtecException{CollectionsafeScanWarnings=dtec.getSafeScanWarnings();if(safeScanWarnings!=null&&

java - 无法在java项目中加载类 "org.slf4j.impl.StaticLoggerBinder"错误?

这个问题在这里已经有了答案:SLF4J:Failedtoloadclass"org.slf4j.impl.StaticLoggerBinder"(34个答案)关闭3年前。我收到Failedtoloadclass"org.slf4j.impl.StaticLoggerBinder"错误。我想将记录器写入文件。所以我使用了log4j.jar并正在使用apachetomcat服务器。SLF4J:Failedtoloadclass"org.slf4j.impl.StaticLoggerBinder".SLF4J:Defaultingtono-operation(NOP)loggerimplem

Java 抽象类 : Returning "this" pointer for derived classes

我正在尝试使用辅助方法编写一些自定义异常来设置变量,如下所示:publicclassKeyExceptionextendsRuntimeException{protectedStringId;protectedKeyException(Stringmessage){super(message);}protectedKeyException(Stringmessage,Throwablecause){super(message,cause);}publicStringgetId(){returnkeyId;}publicKeyExceptionwithId(finalStringId){

java - 无法创建类 org.apache.logging.log4j.core.impl.Log4jContextFactory

我正在为项目使用springboot应用程序,在使用java-jarbuild/libs/com.user.admin.rest.services.jar从jar运行项目时出现以下错误。但它不是阻止程序,我能够访问api,并且记录器按预期工作正常。我只想解决这个错误。ERRORStatusLoggerUnabletocreateclassorg.apache.logging.log4j.core.impl.Log4jContextFactoryspecifiedinjar:file:/Users/Samuel/UserMgmt/com.user.admin.rest.services/

java - MACOSX - java.lang.NoSuchMethodError : org. apache.http.impl.conn.CPool.setValidateAfterInactivity(I)V

所以这个很麻烦,我希望得到一些帮助。这是我遇到的错误getS3Client():异常:java.lang.NoSuchMethodError:org.apache.http.impl.conn.CPool.setValidateAfterInactivity(I)V当我尝试运行这段代码时GrailsApplicationgrailsApplication//AmazonAWSS3propertiesprivateawsProps=["loaded":false,"S3Bucket":"","AccessKeyId":"","AccessKeyPsw":""]defgetS3Client

java - 无法创建类 org.jboss.arquillian.test.impl.EventTestRunnerAdaptor 的新实例

我有这个pom.xml文件4.0.0companytrick-services-parent0.0.1-SNAPSHOTtricker-services-webappwartrick-resttrickorg.apache.maven.pluginsmaven-war-plugin../vagrant/deploymentsmaven-surefire-plugin2.17src/main/resourcestruesrc/test/resourcestrue-->testmaven-compiler-plugin2.3.21.61.6maven-surefire-plugin2.12

java - : api. jar + impl.jar + bundle.jar 的用途是什么?

我看到许多Java包都有api、impl和bundlejar(name-api.jar、name-impl.jar、name-bundle.jar)。有人可以解释这些是什么意思吗?应用程序需要这三个吗? 最佳答案 这个想法是你可以分离应用程序的依赖关系;试图使应用程序更具可移植性。这个想法是您可以在编译时使应用程序依赖于api.jar。然后,当您想要运行该程序时,您可以切换到适当的实现jar(impl.jar)和适当的资源包jar(bundle.jar)。举个例子,假设图书馆进行一些数据库交互。您编写代码以使其引用api.jar。现

java - 构建 impl.xml :1031: The module has not been deployed

我一直在开发JavaWeb应用程序,我在Netbeans7.3上使用SmartGwt,突然间我遇到了这个问题。我尝试清理build-impl.xml然后重新启动IDE,我应该说我对此知之甚少。谁能告诉我为什么会出错,我该如何解决?错误信息说:nbproject/build-impl.xml:1031:Themodulehasnotbeendeployed.Seetheserverlogfordetails.BUILDFAILED(totaltime:4seconds)注意:我使用的是Tomcat7.0.34 最佳答案 可能这么晚了,

java - token 端点 : Handling Null Pointer Exception

我尝试通过curl执行此命令从我的oauth2服务器请求代码curl-XPOST-k-vuclientapp:123456http://localhost:8080/oauth/token-H"Accept:application/json"-d"grant_type=authorization_code&scope=read%20write&client_secret=123456&client_id=clientapp&code=appcode&redirect_uri=localhost:3000"响应是*Addinghandle:conn:0x608860*Addinghand