[ 
https://issues.apache.org/jira/browse/AVRO-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Evans reopened AVRO-637:
-----------------------------


Using the 1.4.0 rc2 artifacts I get the following...

{noformat}
org.apache.avro.AvroRuntimeException: java.lang.NoSuchMethodException: org.apach
e.cassandra.avro.CassandraServer.batch_mutate(java.util.Collection, 
org.apache.cassandra.avro.ConsistencyLevel)
        at 
org.apache.avro.specific.SpecificResponder.respond(SpecificResponder.java:97)
        at org.apache.avro.ipc.Responder.respond(Responder.java:136)
        at org.apache.avro.ipc.Responder.respond(Responder.java:88)
        at org.apache.avro.ipc.ResponderServlet.doPost(ResponderServlet.java:48)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:322)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
        at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
        at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
        at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.NoSuchMethodException: 
org.apache.cassandra.avro.CassandraServer.batch_mutate(java.util.Collection, 
org.apache.cassandra.avro.ConsistencyLevel)
        at java.lang.Class.getMethod(Class.java:1622)
        at 
org.apache.avro.specific.SpecificResponder.respond(SpecificResponder.java:91)
        ... 17 more
{noformat}

... from an interface that SpecificCompiler created with the following sig:

{noformat}
java.lang.Void 
batch_mutate(java.util.List<org.apache.cassandra.avro.MutationsMapEntry> 
mutation_map, org.apache.cassandra.avro.ConsistencyLevel consistency_level) 
throws org.apache.avro.ipc.AvroRemoteException, 
org.apache.cassandra.avro.InvalidRequestException, 
org.apache.cassandra.avro.UnavailableException, 
org.apache.cassandra.avro.TimedOutException;
{noformat}

> GenericArray should implement Collection
> ----------------------------------------
>
>                 Key: AVRO-637
>                 URL: https://issues.apache.org/jira/browse/AVRO-637
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.4.0
>
>         Attachments: AVRO-637.patch, AVRO-637.patch, AVRO-637.patch
>
>
> It would be nice if Avro arrays were better integrated with Java collections. 
>  The GenericArray interface permits array element reuse, which is awkward 
> with java.util.Collection.  But if GenericArray implemented Collection and 
> the Avro runtime permitted arbitrary Collection implementations to be passed 
> for Arrays then it would simplify many applications.  The runtime could still 
> reuse elements if an array implemented GenericArray, so performance would not 
> suffer for applications that, e.g., loop over a data file, reusing instances.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to