Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUnit testing ends with java.util.UnknownFormatConversionException #3

Open
gabert opened this issue Jan 14, 2014 · 0 comments
Open
Assignees

Comments

@gabert
Copy link
Contributor

gabert commented Jan 14, 2014

Running JUnit tests ends up with java.util.UnknownFormatConversionException:

Platform:
Windows 7

Java version:
1.7.0_25

Stacktrace:

Exception in thread "Thread-1" Exception in thread "Thread-2" java.util.UnknownFormatConversionException: Conversion = '1'
    at java.util.Formatter.checkText(Formatter.java:2547)
    at java.util.Formatter.parse(Formatter.java:2533)
    at java.util.Formatter.format(Formatter.java:2469)
    at java.util.Formatter.format(Formatter.java:2423)
    at java.lang.String.format(String.java:2797)
    at org.zyre.ZreMsg.setIpaddress(ZreMsg.java:886)
    at org.zyre.ZreInterface$Agent.requirePeer(ZreInterface.java:352)
    at org.zyre.ZreInterface$Agent.recvUdpBeacon(ZreInterface.java:602)
    at org.zyre.ZreInterface$ZreInterfaceAgent.run(ZreInterface.java:712)
    at org.jeromq.ZThread$ShimThread.run(ZThread.java:51)
java.util.UnknownFormatConversionException: Conversion = '1'
    at java.util.Formatter.checkText(Formatter.java:2547)
    at java.util.Formatter.parse(Formatter.java:2533)
    at java.util.Formatter.format(Formatter.java:2469)
    at java.util.Formatter.format(Formatter.java:2423)
    at java.lang.String.format(String.java:2797)
    at org.zyre.ZreMsg.setIpaddress(ZreMsg.java:886)
    at org.zyre.ZreInterface$Agent.requirePeer(ZreInterface.java:352)
    at org.zyre.ZreInterface$Agent.recvUdpBeacon(ZreInterface.java:602)
    at org.zyre.ZreInterface$ZreInterfaceAgent.run(ZreInterface.java:712)
    at org.jeromq.ZThread$ShimThread.run(ZThread.java:51)

Cause of issue is setting IPV6 address with zone-id

// ZreInterface.java

private ZrePeer requirePeer (String identity, String address, int port)
{
// ...
    ZreMsg msg = new ZreMsg (ZreMsg.HELLO);
    msg.setIpaddress (this.udp.host ()); 
// ...
}
this.udp.host () returns -> fe80:0:0:0:0:5efe:c0a8:3801%16

udp.host () should probably return IPV4 address.

@ghost ghost assigned gabert Jan 16, 2014
hintjens added a commit that referenced this issue Jan 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant