Failed to import tasks from JIRA in Youtrack standalone

Answered

Environment: Windows 7, youtrack-2017.2.34279, JIRA v6.4.4 with ssl and self-signed certificate. Root Certificate is imported as trusted

I've got message "Cancelled by the user" right after pressing "import" button.

And import.log contains:

07 июл 2017 19:15:03,134 INFO  [ContextHolder       ] [tzJobProcessor3] [import_user_5823826106480821483] Removing testConnection from ContextHolder
07 июл 2017 19:15:45,494 INFO  [ContextHolder       ] [p1224524782-141] [admin@fe80:0:0:0:a0c9:6a74:a94f:1565%13] The script testConnection was not running when there was an attempt to stop it.
07 июл 2017 19:15:45,506 INFO  [ContextHolder       ] [tzJobProcessor0] [import_user_5823826106480821483] Storing testConnection in ContextHolder
07 июл 2017 19:15:45,784 ERROR [ImportScriptImpl    ] [tzJobProcessor0] [import_user_5823826106480821483] Script failed with error
org.mozilla.javascript.EvaluatorException: Can't find method jetbrains.youtrack.scripts.sandbox.ClientFactory.getHttpClient(null,org.mozilla.javascript.Undefined). (v1/http#158)
    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:913)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:969)
    at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:932)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:144)
    at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
    at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
    at org.mozilla.javascript.gen.v1_http_310._c_anonymous_8(v1/http:158)
    at org.mozilla.javascript.gen.v1_http_310.call(v1/http)
    at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
    at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_304._c_anonymous_4(jetbrains/youtrack/imports/jira/jira:40)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_304.call(jetbrains/youtrack/imports/jira/jira)
    at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
    at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_importContext_301._c_anonymous_2(jetbrains/youtrack/imports/jira/importContext:39)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_importContext_301.call(jetbrains/youtrack/imports/jira/importContext)
    at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_testConnection_295._c_script_0(jetbrains/youtrack/imports/jira/testConnection:18)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_testConnection_295.call(jetbrains/youtrack/imports/jira/testConnection)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_testConnection_295.call(jetbrains/youtrack/imports/jira/testConnection)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_testConnection_295.exec(jetbrains/youtrack/imports/jira/testConnection)
    at org.mozilla.javascript.commonjs.module.Require.executeModuleScript(Require.java:340)
    at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:288)
    at org.mozilla.javascript.commonjs.module.Require.requireMain(Require.java:137)
    at jetbrains.youtrack.scripts.persistence.ScriptImpl.eval(ScriptImpl.java:83)
    at jetbrains.youtrack.imports.persistent.ImportScriptImpl.eval(ImportScriptImpl.java:70)
    at jetbrains.youtrack.jira.oldImport.JiraRestApi.doTestConnection(JiraRestApi.java:118)
    at jetbrains.youtrack.jira.oldImport.JiraRestApi.access$000(JiraRestApi.java:36)
    at jetbrains.youtrack.jira.oldImport.JiraRestApi$1.run(JiraRestApi.java:101)
    at jetbrains.mps.businessRules.runtime.TransactionalExecutor$1.invoke(TransactionalExecutor.java:24)
    at jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:492)
    at jetbrains.mps.businessRules.runtime.TransactionalExecutor.execute(TransactionalExecutor.java:22)
    at webr.framework.controller.BeanContainerAwareExecutorWrapper.execute(BeanContainerAwareExecutorWrapper.java:21)
    at jetbrains.charisma.persistent.QuartzThreadExecutor$1.run(QuartzThreadExecutor.java:17)
    at jetbrains.exodus.core.execution.RunnableJob.execute(RunnableJob.java:41)
    at jetbrains.exodus.core.execution.Job.run(Job.java:99)
    at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:132)
    at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doExecuteJob(JobProcessorQueueAdapter.java:238)
    at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:159)
    at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:110)
    at jetbrains.exodus.core.execution.ThreadJobProcessor$1.run(ThreadJobProcessor.java:43)
    at java.lang.Thread.run(Thread.java:748)

 

 

3 comments
Comment actions Permalink
Official comment

Hello! Unfortunately, you've faced a known issue: https://youtrack.jetbrains.com/issue/JT-42309

It's already fixed but the build with the fix is not yet released. Please wait until the next build, upgrade and try again.

We're very sorry for the inconvenience.

Let us know if we can help you any further. Thanks.

Comment actions Permalink

Just updated to new version. Import is almost successfull. But got error in the end:

