Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-5631

No session exception while using plugin from tutorial.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.6 M6, 2.6
    • 2.5.2
    • None
    • None
    • version 2.5.2 build 1714 - 08 Feb 10

    Description

      While using bamboo plugin tutorial i've encountered following Exception:


      2010-04-09 20:52:40,190 ERROR [BAM::Events:pool-1-thread-1] [LazyInitializationException] Failed to lazily initialize a collection - no session or session was closed
      net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
      at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:209)
      at net.sf.hibernate.collection.PersistentCollection.write(PersistentCollection.java:84)
      at net.sf.hibernate.collection.Bag.add(Bag.java:281)
      at com.atlassian.bamboo.labels.LabelManagerImpl.addLabel(LabelManagerImpl.java:393)
      at com.atlassian.bamboo.labels.LabelManagerImpl.addLabel(LabelManagerImpl.java:57)
      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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy27.addLabel(Unknown Source)
      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 com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      at $Proxy77.addLabel(Unknown Source)
      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 com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:150)
      at $Proxy77.addLabel(Unknown Source)
      at com.mycompany.bamboo.plugins.BuildLabeller.run(BuildLabeller.java:30)
      at com.atlassian.bamboo.v2.build.events.PostBuildCompletedEventListener.performCustomBuildCompleteAction(PostBuildCompletedEventListener.java:68)
      at com.atlassian.bamboo.v2.build.events.PostBuildCompletedEventListener.handleEvent(PostBuildCompletedEventListener.java:41)
      at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:47)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:33)
      at java.lang.Thread.run(Thread.java:619)


      steps to reproduce:
      1. Use atlassian-plugin-sdk to create new plugin.
      2. Use aforementioned bamboo plugin tutorial to create simple BuildCompleteAction.
      3. Run build, which returns in logs "OutOfMemoryError" (for example: Script = '-c echo OutOfMemoryError')

      Attachments

        Activity

          People

            mgardias Marcin Gardias
            pstefaniak PiotrA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 47m
                2h 47m