See this: 
https://stackoverflow.com/questions/67669131/sending-any-android-build-shows-build-error-server-response-code-401
The right thing to do is logout from Codename One Settings only it doesn't 
always delete the state. So you need to remove codename1 from the 
"registry" which you can do on a mac by:
rm  ~/Library/Preferences/com.codename1.*

On Linux it's somewhere under ~/.java/.userPrefs

On Thursday, June 10, 2021 at 11:07:31 PM UTC+3 a2nd...@gmail.com wrote:

> Here's the additional error info:
>
> Sending build to account: 
> java.io.IOException: Server returned HTTP response code: 401 for URL: 
> https://cloud.codenameone.com/appsec/7.0/build/upload
> at 
> java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
> at 
> java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
> at 
> java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
> at 
> com.codename1.build.client.BuildProcess.sendS3Build(BuildProcess.java:469)
> at 
> com.codename1.build.client.BuildProcess.sendRequestToServer(BuildProcess.java:500)
> at 
> com.codename1.build.client.CodeNameOneBuildTask.execute(CodeNameOneBuildTask.java:529)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
> at org.apache.tools.ant.Task.perform(Task.java:350)
> at org.apache.tools.ant.Target.execute(Target.java:449)
> at org.apache.tools.ant.Target.performTasks(Target.java:470)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
> at com.codename1.ant.AntExecutor.executeAntTask(AntExecutor.java:64)
> at com.codename1.maven.CN1BuildMojo.createAntProject(CN1BuildMojo.java:403)
> at com.codename1.maven.CN1BuildMojo.executeImpl(CN1BuildMojo.java:119)
> at com.codename1.maven.AbstractCN1Mojo.execute(AbstractCN1Mojo.java:195)
> at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
> at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
> at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
> at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
> at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
> at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
>
> BUILD FAILED
> /home/dennis/IdeaProjects/ShoppingGenie/android/target/codenameone/antProject/build.xml:81:
>  
> Error in server build process
>
> Total time: 1 second
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for shoppinggenie 1.0-SNAPSHOT:
> [INFO] 
> [INFO] shoppinggenie ...................................... SUCCESS [  
> 0.004 s]
> [INFO] shoppinggenie-common ............................... SUCCESS [  
> 4.739 s]
> [INFO] shoppinggenie-android .............................. FAILURE [  
> 1.598 s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  6.463 s
> [INFO] Finished at: 2021-06-10T16:00:00-04:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-android) on 
> project shoppinggenie-android: Execution build-android of goal 
> com.codenameone:codenameone-maven-plugin:7.0.26:build failed: !!! Unable to 
> restart the IEHS App !!!: Error in server build process -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal com.codenameone:codenameone-maven-plugin:7.0.26:build (build-android) 
> on project shoppinggenie-android: Execution build-android of goal 
> com.codenameone:codenameone-maven-plugin:7.0.26:build failed: !!! Unable to 
> restart the IEHS App !!!
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:215)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  
> (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native 
> Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
>     at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> build-android of goal com.codenameone:codenameone-maven-plugin:7.0.26:build 
> failed: !!! Unable to restart the IEHS App !!!
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:148)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  
> (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native 
> Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
>     at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
> Caused by: java.lang.RuntimeException: !!! Unable to restart the IEHS App 
> !!!
>     at com.codename1.ant.AntExecutor.executeAntTask (AntExecutor.java:69)
>     at com.codename1.maven.CN1BuildMojo.createAntProject 
> (CN1BuildMojo.java:403)
>     at com.codename1.maven.CN1BuildMojo.executeImpl (CN1BuildMojo.java:119)
>     at com.codename1.maven.AbstractCN1Mojo.execute 
> (AbstractCN1Mojo.java:195)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  
> (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native 
> Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
>     at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
> Caused by: org.apache.tools.ant.BuildException: Error in server build 
> process
>     at com.codename1.build.client.CodeNameOneBuildTask.execute 
> (CodeNameOneBuildTask.java:569)
>     at org.apache.tools.ant.UnknownElement.execute 
> (UnknownElement.java:292)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native 
> Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.apache.tools.ant.dispatch.DispatchUtils.execute 
> (DispatchUtils.java:99)
>     at org.apache.tools.ant.Task.perform (Task.java:350)
>     at org.apache.tools.ant.Target.execute (Target.java:449)
>     at org.apache.tools.ant.Target.performTasks (Target.java:470)
>     at org.apache.tools.ant.Project.executeSortedTargets 
> (Project.java:1401)
>     at org.apache.tools.ant.Project.executeTarget (Project.java:1374)
>     at com.codename1.ant.AntExecutor.executeAntTask (AntExecutor.java:64)
>     at com.codename1.maven.CN1BuildMojo.createAntProject 
> (CN1BuildMojo.java:403)
>     at com.codename1.maven.CN1BuildMojo.executeImpl (CN1BuildMojo.java:119)
>     at com.codename1.maven.AbstractCN1Mojo.execute 
> (AbstractCN1Mojo.java:195)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  
> (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native 
> Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
>     at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
>
>
> On Thursday, June 10, 2021 at 1:06:55 PM UTC-4 shannah wrote:
>
>> That won't be the problem here.  If you're using IntelliJ, add the "-e" 
>> flag to the maven command by choosing "Edit Configurations"
>>
>> [image: image.png]
>>
>> Then select the build target in the left column, and add "-e" to the 
>> "Command line:" field on the right.
>>
>> [image: image.png]
>>
>> You should then see more error details.
>>
>>
>>
>> On Thu, Jun 10, 2021 at 9:48 AM Dennis Rogers <a2nd...@gmail.com> wrote:
>>
>>> I also found this in the output:
>>>
>>> 'build.plugins.plugin.version' for 
>>> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 293, 
>>> column 21
>>>
>>> Sounds like it may be the problem. I'm using Intellij and it shows the 
>>> maven plugin "bundled". 
>>>
>>> On Tuesday, June 8, 2021 at 9:22:29 PM UTC-4 Steve Hannah wrote:
>>>
>>>> What IDE ate you using?  you may need to enable error reporting (-e) in 
>>>> the maven command to see the full stack trace of the error.
>>>>
>>>> On Tue, Jun 8, 2021 at 11:11 AM Dennis Rogers <a2nd...@gmail.com> 
>>>> wrote:
>>>>
>>>>> Tried that but no joy.  Any other suggestions?
>>>>>
>>>>> On Monday, June 7, 2021 at 9:20:59 PM UTC-4 Shai Almog wrote:
>>>>>
>>>>>> Try killing Java processes and see if it solves the issue. 
>>>>>>
>>>>>> On Tuesday, June 8, 2021 at 1:05:53 AM UTC+3 a2nd...@gmail.com wrote:
>>>>>>
>>>>>>> Suddenly I've not been able to send builds to the cloud. Nothings 
>>>>>>> changed in the code and I get the error :
>>>>>>>
>>>>>>> Failed to execute goal 
>>>>>>> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-android) 
>>>>>>> on 
>>>>>>> project shoppinggenie-android: Execution build-android of goal 
>>>>>>> com.codenameone:codenameone-maven-plugin:7.0.26:build failed: !!! 
>>>>>>> Unable to 
>>>>>>> restart the IEHS App !!!
>>>>>>>
>>>>>>> Is this an authorization problem ? -Dennis
>>>>>>>
>>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "CodenameOne Discussions" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to codenameone-discu...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/codenameone-discussions/cb10ca40-5407-44b1-91e9-5fb96b2cdb24n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/cb10ca40-5407-44b1-91e9-5fb96b2cdb24n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> -- 
>>>> Steve Hannah
>>>> Software Developer
>>>> Codename One
>>>> http://www.codenameone.com
>>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to codenameone-discu...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/88ea6687-9f6e-414f-bd3c-cdf4a708610cn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/88ea6687-9f6e-414f-bd3c-cdf4a708610cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Web Lite Solutions Corp.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/92d24777-3c8f-43a3-b53e-2741400a270bn%40googlegroups.com.

Reply via email to