12 июл 2017 18:35:24,816 ERROR [ImportScriptImpl    ] [tzJobProcessor2] [import_user_5823826106480821483] Script failed with error: java.lang.RuntimeException: Timestamp set to due date matches neither of the formats provided (yyyy-MM-dd'T'HH:mm:ssX yyyy-MM-dd'T'HH:mmX)
org.mozilla.javascript.JavaScriptException: JavaException: java.lang.RuntimeException: Timestamp set to due date matches neither of the formats provided (yyyy-MM-dd'T'HH:mm:ssX yyyy-MM-dd'T'HH:mmX) (jetbrains/youtrack/imports/jira/jira#224)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_349._c_anonymous_35(jetbrains/youtrack/imports/jira/jira:224)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_349.call(jetbrains/youtrack/imports/jira/jira)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_perTypeConverters_385._c_anonymous_24(jetbrains/youtrack/imports/jira/perTypeConverters:251)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_perTypeConverters_385.call(jetbrains/youtrack/imports/jira/perTypeConverters)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_events_379._c_anonymous_4(jetbrains/youtrack/imports/jira/events:51)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_events_379.call(jetbrains/youtrack/imports/jira/events)
    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_events_379._c_anonymous_6(jetbrains/youtrack/imports/jira/events:59)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_events_379.call(jetbrains/youtrack/imports/jira/events)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_events_379._c_anonymous_21(jetbrains/youtrack/imports/jira/events:157)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_events_379.call(jetbrains/youtrack/imports/jira/events)
    at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_entityConverters_373._c_anonymous_6(jetbrains/youtrack/imports/jira/entityConverters:225)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_entityConverters_373.call(jetbrains/youtrack/imports/jira/entityConverters)
    at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337._c_anonymous_7(jetbrains/youtrack/imports/jira/import:83)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337.call(jetbrains/youtrack/imports/jira/import)
    at org.mozilla.javascript.NativeArray.iterativeMethod(NativeArray.java:1584)
    at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:318)
    at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337._c_anonymous_6(jetbrains/youtrack/imports/jira/import:82)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337.call(jetbrains/youtrack/imports/jira/import)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_349._c_anonymous_31(jetbrains/youtrack/imports/jira/jira:188)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_349.call(jetbrains/youtrack/imports/jira/jira)
    at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_349._c_anonymous_29(jetbrains/youtrack/imports/jira/jira:172)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_jira_349.call(jetbrains/youtrack/imports/jira/jira)
    at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337._c_anonymous_5(jetbrains/youtrack/imports/jira/import:80)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337.call(jetbrains/youtrack/imports/jira/import)
    at org.mozilla.javascript.NativeArray.iterativeMethod(NativeArray.java:1584)
    at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:318)
    at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337._c_script_0(jetbrains/youtrack/imports/jira/import:112)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337.call(jetbrains/youtrack/imports/jira/import)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337.call(jetbrains/youtrack/imports/jira/import)
    at org.mozilla.javascript.gen.jetbrains_youtrack_imports_jira_import_337.exec(jetbrains/youtrack/imports/jira/import)
    at org.mozilla.javascript.commonjs.module.Require.executeModuleScript(Require.java:340)
    at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:288)
    at org.mozilla.javascript.commonjs.module.Require.requireMain(Require.java:137)
    at jetbrains.youtrack.scripts.persistence.ScriptImpl.eval(ScriptImpl.java:83)
    at jetbrains.youtrack.imports.persistent.ImportScriptImpl.eval(ImportScriptImpl.java:70)
    at jetbrains.youtrack.jira.oldImport.JiraRestApi$5.run(JiraRestApi.java:172)
    at jetbrains.mps.businessRules.runtime.TransactionalExecutor$1.invoke(TransactionalExecutor.java:24)
    at jetbrains.teamsys.dnq.runtime.txn._Txn.runNew(_Txn.java:492)
    at jetbrains.mps.businessRules.runtime.TransactionalExecutor.execute(TransactionalExecutor.java:22)
    at webr.framework.controller.BeanContainerAwareExecutorWrapper.execute(BeanContainerAwareExecutorWrapper.java:21)
    at jetbrains.charisma.persistent.QuartzThreadExecutor$1.run(QuartzThreadExecutor.java:17)
    at jetbrains.exodus.core.execution.RunnableJob.execute(RunnableJob.java:41)
    at jetbrains.exodus.core.execution.Job.run(Job.java:99)
    at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:132)
    at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doExecuteJob(JobProcessorQueueAdapter.java:238)
    at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:159)
    at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:110)
    at jetbrains.exodus.core.execution.ThreadJobProcessor$1.run(ThreadJobProcessor.java:43)
    at java.lang.Thread.run(Thread.java:748)

 

0
Comment actions Permalink

Hello,

It's a known issue that's already been fixed: https://youtrack.jetbrains.com/issue/JT-39222. The fix will be released in within a couple of weeks.

 

Regards,

  Alexander

0

Please sign in to leave a comment.