小编mar*_*ane的帖子

ANT脚本中的XJC任务说"使用类自定义"

在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)

ant jaxb

5
推荐指数
2
解决办法
7300
查看次数

在使用流时,为什么它会回显先前的输出?

我试图使用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)

java flush

0
推荐指数
1
解决办法
72
查看次数

JSF2.0,value ="#"是什么意思?

我一直在尝试编写一个组件控件<rich:dataTable>.我选择<h:outputLink>在数据表中包装它.我发现了这样的事情.

<h:outputLink id="openLink" value="#"> 
Run Code Online (Sandbox Code Playgroud)

什么value="#"意思?

jsf

0
推荐指数
1
解决办法
59
查看次数

标签 统计

ant ×1

flush ×1

java ×1

jaxb ×1

jsf ×1