AbstractSubResource - Tried to parse the extension segments but they appear invalid: 1:[parse error]+*

72 views
Skip to first unread message

BT

unread,
Aug 1, 2012, 9:55:53 PM8/1/12
to gremli...@googlegroups.com
I'm hoping this error might look familiar to someone 
{"message":"The [1:[parse error]+*] extension appears invalid for [snac]"}

[ERROR] AbstractSubResource - Tried to parse the extension segments but they appear invalid: 1:[parse error]+*
I tried to comment out my custom extension (which is written against an older rexster)

            <!-- extensions>
                <allows>
                    <allow>snac:*</allow>
                </allows>
            </extensions -->

But I still get the same error.

Here is my old extension: 

Any suggestions on approaches to debugging this problem appreciated.

catalina.out with some notes; shows some unrelated WARNINGS: re: not being able to memory map files in the neo4j database

thanks -- Brian

Stephen Mallette

unread,
Aug 1, 2012, 10:08:24 PM8/1/12
to gremli...@googlegroups.com
that error means that you are trying to access a URI that doesn't
match any extension namespace/names defined. In this case, it doesn't
look like your URI is valid.

http://localhost:8182/graphs/snac/1

breaking that down i see:

http://localhost:8182/graphs/{graphname}/1

so you aren't really specifying a valid extension. I assume "snac" is
the name of your graph, so Rexster is trying to resolve "1" as an
extension (which it obviously can't do). looking at your extension i
think you want something more like:

http://localhost:8182/graphs/snac/vertices/1/snac/theJit

Your extension is defined as extending from the Vertex (defined as
ExtensionPoint.VERTEX) so the reference point must come from the
vertex resource. then your extension name is "theJit". Hope that
solves your problem.

Stephen

BT

unread,
Aug 1, 2012, 10:12:59 PM8/1/12
to gremli...@googlegroups.com
doh!  Left off /vertices/ and got confused by the error message because my extension's namespace and the graph name are the same...

Still getting the strange memory map warnings in catalina.out as of the update this afternoon that fixed my other problem with /keyindices/

Stephen Mallette

unread,
Aug 2, 2012, 11:29:54 AM8/2/12
to gremli...@googlegroups.com
Peter, do you have any ideas on this error message from Neo4j?

https://gist.github.com/3232326

Should that warning be something to be concerned about? I think that
message pops up from time to time running Blueprints tests. Doesn't
seem to cause the tests to fail though.

Stephen

BT

unread,
Aug 2, 2012, 12:18:35 PM8/2/12
to gremli...@googlegroups.com
Once I got the all the versions and repositories figured out for my pom.xml I just had to change ...blueprints.bmp.Somthing  to ...blueprints.Something where you call out all your classes at the top of the file and then it worked like a charm, no changes to the gremlin required.

I see that rexster-kibbles is merged into the same repository as rexster now.  Maybe I should do that with my extension.  Right now it is not integrated into my rexster repo.

Now that I have it figured out, I like the way the new keyindices work a lot better than the old way in both the gremlin and the rexster it is cleaner/easier.

Thanks for your help.  I'm sticking by my story that tinkerpop is 10 to 100 times easier than the semantic web linked data technology stack.


Reply all
Reply to author
Forward
0 new messages