cancel
Showing results for 
Search instead for 
Did you mean: 

Calendar events can't be deleted (enterprise 3)

boy412
Champ in-the-making
Champ in-the-making
Running a trial of Enterprise 3 (working well!). We've added a few test events into one of our sites' calendars. Problem is they can't be removed! If you click on the event and click "delete" you get a dialogue box asking "are you sure you want to delete…". Clicking the delete button just brings you back to the Event Information window.

How can I fix this? I'm logged in as "admin" so I should have permission to remove events from the site calendar, yes?

Thanks,

-eric-
18 REPLIES 18

boy412
Champ in-the-making
Champ in-the-making
Placed the MySQL connector into tomcat/lib, set the owner & group to "alfresco". Restarted everything and still not able to log in, alfresco webapp not working. Here is the alfresco log:

21:46:08,402 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: 
Execution result:
   os:         Linux
   command:    [convert, /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_39178.gif, /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_39179.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "convert": java.io.IOException: error=2, No such file or directory
21:46:10,843 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
21:46:13,423 WARN  [org.alfresco.mbeans.VirtServerRegistry] WCM virtualization disabled (alfresco-jmxrmi.password and/or alfresco-jmxrmi.access isn't on classpath)
21:46:18,206 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmRemoteService' defined in class path resource [alfresco/remote-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 50501; nested exception is:
   java.net.BindException: Address already in use
Caused by: java.rmi.server.ExportException: Port already in use: 50501; nested exception is:
   java.net.BindException: Address already in use
   at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
   at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
   at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
   at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
   at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
   at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)
   at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:235)
   at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServiceExporter.java:280)
   at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:227)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:97)
   at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:27)
   at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:333)
   at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
   at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
   … 44 more
21:46:25,948 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

Thanks,

-eric-

mikeh
Star Contributor
Star Contributor
Port already in use: 50501
Make sure the previous instance has completely shutdown before starting a new one.

Mike

boy412
Champ in-the-making
Champ in-the-making
I think I've figured out the mistake, but I would like some guidance as to how to fix it. During the initial setup I did not specify MySQL as the database and Alfresco was using Derby. Subsequently the custom-repository.properties file was changed to use MySQL, but after the instance of Alfresco was running for a week.

So…Is there a way to "migrate" the database to MySQL or do I need to trash the Alf_Data folder and start over? There isn't much data in there right now but if it can be preserved then all the better!

Thanks for your help, and patience…

Cheers,

-eric-

mikeh
Star Contributor
Star Contributor
Unless you're really attached to the existing data, by far the easiest solution is to start over. Otherwise, you can use the Data Export procedures from the wiki, then import into a new instance.

Mike

boy412
Champ in-the-making
Champ in-the-making
Got it. I'm not especially attached to the data…so I trashed the alf_data folder, dropped the alfresco database, recreated it, and now all is well.

Thanks again for your assistance…have a good weekend!

-eric-

boy412
Champ in-the-making
Champ in-the-making
I tried the fix but am still unable to delete calendar events in Share. Here is the text of the relevant section of the javascript after Iedited it:

/**
       * Fired when the delete button is clicked.
       *
       * @method onDeleteClick
       * @param e {object} DomEvent
       */
      onDeleteClick: function EventInfo_onDeleteClick(e)
      {
         var me = this;
         Alfresco.util.PopupManager.displayPrompt(
         {
            text: this._msg("message.confirm.delete", this.event.name),
            buttons: [
            {
               text: this._msg("button.delete"),
               handler: function DL_onActionDelete_delete()
               {
                  this.destroy();
                  me._onDeleteConfirm.call(me, record);
               }
            },
            {
               text: this._msg("button.cancel"),
               handler: function DL_onActionDelete_cancel()
               {
                  this.destroy();
               },
               isDefault: true
            }]
         });
      },
     
      /**
       * Delete Event confirmed.
       * Kicks off a DELETE request to the Alfresco repo to remove an event.
       *
       * @method _onDeleteConfirm
       * @private
       */
      _onDeleteConfirm: function EventInfo_onDeleteConfirm()
      {
         Alfresco.util.Ajax.request(
         {
            method: Alfresco.util.Ajax.DELETE,
            url: Alfresco.constants.PROXY_URI + this.event.uri + "?page=calendar",
            successCallback:
            {
               fn: this.onDeleted,
               scope: this
            },
            failureMessage: this._msg("message.delete.failure", this.event.name),
         });
      },
     
      /**
       * Called when an event is successfully deleted.
       *
       * @method onDeleted
       * @param e {object} DomEvent
       */
      onDeleted: function EventInfo_onDeleted(e)
      {
         this._hide();

         YAHOO.Bubbling.fire('eventDeleted',
         {
            name: this.event.name, // so we know which event we are dealing with
            from: this.event.from // grab the events for this date and remove the event
         });        
      },

mikeh
Star Contributor
Star Contributor
You need to check the browser hasn't cached the old copy.

Is it *exactly* the same issue? i.e. the Delete button doesn't seem to do anything, or slightly different?

Mike

boy412
Champ in-the-making
Champ in-the-making
Yes. Exactly the same issue.

1) Click on event brings up Event Information window
2) Click Delete, brings up a confirmation window
2) Click Delete. No confirmation of deletion, just brings you back to the Event Information window

Thanks…

mikeh
Star Contributor
Star Contributor
At this point, I suggest you wait for the imminent release of 3.0 SP1, where this is known to be fixed.

Thanks,
Mike