Problem with createFolderSimple

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
dmaginas
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Thu Feb 04, 2016 6:47 am

Problem with createFolderSimple

Post by dmaginas » Thu Feb 04, 2016 7:09 am

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.

dmaginas
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Thu Feb 04, 2016 6:47 am

Re: Problem with createFolderSimple

Post by dmaginas » Thu Feb 04, 2016 1:53 pm

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.

jllort
Moderator
Moderator
Posts: 9593
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Problem with createFolderSimple

Post by jllort » Fri Feb 05, 2016 8:19 am

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

dmaginas
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Thu Feb 04, 2016 6:47 am

Re: Problem with createFolderSimple

Post by dmaginas » Fri Feb 05, 2016 8:51 am

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!

jllort
Moderator
Moderator
Posts: 9593
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Problem with createFolderSimple

Post by jllort » Sat Feb 06, 2016 8:14 am

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.

dmaginas
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Thu Feb 04, 2016 6:47 am

Re: Problem with createFolderSimple

Post by dmaginas » Wed Feb 10, 2016 3:00 pm

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest