2013-10-21 4 views
0

나는 장난감 프로젝트를 생성하므로 prefuse에 새로운 오전하지만 난 항상 읽기 xml 파일에 문제가 보인다prefuse 시각화 툴킷, 문제 읽기 xml 파일

공용 클래스 testProfusion {

public static void main(String[]args){ 

    Graph graph = null; 

    try { 
     graph = new GraphMLReader().readGraph("http://www.w3schools.com/xml/note.xml"); 
    } catch (DataIOException e) { 
     e.printStackTrace(); 
     System.err.println("Error loading graph. Exiting..."); 
     System.exit(1); 
    } 

} 

}

주소는 유효하며 직접 액세스 할 수 있습니다. 그러나 내가 어떻게 바뀌어도 나는 항상 오류가납니다 :

at prefuse.data.io.GraphMLReader.readGraph(Unknown Source) 
at prefuse.data.io.AbstractGraphReader.readGraph(Unknown Source) 
at testProfusion.main(testProfusion.java:13) 
Caused by: java.lang.NullPointerException 
at prefuse.data.io.GraphMLReader$GraphMLHandler.endDocument(Unknown Source) 

도와주세요 - !!!

답변