Support Topics Documentation Slack YouTube Blog

Real time Chat flutter in code Generator Internal Error

Application ID: 6481FD18-4CBA-3EA9-FFD3-8113C9371D00
Error UID: 82926EA2-5230-A405-FFD7-43B947B5C000

Backendless encountered an error while handling the request. An internal trouble ticket with ID 82926EA2-5230-A405-FFD7-43B947B5C000 has been created and we will be investigating the issue.
java.nio.file.NoSuchFileException: /opt/backendless/repo/6481fd18-4cba-3ea9-ffd3-8113c9371d00/files/codegen/features/xsls/backendless-codegen-xsls/flutter/backendless-codegen/Chat/.idea/workspace.xml
java.lang.RuntimeException: java.nio.file.NoSuchFileException: /opt/backendless/repo/6481fd18-4cba-3ea9-ffd3-8113c9371d00/files/codegen/features/xsls/backendless-codegen-xsls/flutter/backendless-codegen/Chat/.idea/workspace.xml
	at com.backendless.management.codegen.helper.FileParserPath.parse(FileParserPath.java:32)
	at com.backendless.management.codegen.helper.FileParser.parse(FileParser.java:38)
	at com.backendless.management.codegen.helper.FolderParserByContent.parse(FolderParserByContent.java:40)
	at com.backendless.management.codegen.helper.FolderParser.parse(FolderParser.java:51)
	at com.backendless.management.codegen.helper.FolderParserByContent.parse(FolderParserByContent.java:40)
	at com.backendless.management.codegen.helper.FolderParser.parse(FolderParser.java:51)
	at com.backendless.management.codegen.CodeGenerationManager.createGeneratedFileStructure(CodeGenerationManager.java:282)
	at com.backendless.management.codegen.CodeGenerationManager.generateStructure(CodeGenerationManager.java:98)
	at controllers.console.codegen.CodeGenerator.generateStructure(CodeGenerator.java:48)
	at router.Routes$$anonfun$routes$1.$anonfun$applyOrElse$917(Routes.scala:13935)
	at play.core.routing.HandlerInvokerFactory$$anon$8.resultCall(HandlerInvoker.scala:146)
	at play.core.routing.HandlerInvokerFactory$$anon$8.resultCall(HandlerInvoker.scala:145)
	at play.core.routing.HandlerInvokerFactory$JavaActionInvokerFactory$$anon$3$$anon$4$$anon$5.invocation(HandlerInvoker.scala:111)
	at play.core.j.JavaAction$$anon$1.call(JavaAction.scala:119)
	at play.http.DefaultActionCreator$1.call(DefaultActionCreator.java:33)
	at com.backendless.management.developer.DeveloperApplicationAccessAction.call(DeveloperApplicationAccessAction.java:20)
	at com.backendless.management.developer.AbstractAuthenticateDeveloperAction.call(AbstractAuthenticateDeveloperAction.java:43)
	at com.backendless.old.security.ApplicationExistenceAndUseAction.call(ApplicationExistenceAndUseAction.java:39)
	at com.backendless.old.security.ConsoleOriginAction.call(ConsoleOriginAction.java:46)
	at com.backendless.SimultaneousApiCallLimitAction.call(SimultaneousApiCallLimitAction.java:26)
	at com.backendless.StaticHttpResponseHeadersAction.call(StaticHttpResponseHeadersAction.java:22)
	at com.backendless.StackOverflowHandlerAction.call(StackOverflowHandlerAction.java:21)
	at com.backendless.CloseEntityManagerAction.call(CloseEntityManagerAction.java:36)
	at com.backendless.CurrentRequestsNumberAction.call(CurrentRequestsNumberAction.java:31)
	at play.core.j.JavaAction.$anonfun$apply$8(JavaAction.scala:175)
	at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
	at scala.util.Success.$anonfun$map$1(Try.scala:255)
	at scala.util.Success.map(Try.scala:213)
	at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at play.core.j.HttpExecutionContext.$anonfun$execute$1(HttpExecutionContext.scala:63)
	at play.api.libs.streams.Execution$trampoline$.execute(Execution.scala:70)
	at play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:58)
	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:72)
	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete(Promise.scala:372)
	at scala.concurrent.impl.Promise$KeptPromise$Kept.onComplete$(Promise.scala:371)
	at scala.concurrent.impl.Promise$KeptPromise$Successful.onComplete(Promise.scala:379)
	at scala.concurrent.impl.Promise.transform(Promise.scala:33)
	at scala.concurrent.impl.Promise.transform$(Promise.scala:31)
	at scala.concurrent.impl.Promise$KeptPromise$Successful.transform(Promise.scala:379)
	at scala.concurrent.Future.map(Future.scala:292)
	at scala.concurrent.Future.map$(Future.scala:292)
	at scala.concurrent.impl.Promise$KeptPromise$Successful.map(Promise.scala:379)
	at scala.concurrent.Future$.apply(Future.scala:659)
	at play.core.j.JavaAction.apply(JavaAction.scala:176)
	at play.api.mvc.Action.$anonfun$apply$4(Action.scala:82)
	at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
	at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
	at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
	at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92)
	at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:47)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.nio.file.NoSuchFileException: /opt/backendless/repo/6481fd18-4cba-3ea9-ffd3-8113c9371d00/files/codegen/features/xsls/backendless-codegen-xsls/flutter/backendless-codegen/Chat/.idea/workspace.xml
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:548)
	at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258)
	at java.base/java.nio.file.Files.copy(Files.java:1294)
	at com.backendless.management.codegen.helper.CreateStructureHandler.copyFile(CreateStructureHandler.java:31)
	at com.backendless.management.codegen.helper.FileParser

Problem description

Describe what you did in console that led to the error. Please provide a description of what actually happens. Be descriptive: “it doesn’t work” does not describe what the behavior actually is. This will help us with reproducing the problem.

Steps to reproduce

Please describe steps to reproduce starting from the first action.

Hi @Ehsan_Abedi

Internal ticket to fix the issue is already created (BKNDLSS-20666).
We’ll update you when fix will be released.

Best regards, Yevhen.

Hi @Ehsan_Abedi

We are aware of this issue and our team is working to fix it as soon as possible.

As for now I can offer you to download this archive with Chat sample application:
MyAppChat-generated.zip (172.1 KB)

Unzip the archive, open the project in the IDE, run the following commands:

flutter packages get
chmod +x android/gradlew

And specify your App ID and API Keys in the main.dart file. Then you can run the app.

Best Regards,
Maksym

1 Like

Hi @Ehsan_Abedi

We’ve updated the codegen projects. Could you kindly let us know whether it works for you now?

Best Regards,
Maksym