Page 1 of 1

Problem with createFolderSimple

PostPosted:Thu Feb 04, 2016 7:09 am
by dmaginas
Hello,

we have a problem and it is really urgent! We are calling from our program "createFolderSimple" with a valid parameter over the C#-DLL of OpenKM. It fails with an Exception:
"415 Unsupported Media Type".

In the Log-Window of Tomcat (on the server where OpenKM is running) it says:
"2016-02-03 14:41:33,194 [http-bio-0.0.0.0-8080-exec-1] WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught :
Media type separator is missing.
"

We are using OpenKM 6.3.0 Community Edition on Windows Server 2008.

Re: Problem with createFolderSimple

PostPosted:Thu Feb 04, 2016 1:53 pm
by dmaginas
We found in our catalina.log following entries:
Code: Select all
2016-02-04 07:34:09,149 [http-bio-0.0.0.0-8080-exec-7] WARN  org.apache.cxf.jaxrs.utils.JAXRSUtils- No operation matching request path "/OpenKM/services/rest/folder/createSimple" is found, Relative Path: /createSimple, HTTP Method: GET, ContentType: */*, Accept: */*,. Please enable FINE/TRACE log level for more details.
2016-02-04 07:34:09,149 [http-bio-0.0.0.0-8080-exec-7] WARN  org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught : no cause is available
2016-02-04 08:32:38,321 [http-bio-0.0.0.0-8080-exec-5] WARN  org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught : a483ceed-3296-4e6b-95dd-53e756e16386
2016-02-04 09:28:23,833 [http-bio-0.0.0.0-8080-exec-9] WARN  org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught : 3492d662-b58e-417c-85b6-930ad0c6c3cf
2016-02-04 09:34:58,833 [http-bio-0.0.0.0-8080-exec-2] WARN  org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught : Media type separator is missing
2016-02-04 10:11:39,982 [http-bio-0.0.0.0-8080-exec-7] WARN  org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught : Media type separator is missing
2016-02-04 10:13:36,451 [http-bio-0.0.0.0-8080-exec-5] WARN  org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught : Media type separator is missing
2016-02-04 10:15:22,263 [http-bio-0.0.0.0-8080-exec-6] WARN  org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper- WebApplicationException has been caught : Media type separator is missing
Maybe this information could help.

Re: Problem with createFolderSimple

PostPosted:Fri Feb 05, 2016 8:19 am
by jllort
First of all I suggest you upgrade to version 6.3.1 and test there again. If error persist please share with us a piece of source code to create the error from our side.

Here the steps for migrating http://wiki.openkm.com/index.php/Migrat ... 3_to_6.3.1

Re: Problem with createFolderSimple

PostPosted:Fri Feb 05, 2016 8:51 am
by dmaginas
Hello,


in the steps for migrating from V6.3 to V6.3.1 it says:

1.) Replace the OpenKM.war -> Where do i find the OpenKM.war file? With which file i should replace it?

2.) Execute these queries: .... -> How do i connect to the OpenKM database? There is missing information on
how to find the OpenKM database. Is it MySQL? What is the user? And what the password?

Thanks in advance!

Re: Problem with createFolderSimple

PostPosted:Sat Feb 06, 2016 8:14 am
by jllort
You have not expended much time investigating how doing it and where is the file.

If you go to download at sourceforge http://sourceforge.net/projects/openkm/files/6.3.1/ you see a openkm-6.3.1-community-war.zip ( the war file ). About how executing sql have several option ( or you connect to database -> I suppose you are using default openkm installation what comes with hypersonic embeded database -> I suggest go for mysql on production http://wiki.openkm.com/index.php/MySQL_-_OpenKM_6.2 -> ( for doing it must change configuration to mysql and create the repository again with OpenKM.cfg hibernate.hbml set to create )
However at Administration > Database Query -> you can execute queries to database from there.

Re: Problem with createFolderSimple

PostPosted:Wed Feb 10, 2016 3:00 pm
by dmaginas
Hello,

finally after installing OpenKM Community 6.3.1 (OMG this was a hard piece of work), the problem is gone.
We can call "createFolderSimple" and it works as expected.

Thank you!