草庐IT

published_at

全部标签

java - 名称未找到异常 : While trying to lookup 'jdbc' only when publishing from Eclipse Kepler but not Indigo

我可以使用oepe12.1.1.1.1从EclipseIndigo3.7.2将我的网络应用程序发布到OracleWeblogic12c(12.1.1)AdminServer但是,使用oepe12.1.2.2导入到EclipseKepler4.3.1中的完全相同的web应用程序无法发布,并出现以下(相当常见的)异常,我正在尝试找出原因?...NameNotFoundException:Whiletryingtolookup'jdbc.oraclexe'didn'tfindsubcontext'jdbc'.Resolved'';remainingname'jdbc/oraclexe'];L

java - 如何解决 At-clause should have a non-empty description? - 检查样式 - Java

我在eclipseluna的checkstyle插件中使用googlejava样式。在我的java文档中看到此错误,但似乎无法找到解决方法。它很小,但它困扰着我。我的javadoc:/***Thisisadescriptionofsomething**@throwsException*/错误在@throws行,错误:At-clauseshouldhaveanon-emptydescription 最佳答案 通常,你应该写*@throwsExceptionwhenthisexceptionalconditionhappens例如*@t

java.sql.SQLException : Data truncated for column 'MonthlyIncome' at row 1 error 异常

我正在尝试使用我的GUI更新数据并将数据保存到我的数据库中。我的问题是,如果我不向我在数据库中允许为null的某些文本框输入任何数据,我会收到这种错误:java.sql.SQLException:Datatruncatedforcolumn'MonthlyIncome'atrow1 最佳答案 当您输入的数据对于列来说太长时,通常会出现此问题。在这种情况下,您更新“MonthlyIncome”字段所用的任何数据都太长了。 关于java.sql.SQLException:Datatrunca

java - Missing IN or OUT parameter at index::1 java, Oracle 中的错误

您好,我使用Netbeans8.0.2和Oracle11gExpressEdition在JSF2.2中编写了一个图书馆管理系统。我有几个名为Books、Borrowers等的页面和一些在数据库中命名为相同的表。我的问题是:在Borrowers屏幕中显示了图书ID。但我想获得具有相同ID的书名。这是我的代码。publicListgetBorrowers()throwsClassNotFoundException,SQLException,InstantiationException,IllegalAccessException{Class.forName("oracle.jdbc.dri

java.lang.InternalError : CallerSensitive annotation expected at frame 1 错误

在静态方法中(用@CallerSensitive注释)我尝试获取调用类的名称:@CallerSensitivepublicstaticvoidsomeMethod(){Stringname=sun.reflect.Reflection.getCallerClass().getName();...}我得到错误:java.lang.InternalError:CallerSensitiveannotationexpectedatframe1这里有什么问题吗?引用资料http://www.infoq.com/news/2013/07/Oracle-Removes-getCallerClass

java - eclipse helios : tomcat project - jar will not be exported or published. runtime ClassNotFoundExceptions 可能会导致

我正在使用EclipseHelios,我想知道如何将库项目添加到我的文件夹,该文件夹将被复制到我编译的项目所在的构建目录。目前我做了以下事情:在我的项目的根目录下创建了一个lib目录将相关的jar复制到该目录我的项目->属性->Java构建路径->添加jar,我添加了该目录中的所有jar。添加所有jar后,我收到有关每个jar文件的以下警告:jarwillnotbeexportedorpublished.runtimeClassNotFoundExceptionsmayresult首先,我如何添加jar目录而不是单个jar?第二个问题是如何在编译我的应用程序时正确部署这些库?!

Java IntelliJ 13.1.4 "Lambda expressions are not supported at this language level."

当我尝试使用表达式value->value时,我收到一条错误消息,提示Lambda不受支持。我目前正在使用支持Lambda的1.8JDK,但我仍然遇到错误。我的猜测是它是IntelliJ13.1.4,但我并不肯定。publicstaticvoidgrades(){finalListgrade=newArrayList();intgradelistnumber=1;intinputedgrade=0;while(inputedgrade!=-1){System.out.println("EnterGradeforstudent"+gradelistnumber+"(1-50):");in

java - NoClassDefFoundError : JavacProcessingEnvironment at runtime after tomcat 8 upgrade

将项目升级到springboot1.5.9(spring4.3和tomcat8.5.24)后,使用queryDSL的服务在运行时失败,因为它无法从jdk库(tools.jar)中找到类./Q_742623943_01321512155_128635432.java:1:warning:Can'tinitializejavacprocessordueto(mostlikely)aclassloaderproblem:java.lang.NoClassDefFoundError:com/sun/tools/javac/processing/JavacProcessingEnvironmen

java - 创建程序集存档 bin : You must set at least one file 时出错

我有一个Maven多模块项目,其中包含一个名为mod1的模块,我正试图将其添加到文件夹/projectjars使用应用程序文件夹中的mvnassembly:assembly,应用程序pom.xml所在的位置。错误:[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-assembly-plugin:2.3:single(assembly)onprojectwrapper:Failedtocreateassembly:Errorcreatingassemblyarchivebin:Youmustsetatleastonefile

java - Jmeter Http 代理服务器抛出 java.net.URISyntaxException : Illegal character in query at index error

我正在尝试使用Jmeter记录我的Web客户端-服务器通信。在配置Jmeter和浏览器以记录应用程序之后。当从客户端向服务器发出发布请求时,会发生以下错误。知道如何对正在记录的URL进行编码吗?java.net.URISyntaxException:Illegalcharacterinqueryatindex238:http://localhost:8080/updateBoxCorrectionInstantly?examKey=16-17-%3ECBSE-%3ETERM%20I-%3ESA1-%3EVI-%3EScience-%3EA&studentName=AMOGH%20YOG