org.obiba.magma.crypt.NoSuchKeyException: No PublicKey for destination 'DCC'

JIRA | 7 years ago
  1. 0

    Trying to export the completed interview data. After clicking the button "Export" in page "Participant Data Management", no files found under the desiganated directory. Meanwhile, the following error information is given by stdout.log ============================= 2009-12-10 14:16:37,187 - INFO - able.export.OnyxDataExport - Starting export to configured destinations. 2009-12-10 14:16:37,187 - ERROR - .panel.DataManagementPanel - Error on data export. org.obiba.magma.crypt.NoSuchKeyException: No PublicKey for destination 'DCC' at org.obiba.onyx.engine.variable.export.OnyxDataExport$2.getPublicKey(OnyxDataExport.java:118) at org.obiba.magma.datasource.crypt.GeneratedSecretKeyDatasourceEncryptionStrategy.wrapKey(GeneratedSecretKeyDatasourceEncryptionStrategy.java:139) at org.obiba.magma.datasource.crypt.GeneratedSecretKeyDatasourceEncryptionStrategy.getSecretKey(GeneratedSecretKeyDatasourceEncryptionStrategy.java:118) at org.obiba.magma.datasource.crypt.GeneratedSecretKeyDatasourceEncryptionStrategy.createDatasourceCipherFactory(GeneratedSecretKeyDatasourceEncryptionStrategy.java:102) at org.obiba.magma.datasource.fs.FsDatasource.onInitialise(FsDatasource.java:91) at org.obiba.magma.support.AbstractDatasource.initialise(AbstractDatasource.java:79) at org.obiba.magma.MagmaEngine.addDatasource(MagmaEngine.java:86) at org.obiba.onyx.engine.variable.export.OnyxDataExport.exportInterviews(OnyxDataExport.java:130) at WICKET_org.obiba.onyx.engine.variable.export.OnyxDataExport$$FastClassByCGLIB$$c7571da3.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:319) at WICKET_org.obiba.onyx.engine.variable.export.OnyxDataExport$$EnhancerByCGLIB$$8904431a.exportInterviews(<generated>) at org.obiba.onyx.webapp.administration.panel.DataManagementPanel$1$1.onYesButtonClicked(DataManagementPanel.java:65) at org.obiba.onyx.wicket.reusable.ConfirmationDialog$1.onClose(ConfirmationDialog.java:43) at org.obiba.onyx.wicket.reusable.Dialog$7.onClose(Dialog.java:369) at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow$WindowClosedBehavior.respond(ModalWindow.java:921) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527) at java.lang.Thread.run(Unknown Source)

    JIRA | 7 years ago
    org.obiba.magma.crypt.NoSuchKeyException: No PublicKey for destination 'DCC'

    Root Cause Analysis

    1. org.obiba.magma.crypt.NoSuchKeyException

      No PublicKey for destination 'DCC'

      at org.obiba.onyx.engine.variable.export.OnyxDataExport$2.getPublicKey()
    2. org.obiba.onyx
      OnyxDataExport$2.getPublicKey
      1. org.obiba.onyx.engine.variable.export.OnyxDataExport$2.getPublicKey(OnyxDataExport.java:118)
      1 frame
    3. org.obiba.magma
      MagmaEngine.addDatasource
      1. org.obiba.magma.datasource.crypt.GeneratedSecretKeyDatasourceEncryptionStrategy.wrapKey(GeneratedSecretKeyDatasourceEncryptionStrategy.java:139)
      2. org.obiba.magma.datasource.crypt.GeneratedSecretKeyDatasourceEncryptionStrategy.getSecretKey(GeneratedSecretKeyDatasourceEncryptionStrategy.java:118)
      3. org.obiba.magma.datasource.crypt.GeneratedSecretKeyDatasourceEncryptionStrategy.createDatasourceCipherFactory(GeneratedSecretKeyDatasourceEncryptionStrategy.java:102)
      4. org.obiba.magma.datasource.fs.FsDatasource.onInitialise(FsDatasource.java:91)
      5. org.obiba.magma.support.AbstractDatasource.initialise(AbstractDatasource.java:79)
      6. org.obiba.magma.MagmaEngine.addDatasource(MagmaEngine.java:86)
      6 frames
    4. org.obiba.onyx
      OnyxDataExport.exportInterviews
      1. org.obiba.onyx.engine.variable.export.OnyxDataExport.exportInterviews(OnyxDataExport.java:130)
      1 frame
    5. WICKET_org.obiba.onyx
      OnyxDataExport$$FastClassByCGLIB$$c7571da3.invoke
      1. WICKET_org.obiba.onyx.engine.variable.export.OnyxDataExport$$FastClassByCGLIB$$c7571da3.invoke(<generated>)
      1 frame
    6. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      1 frame
    7. Wicket IoC common code
      LazyInitProxyFactory$CGLibInterceptor.intercept
      1. org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:319)
      1 frame
    8. WICKET_org.obiba.onyx
      OnyxDataExport$$EnhancerByCGLIB$$8904431a.exportInterviews
      1. WICKET_org.obiba.onyx.engine.variable.export.OnyxDataExport$$EnhancerByCGLIB$$8904431a.exportInterviews(<generated>)
      1 frame
    9. org.obiba.onyx
      Dialog$7.onClose
      1. org.obiba.onyx.webapp.administration.panel.DataManagementPanel$1$1.onYesButtonClicked(DataManagementPanel.java:65)
      2. org.obiba.onyx.wicket.reusable.ConfirmationDialog$1.onClose(ConfirmationDialog.java:43)
      3. org.obiba.onyx.wicket.reusable.Dialog$7.onClose(Dialog.java:369)
      3 frames
    10. Wicket Extensions
      ModalWindow$WindowClosedBehavior.respond
      1. org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow$WindowClosedBehavior.respond(ModalWindow.java:921)
      1 frame
    11. Wicket Core
      AbstractDefaultAjaxBehavior.onRequest
      1. org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
      1 frame
    12. org.apache.wicket
      BehaviorRequestTarget.processEvents
      1. org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
      1 frame
    13. Wicket Request
      AbstractRequestCycleProcessor.processEvents
      1. org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      1 frame
    14. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
      2. org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
      3. org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
      4. org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      5. org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
      6. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301)
      6 frames
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    16. Hibernate
      OpenSessionInViewFilter.doFilterInternal
      1. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      1 frame
    17. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      1 frame
    18. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      8 frames
    19. Grizzly HTTP
      AprEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
      2. org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
      3. org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
      3 frames
    20. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame