Many years ago, I used "appengine-java-sdk-1.9.22" to build my webapp which uses some datastore
Now, I updated my app on eclipse & when deployed, it said:
Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/deploy?app_id=speaklikewater&version=1&
401 Unauthorized
Your version of the App Engine SDK is out-of-date. Please update your SDK at https://cloud.google.com/appengine/docs/standard/java/download#appengine_sdk and your Maven plugin, if necessary, according to the instructions at https://cloud.google.com/appengine/docs/standard/java/tools/maven
at com.google.appengine.tools.admin.OAuth2ServerConnection.doHandleSendErrors(OAuth2ServerConnection.java:65)
at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:373)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:317)
at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:296)
at com.google.appengine.tools.admin.LoggingClientDeploySender.send(LoggingClientDeploySender.java:47)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:1134)
at com.google.appengine.tools.admin.AppVersionUpload.deploy(AppVersionUpload.java:982)
at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:865)
at com.google.appengine.tools.admin.AppVersionUpload.uploadFilesTransaction(AppVersionUpload.java:223)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:197)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:580)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:65)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:158)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Now, I used the almost lastest "sdk appengine-java-sdk-1.9.54" (see the picture below), but still get the same error
Note:
I changed to new SDK by going to Window==> Preferences==> Google ===>App Engine & selected "appengine-java-sdk-1.9.54"
If I use "appengine-java-sdk-1.9.64", I get this error "Internal Error":
SO, I decided to use "appengine-java-sdk-1.9.54" because some people also have "Internal Error" & they tried using lower version & it worked.
I am not sure how to fix it.
As stated in the Public Issue [1], Google Plugin is deprecated, you need to migrate [2] to Google Tools.
Here you have the quickstart for you to have a better idea on how GAE currently works with Eclipse [3].
Related
I followed all the steps in https://cloud.google.com/vision/docs/ocr and when executing the code I get the following Exception.
Full Stacktrace:
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;CLjava/lang/Object;)V
at io.grpc.Metadata$Key.validateName(Metadata.java:742)
at io.grpc.Metadata$Key.<init>(Metadata.java:750)
at io.grpc.Metadata$Key.<init>(Metadata.java:668)
at io.grpc.Metadata$AsciiKey.<init>(Metadata.java:959)
at io.grpc.Metadata$AsciiKey.<init>(Metadata.java:954)
at io.grpc.Metadata$Key.of(Metadata.java:705)
at io.grpc.Metadata$Key.of(Metadata.java:701)
at com.google.api.gax.grpc.GrpcHeaderInterceptor.<init>(GrpcHeaderInterceptor.java:60)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:228)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.access$1500(InstantiatingGrpcChannelProvider.java:71)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider$1.createSingleChannel(InstantiatingGrpcChannelProvider.java:202)
at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:72)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:209)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:192)
at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:155)
at com.google.cloud.vision.v1.stub.GrpcImageAnnotatorStub.create(GrpcImageAnnotatorStub.java:117)
at com.google.cloud.vision.v1.stub.ImageAnnotatorStubSettings.createStub(ImageAnnotatorStubSettings.java:156)
at com.google.cloud.vision.v1.ImageAnnotatorClient.<init>(ImageAnnotatorClient.java:136)
at com.google.cloud.vision.v1.ImageAnnotatorClient.create(ImageAnnotatorClient.java:117)
at com.google.cloud.vision.v1.ImageAnnotatorClient.create(ImageAnnotatorClient.java:108)
I tried using different Guava (22.0 and 23.6) and HttpCore (5.0 and 4.4.8) versions than the ones already being used on the Google Cloud Platform Libraries (28.2 and 4.4.12) but got no luck.
I'm using Eclipse and used the Eclipse and followed these steps: https://cloud.google.com/eclipse/docs/libraries
As you noted, this kind of errors typically indicate version mismatches. You haven't said whether you're using Maven or the Cloud Tools for Eclipse native project. I'd recommend you use a Maven setup so that you can take advantage of the Cloud Libraries BOM. That should eliminate these version mismatches.
That stacktrace indicates your classpath includes an old version of Guava, or the OCR client, or both. Without a complete project to inspect, I can't say exactly how you're getting that old version--it depends on how you've configured the project--but that is definitely what's happening.
Ok, I made this run cloning the whole java vision project from GitHub: https://github.com/googleapis/java-vision.
However I still had to add some extra jars since path errors existed.
I wanted to start developing for the Sony Smartwatch 2 I just got.
This is where the problems started. I found many official articles about downloading and setting up the Sony Add-on SDK.
But here's the dark side:
It is not available anymore from Sony's dev site, so I could not add it by using the Android SDK manager .
After lots of sweat I managed to find it only here.
Which is the 2.0 version.
I unzipped it into my /[SDK]/add-ons/sony_add-on_sdk_2_0 folder, and set up Eclipse (4.6.3) with the following SDK manager settings:
SDK settings
First it reported the Sony SDK broken, but I found in another topic that I should add a source.properties file, in order to make it work, which has the following header:
### Android Tool: Source of this archive.
#Wed Feb 28 14:14:39 CET 2018
Addon.NameDisplay=SONY ADD-On SDK
Addon.NameId=sony_add_on
Addon.VendorDisplay=SONY
Addon.VendorId=sony
AndroidVersion.ApiLevel=16
Pkg.Desc=Android + Google APIs
Then it became visible for the Eclipse
When I try to build the SamplePreferenceActivity it is imported with SmartExtensionsAPI and SmartExtensionsUtils but one after the other as I read this can make errors too, in the following order:
API
Utils
Sample
which has the following properties:
Properties for SmartExtensionAPI
Properties for SmartExtensionUtils
With these settings I still get error in:
/SmartExtensionUtils/src/com/sonyericsson/extras/liveware/extension/util/widget/NotificationWidgetExtension.java
saying
SmartWatchNotificationWidgetImage cannot be resolved to a type
and in
/SamplePreferenceActivity/res/layout/item_gallery.xml
saying:
Couldn't resolve resource #style/Widget.Holo.ActionMode Couldn't
resolve resource #dimen/smart_watch_2_control_width You must supply a
layout_width attribute. Couldn't resolve resource
#dimen/smart_watch_2_text_size_large
"#dimen/smart_watch_2_text_size_large" in attribute "textSize" is not
a valid format. Couldn't resolve resource
#dimen/smart_watch_2_text_size_medium
"#dimen/smart_watch_2_text_size_medium" in attribute "textSize" is not
a valid format.
What am I missing here? Should I use a completely different setup? Is this because I had to manually add the SDK to Eclipse? If you need anything else to understand the problem properly, feel free to ask me, thanks for helping me!
I can compile and run my game using LibGDX 0.9.9 and RoboVM 0.0.7
I have been able to build an ipa for app store submission. Uploading my app with Application Loader, I get an error saying: This bundle is invalid. Apple is currently not accepting applications built with this version of Xcode.
Adding
<key>DTXcode</key>
<string>0502</string>
<key>DTXcodeBuild</key>
<string>5A3005</string>
to my info.plist, I get the same app store submission error.
I have tried compiling my project with every combination of the following libraries
LibGDX 0.9.9
LibGDX Nightly - 02/13/14
RoboVM 0.0.8
RoboVM 0.0.9
RoboVM 0.0.10-SNAPSHOT
With any version of RoboVM greater than 0.0.7, I get the following error:
java.lang.IllegalArgumentException: No #Marshaler found for parameter 1 of #Callback method <com.badlogic.gdx.backends.iosrobovm.objectal.AVAudioPlayerDelegate$Callbacks: void didFinishPlaying(com.badlogic.gdx.backends.iosrobovm.objectal.AVAudioPlayerDelegate,org.robovm.objc.Selector,org.robovm.cocoatouch.foundation.NSObject,boolean)>
at org.robovm.compiler.MarshalerLookup.findMarshalerMethod(MarshalerLookup.java:167)
at org.robovm.compiler.BroMethodCompiler.getParameterType(BroMethodCompiler.java:492)
at org.robovm.compiler.BroMethodCompiler.getBridgeOrCallbackFunctionType(BroMethodCompiler.java:513)
at org.robovm.compiler.BroMethodCompiler.getCallbackFunctionType(BroMethodCompiler.java:505)
at org.robovm.compiler.CallbackMethodCompiler.callback(CallbackMethodCompiler.java:78)
at org.robovm.compiler.CallbackMethodCompiler.compileCallback(CallbackMethodCompiler.java:107)
at org.robovm.compiler.CallbackMethodCompiler.doCompile(CallbackMethodCompiler.java:74)
at org.robovm.compiler.AbstractMethodCompiler.compile(AbstractMethodCompiler.java:74)
at org.robovm.compiler.ClassCompiler.callbackMethod(ClassCompiler.java:1070)
at org.robovm.compiler.ClassCompiler.compile(ClassCompiler.java:566)
at org.robovm.compiler.ClassCompiler.compile(ClassCompiler.java:283)
at org.robovm.compiler.AppCompiler.compile(AppCompiler.java:198)
at org.robovm.compiler.AppCompiler.compile(AppCompiler.java:216)
at org.robovm.compiler.AppCompiler.main(AppCompiler.java:438)
I'm at a loss. I just want to submit my app to the Apple App Store. RoboVM 0.0.7 doesn't seem to work and I can't compile my project with any newer version of RoboVM. Let me know if you need any more information.
How can I submit my app using RoboVM 0.0.7 (emulate Xcode 5.2)?
or
How can I fix my error and compile with >0.0.7?
The bundle is invalid problem was fixed in RoboVM 0.0.9 so you must use at least that version. The cause of the No #Marshaler found error is probably because you have an old version of robovm-cocoatouch.jar in your classpath somewhere. Make sure you only have jars from RoboVM 0.0.9 in your Eclipse classpath.
hi i was referring the following document for Web-based spreadsheets with OpenOffice.org and Dojo
http://www.javaworld.com/javaworld/jw-05-2008/jw-05-spreadsheets.html?page=1
I am developing such thing for first time..
I created the java classes but when i compile the class 'SpreadsheetDoc.java' i get the following error :
com.sun.star.uno does not exists
I may be skipping some step by mistake dont know what.
tried setting the class path for openoffice/program folder but still getting problem
I am using apache tomcat 7.0, Open office 3, JDK 6.
How can i get the proper import for the namespace.
com.sun.star.uno
I think that it could be some problem related to
juh.jar
jurt.jar
ridl.jar
unoil.jar
reference but not sure...
Have you installed the OpenOffice SDK?
This is an update to this question that I asked earlier today.
Brief reiteration of the problem: I have an Android app that requires use of Amazon's Android SDK for AWS. I add the necessary libraries (JAR files) to my Eclipse build path. However, when I run the app, the app crashes with a NoClassDefFoundError.
After a bit of investigation, I have isolated the code that causes the error. I have made a simple dummy Android app that uses the apparently buggy code. The source code for the single Activity is here. And here is the logcat output.
I noticed a couple of odd things about this. If the library wasn't being added correctly, it should fail at line 34:
credentials = new BasicAWSCredentials( accessKeyId, secretKey );
But it doesn't. Instead, it fails at line 62, which chains up to line 48.
Line 62:
sdb = new AmazonSimpleDBClient( credentials );
Line 48 (with part of 47):
list.setAdapter(new ArrayAdapter<String>(this, R.layout.list_item, getInstance().listDomains().getDomainNames()));
The funny thing is, the sample project provided with the SDK works perfectly. Here is the code for SimpleDB, which is one of the source files. I have essentially copied and pasted some of the code calling for access to Amazon's SimpleDB, yet mine fails and the sample doesn't.
So, anyone have any ideas?
Turns out, the jar files in the AWS SDK weren't properly built. It appears that they missed an old Apache library that is no longer publicly distributed. Amazon has updated the download, and the libraries no longer throw a NoClassDefFoundError.
Source: Forum post on the AWS mobile dev forum
In the most cases NoClassDefFoundError means that duplicate versions of the class are on the classpath. I think you should check your dependencies/libraries for duplicate .class files. Please check this file first in your jar-s: org.apache.commons.httpclient.params.HttpClientParams
Hope it helps!