{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1124","labels_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1124/labels{/name}","comments_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1124/comments","events_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1124/events","html_url":"https://github.com/bitcoinj/bitcoinj/issues/1124","id":119233894,"number":1124,"title":"TransactionOutput serialization in mainnet fails","user":{"login":"RCasatta","id":6470319,"avatar_url":"https://avatars.githubusercontent.com/u/6470319?v=3","gravatar_id":"","url":"https://api.github.com/users/RCasatta","html_url":"https://github.com/RCasatta","followers_url":"https://api.github.com/users/RCasatta/followers","following_url":"https://api.github.com/users/RCasatta/following{/other_user}","gists_url":"https://api.github.com/users/RCasatta/gists{/gist_id}","starred_url":"https://api.github.com/users/RCasatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RCasatta/subscriptions","organizations_url":"https://api.github.com/users/RCasatta/orgs","repos_url":"https://api.github.com/users/RCasatta/repos","events_url":"https://api.github.com/users/RCasatta/events{/privacy}","received_events_url":"https://api.github.com/users/RCasatta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T18:32:28Z","updated_at":"2015-11-27T18:42:12Z","closed_at":null,"body":"The following test fails on 0.13.3\r\n```\r\n    @Test\r\n    public void testJavaSerialization() throws Exception {\r\n        NetworkParameters param = new MainNetParams().get();\r\n        Address addr = new ECKey().toAddress(param);\r\n        TransactionOutput to = new TransactionOutput(param, null, Coin.COIN, addr);\r\n        ByteArrayOutputStream os = new ByteArrayOutputStream();\r\n        new ObjectOutputStream(os).writeObject(to);\r\n    }\r\n```\r\nwith the following stack trace\r\n```\r\njava.io.NotSerializableException: org.bitcoinj.net.discovery.HttpDiscovery$Details\r\n\tat java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)\r\n\tat java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1377)\r\n\tat java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1173)\r\n\tat java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)\r\n\tat java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)\r\n\tat java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)\r\n\tat java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)\r\n\tat java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)\r\n\tat java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)\r\n\tat java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)\r\n\tat java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)\r\n\tat java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)\r\n\tat it.eternitywall.TransactionTest.testJavaSerialization(TransactionTest.java:63)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)\r\n```"},"comment":{"url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/comments/160187390","html_url":"https://github.com/bitcoinj/bitcoinj/issues/1124#issuecomment-160187390","issue_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1124","id":160187390,"user":{"login":"schildbach","id":743306,"avatar_url":"https://avatars.githubusercontent.com/u/743306?v=3","gravatar_id":"","url":"https://api.github.com/users/schildbach","html_url":"https://github.com/schildbach","followers_url":"https://api.github.com/users/schildbach/followers","following_url":"https://api.github.com/users/schildbach/following{/other_user}","gists_url":"https://api.github.com/users/schildbach/gists{/gist_id}","starred_url":"https://api.github.com/users/schildbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schildbach/subscriptions","organizations_url":"https://api.github.com/users/schildbach/orgs","repos_url":"https://api.github.com/users/schildbach/repos","events_url":"https://api.github.com/users/schildbach/events{/privacy}","received_events_url":"https://api.github.com/users/schildbach/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T18:42:12Z","updated_at":"2015-11-27T18:42:12Z","body":"Can you try this on master? I can remember we already fixed it."}}