Page 1 of 1
notification to the groups failed
PostPosted:Tue Dec 21, 2010 6:21 am
by ssprasad.e
while uploading the document i selected the groups for mail notification but it is not working for the groups. here the thing is the same is working for the individual users. i got the exception at the console like
Code: Select alljava.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:131)
at java.util.AbstractList.add(AbstractList.java:91)
at com.openkm.frontend.server.OKMFileUploadServlet.doPost(OKMFileUploadServlet.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ap
Re: notification to the groups failed
PostPosted:Tue Dec 21, 2010 10:19 am
by jllort
Are you using 5.0 stable, because in 5.0 beta and rc1 was some bug there, but on 5.0 stable might be solved.
Re: notification to the groups failed
PostPosted:Tue Dec 21, 2010 10:33 am
by ssprasad.e
i want to achieve throwgh this version. can you help me
Re: notification to the groups failed
PostPosted:Tue Dec 21, 2010 11:04 am
by jllort
For what you say I must understand you've got 5.0 stable installed ? if it's the case and you've made some update, simply stop jboss, remove tmp an work folder contents, and restart jboss ( it's possible could be some deprecated classes in jboss cache ).
If you've not updated to latest 5.0 stable do it. It's so simply.
Re: notification to the groups failed
PostPosted:Tue Dec 21, 2010 1:25 pm
by ssprasad.e
still i am getting same problem after doing the above instructions.... i am using rc1 server. can u people help me out. i think in servers jboss 5.0 and jboss rc1 only few files are different .can u tell what are those... i will get the working files and paste in rc1 server. thank you for helping me a lot.
Re: notification to the groups failed
PostPosted:Tue Dec 21, 2010 3:18 pm
by jllort
NO NO NO, migrate from 5.0 RC1 to 5.0 stable it's explained at
http://wiki.openkm.com/index.php/Migrat ... RC1_to_5.0
Re: notification to the groups failed
PostPosted:Wed Dec 22, 2010 5:23 am
by ssprasad.e
IF i migrate from rc1 to 5.0 then i am getting same error like unsupported exception.
and after executing the database query ,
i.e ALTER TABLE OKM_MIME_TYPE DROP COLUMN MT_ACTIVE;
executed successfully but if click the mime types exception is raising,i.e database exception in UI environment.
and
notification to the groups is not going,still.
please help me out.
Re: notification to the groups failed
PostPosted:Wed Dec 22, 2010 7:11 am
by jllort
first must alter table and then can take a look at mime type. How have you altered the table, using OpenKM sql query into adm9inistration ? which error appears in your server.log when you're accessing to mime types. I suggest after altering table, restarting jboss.
Re: notification to the groups failed
PostPosted:Wed Dec 22, 2010 7:26 am
by ssprasad.e
first i did stop the jboss and set the value "hibernate.hbm2ddl=update" in openkm.cfg and restarted the jboss .
gone adminstration and executed the querry "ALTER TABLE OKM_MIME_TYPE DROP COLUMN MT_ACTIVE;"
then refresh the browser.
then if i suppose to send notification then i am getting UnSupporetedException
Re: notification to the groups failed
PostPosted:Wed Dec 22, 2010 7:29 am
by jllort
Stop jboss
clean folders server/default/tmp and server/default/work ( only the contents )
start jboss
try it
attach here a screen shot of first page appears in administration
Where are you trying the notification: new document / updating a document / on file menu ( send link or attach document ) ?
Re: notification to the groups failed
PostPosted:Wed Dec 22, 2010 8:05 am
by ssprasad.e
this exception i am getting while starting the server
Code: Select all13:24:52,640 ERROR [Config] Null value was assigned to a property of primitive type setter of com.openkm.dao.bean.MimeType.active
com.openkm.core.DatabaseException: Null value was assigned to a property of primitive type setter of com.openkm.dao.bean.MimeType.active
at com.openkm.dao.MimeTypeDAO.findAll(MimeTypeDAO.java:204)
at com.openkm.core.Config.loadMimeTypes(Config.java:670)
at com.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:152)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
while sending notification i am getting this exception:
Code: Select all13:30:29,296 ERROR [MimeIconServlet] Null value was assigned to a property of primitive type setter of com.openkm.dao.bean.MimeType.active
com.openkm.core.DatabaseException: Null value was assigned to a property of primitive type setter of com.openkm.dao.bean.MimeType.active
at com.openkm.dao.MimeTypeDAO.findByName(MimeTypeDAO.java:236)
at com.openkm.servlet.MimeIconServlet.doGet(MimeIconServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
this is my openKM.cfg file:
Code: Select all# Default configuration values
#
#system.database=mysql
# repository.config=repository.xml
# repository.home=repository
# system.user=system
# default.user.role=UserRol
# default.admin.role=AdminRol
# principal.adapter=com.openkm.core.UsersRolesPrincipalAdapter
# max.file.size=5
# max.search.results=25
# system.demo=off
restrict.file.mime=on
restrict.file.extension=*~,*.bak,._*
#system.ocr=/usr/bin/tesseract
system.openoffice.path=/usr/lib/openoffice
#system.img2pdf=/usr/bin/convert
#system.pdf2swf=/usr/bin/pdf2swf
#system.antivir=/usr/bin/clamscan
hibernate.dialect=org.hibernate.dialect.MySQLDialect
#hibernate.dialect=org.hibernate.dialect.HSQLDialect
#hibernate.hbm2ddl=create
hibernate.hbm2ddl=none
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
max.file.size=060520010
#principal.adapter=com.openkm.principal.DatabasePrincipalAdapter
#notify.twitter.user=openkm
#notify.twitter.password=****
#subscription.message.body=Prueba.vm
i am using windows
Re: notification to the groups failed
PostPosted:Wed Dec 22, 2010 1:46 pm
by ssprasad.e
fine ...i solved by changing some code in the source.thankyou.
Re: notification to the groups failed
PostPosted:Wed Dec 22, 2010 5:35 pm
by jllort
what have you changed and on which class ?
Re: notification to the groups failed
PostPosted:Fri Jan 07, 2011 3:59 pm
by geantVert
Could you please post what you have changed ? I have the same problems that you have, on Win version.
Had a 5.0 Beta, upgraded to full by following first
Migrating from 5.0Beta to 5.0RC1 (all the ALTER TABLE from the admin/query db tool)
then Migrating from 5.0RC1 to 5.0 (the ALTER TABLE statement as well, from the admin/query db tool)
There is stil, on this version, an ESSENTIAL thing which is not working: how to undo checkout ? Even as an admin, I am unable to undo a checked out content. The option is grayed out in the menu ?!?
Thx to let everyone know what you did, this is most probably a bug that needs to get fixed!
Edit2: Improvement (sort of): I stopped jboss, removed server/default/tmp and server/default/work and restarted JBoss. Then I was able to go into the Mime Types tab in the Administration, and I pressed reset as instructed. Now, I don't have any icons on my files, and all the mime types are gone!