在SNotification.xsd上运行XJC任务时,两个XSD(SNotification.xsd,CDataModel.xsd)正在生成相同的类.它炫耀的错误是:
A class/interface with the same name "com.att.mre.ecrupr.atlas.jms.MarketInfo" is already in use. Use a class customization to resolve this conflict.
[xjc] line 214 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Atlas/Container/Public/SubscriberNotification.xsd
[xjc] [ERROR] (Relevant to above error) another "MarketInfo" is generated from here.
[xjc] line 22368 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Common/Types/Public/CingularDataModel.xsd
[xjc] [ERROR] Two declarations cause a collision in the ObjectFactory class.
[xjc] line 22368 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Common/Types/Public/CingularDataModel.xsd
[xjc] [ERROR] (Related to above error) This is the other declaration.
[xjc] line 214 of file:/C:/Documents%20and%20Settings/rkar4749/workspace/ECRUPR_1306/AtlasEventsListener/xsd/Atlas/Container/Public/SubscriberNotification.xsd
[xjc] failure in the XJC task. …Run Code Online (Sandbox Code Playgroud) 我试图使用BufferedReader缓冲文件中的内容.在这个过程中,我在下面的程序while((line = in.readLine()) != "\n")中给出了一个错误的约束,这给了我一个不希望的输出.
我后来纠正了它,因为while((line = in.readLine()) != "null")它应该能够显示文件中的内容(新文件),但它会继续再次显示相同的错误输出.
import java.io.*;
public class ReaderTest {
public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new FileReader("/home/a1340/new file"));
String line="";
while((line = in.readLine()) != "\n"){
System.out.println(line);
}
in.close();
}
}
import java.io.*;
public class ReaderTest {
public static void main(String[] args) throws IOException{
BufferedReader in = new BufferedReader(new FileReader("/home/a1340/new file"));
String line="";
while((line = in.readLine()) != "null"){
System.out.println(line);
}
in.close();
}
}
Run Code Online (Sandbox Code Playgroud) 我一直在尝试编写一个组件控件<rich:dataTable>.我选择<h:outputLink>在数据表中包装它.我发现了这样的事情.
<h:outputLink id="openLink" value="#">
Run Code Online (Sandbox Code Playgroud)
什么value="#"意思?