[
https://issues.apache.org/jira/browse/GORA-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161151#comment-13161151
]
Lewis John McGibbney commented on GORA-63:
------------------------------------------
Hi Enis. This is pretty strange. It would be great if we could get one other
person to try it out. I am still getting a failure to compile and have posted
as much output as possible below.
lewis@lewis-01:~/ASF/gora$ svn status
? target
? gora-sql/target
? gora-cassandra/target
? gora-tutorial/target
? gora-tutorial/src/main/resources/access.log
? gora-hbase/target
? gora-core/target
M gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java
lewis@lewis-01:~/ASF/gora$ svn diff
Index: gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java
===================================================================
--- gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java
(revision 1209228)
+++ gora-core/src/main/java/org/apache/gora/compiler/GoraCompiler.java
(working copy)
@@ -324,7 +324,7 @@
break;
case ARRAY:
unboxed = unbox(fieldSchema.getElementType());
- fieldType = type(fieldSchema.getValueType());
+ fieldType = type(fieldSchema.getElementType());
line(1, "public GenericArray<"+fieldType+"> get"+camelKey+"() {");
line(2, "return (GenericArray<"+fieldType+">) get("+i+");");
line(1, "}");
lewis@lewis-01:~/ASF/gora$ bin/compile-examples.sh
Compiling gora-core/src/examples/avro/employee.json
Compiling gora-core/src/examples/avro/tokendatum.json
Compiling gora-core/src/examples/avro/webpage.json
Exception in thread "main" org.apache.avro.AvroRuntimeException: Not a map:
{"type":"array","items":"string"}
at org.apache.avro.Schema.getValueType(Schema.java:274)
at org.apache.gora.compiler.GoraCompiler.compile(GoraCompiler.java:327)
at org.apache.gora.compiler.GoraCompiler.compile(GoraCompiler.java:123)
at
org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:63)
at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448)
Compiling gora-core/src/examples/avro/webpage.json~
Exception in thread "main" org.apache.avro.SchemaParseException: Array has no
items type: {"type":"array","values":"string"}
at org.apache.avro.Schema.parse(Schema.java:933)
at org.apache.avro.Schema.parse(Schema.java:912)
at org.apache.avro.Schema.parse(Schema.java:796)
at
org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:62)
at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448)
lewis@lewis-01:~/ASF/gora$
What am I doing wrong here? BTW, after I try the compile-examples.sh and do svn
diff I get the same error as above! e.g. WebPage.java has several lines deleted!
> bin/compile-examples.sh does not work
> -------------------------------------
>
> Key: GORA-63
> URL: https://issues.apache.org/jira/browse/GORA-63
> Project: Gora
> Issue Type: Bug
> Reporter: Enis Soztutar
> Attachments: GORA-63_v1.patch
>
>
> As reported by Lewis at gora-dev, bin/compile-examples.sh does not work. The
> reported exception is:
> {code}
> lewis@lewis-01:~/ASF/gora$ bin/compile-examples.sh
> Compiling gora-core/src/examples/avro/employee.json
> Compiling gora-core/src/examples/avro/tokendatum.json
> Compiling gora-core/src/examples/avro/webpage.json
> Exception in thread "main" org.apache.avro.SchemaParseException: Map has no
> values type: {"type":"map","items":"string"}
> at org.apache.avro.Schema.parse(Schema.java:938)
> at org.apache.avro.Schema.parse(Schema.java:912)
> at org.apache.avro.Schema.parse(Schema.java:796)
> at
> org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:62)
> at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448)
> Compiling gora-core/src/examples/avro/webpage.json~
> Exception in thread "main" org.apache.avro.SchemaParseException: Array has
> no items type: {"type":"array","values":"string"}
> at org.apache.avro.Schema.parse(Schema.java:933)
> at org.apache.avro.Schema.parse(Schema.java:912)
> at org.apache.avro.Schema.parse(Schema.java:796)
> at
> org.apache.gora.compiler.GoraCompiler.compileSchema(GoraCompiler.java:62)
> at org.apache.gora.compiler.GoraCompiler.main(GoraCompiler.java:448)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira