Re: [orientdb] Command not found: GET. [ONetworkProtocolHttpDb]

459 views
Skip to first unread message

Luca Garulli

unread,
Jun 8, 2012, 4:59:17 AM6/8/12
to orient-...@googlegroups.com
Hi,
you're using the  127.0.0.1 interface and allow only connections from the localhost. Try using 0.0.0.0.

Lvc@

On 7 June 2012 22:36, Talel Amira <talel...@gmail.com> wrote:
Hi,
I'm trying to embed a server into java app. I'm not able to connect to the database via Studio, I'm getting 
Command not found: GET. [ONetworkProtocolHttpDb]


I'm working with OrientDB VERSION 1.0
Here's my config file, I suspected relative paths, but even with full paths, result is the same
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
   
<network>
       
<protocols>
           
<protocol name="binary"
               
implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary" />
           
<protocol name="http"
               
implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
       
</protocols>
       
<listeners>
           
<listener ip-address="127.0.0.1" port-range="2525" protocol="binary" />
           
<listener ip-address="127.0.0.1" port-range="2480-2490" protocol="http"/>
       
</listeners>
   
</network>
   
<users>
       
<user name="root" password="pcRoot" resources="*" />
   
</users>
   
<storages>
       
<storage path="local:./database/db_test" name="db_test"
           
loaded-at-startup="false" />
   
</storages>
   
<properties>
       
<entry name="orientdb.www.path" value="C:/Temp/EclipseOrient/OrientDB/www/"/>
       
<entry name="orientdb.config.file" value="C:/Temp/EclipseOrient/OrientDB/config/orientdb-server-config.xml"/>
       
<entry name="server.cache.staticResources" value="false" />
       
<entry name="log.console.level" value="finest" />
       
<entry name="log.file.level" value="fine" />
   
</properties>
</orient-server>




Talel Amira

unread,
Jun 11, 2012, 2:06:34 PM6/11/12
to orient-...@googlegroups.com
No luck with 0.0.0.0, I still have a similar message

2012-06-11 02:05:45:360 WARN ->127.0.0.1: Command not found: GET. [ONetworkProtocolHttpDb]
2012-06-11 02:05:45:392 WARN ->127.0.0.1: Command not found: GET.favicon.ico [ONetworkProtocolHttpDb]




Talel Amira

unread,
Jun 11, 2012, 3:56:25 PM6/11/12
to orient-...@googlegroups.com

I modified the network section with the one that's available in orientdb-server-config.xml and it worked. So the instructions in the wiki may be updated with this section
<network>
       
<protocols>
           
<protocol name="binary" implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"/>
           
<protocol name="http" implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
       
</protocols>
       
<listeners>

           
<listener ip-address="0.0.0.0" port-range="2424-2430" protocol="binary"/>
           
<listener ip-address="0.0.0.0" port-range="2480-2490" protocol="http">
               
<commands>
                   
<command pattern="GET|www GET|studio/ GET| GET|*.htm GET|*.html GET|*.xml GET|*.jpeg GET|*.jpg GET|*.png GET|*.gif GET|*.js GET|*.css GET|*.swf GET|*.ico GET|*.txt GET|*.otf GET|*.pjs GET|*.svg" implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent">
                       
<parameters>
                           
<entry name="http.cache:*.htm *.html" value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache"/>
                           
<entry name="http.cache:default" value="Cache-Control: max-age=120"/>
                       
</parameters>
                   
</command>
               
</commands>
               
<parameters>
                   
<parameter name="network.http.charset" value="utf-8"/>
               
</parameters>
           
</listener>
       
</listeners>
   
</network>


Reply all
Reply to author
Forward
0 new messages