telnet localhost 6666时报错

[jac_scl_wms][INFO] 2014-04-03 09:21:57 [Thread-9:49159] - [ConnectionManager.makeConnection(?)] connection #1 made.
 [jac_scl_wms][INFO] 2014-04-03 09:21:57 [Thread-8:49394] - [ConnectionManager.cleanupClosed(?)] cleanupClosed()::Removing closed connection 
Thread[Connection1,5,net.wimpi.telnetd.net.ConnectionManager@df6513Connections]
 Exception in thread "Connection1" java.lang.NoSuchFieldError: TERMINAL
	at com.vtradex.kangaroo.component.AlignedLabel.getVisibleLength(AlignedLabel.java:127)
	at com.vtradex.kangaroo.component.AlignedLabel.getAlignedText(AlignedLabel.java:65)
	at com.vtradex.kangaroo.component.AlignedLabel.getDrawContent(AlignedLabel.java:60)
	at com.vtradex.kangaroo.component.AlignedLabel.draw(AlignedLabel.java:53)
	at com.vtradex.kangaroo.component.Label.run(Label.java:39)
	at com.vtradex.kangaroo.shell.BaseShell.drawTitle(BaseShell.java:90)
	at com.vtradex.kangaroo.shell.BaseShell.drawTitleBar(BaseShell.java:78)
	at com.vtradex.kangaroo.shell.BaseShell.refreshScreen(BaseShell.java:72)
	at com.vtradex.kangaroo.shell.Thorn4BaseShell.preRun(Thorn4BaseShell.java:68)
	at com.vtradex.kangaroo.shell.AbstractShell.run(AbstractShell.java:55)
	at net.wimpi.telnetd.net.Connection.run(Unknown Source)

 处理办法:将引用的包MAVEN_REPO/telnetd/jars/telnetd-2.0.jar从项目中删除,同时注释project.xml中的

<dependency>
            <groupId>telnetd</groupId>
            <artifactId>telnetd</artifactId>
            <version>2.0</version>
            <type>jar</type>
            <url>http://repository.vtradex.net/telnetd/jars/</url>
            <properties>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>

 

 

你可能感兴趣的:(localhost)