Error "Unauthorized" when updating record from smart device grid in Genexus - genexus

I have an android app created with Genexus 16U11. In this, I have a grid created with work with smart device. I can insert records but when I try to delete or update them, after I confirm I get the error "Unauthorized", no other explanations. It works in local and in our production server, but not in our test server. What could be causing this problem?
(I know there is a similar question of mine, but that time I didn't solve and the problem returned similar, I have more info this time)
I tried to set debugging in the client.log file but it remains blank. I tried testing with Android Studio and Logcat and got this
2022-06-24 12:19:46.028 4745-4893/com.artech.rts.fotointerventi W/DefaultRequestDirector: Authentication error: Unable to respond to any of these challenges: {}
2022-06-24 12:19:46.031 4745-4893/com.artech.rts.fotointerventi W/System.err: org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONArray
2022-06-24 12:19:46.032 4745-4893/com.artech.rts.fotointerventi W/System.err: at org.json.JSON.typeMismatch(JSON.java:111)
2022-06-24 12:19:46.033 4745-4893/com.artech.rts.fotointerventi W/System.err: at org.json.JSONArray.<init>(JSONArray.java:96)
2022-06-24 12:19:46.033 4745-4893/com.artech.rts.fotointerventi W/System.err: at org.json.JSONArray.<init>(JSONArray.java:108)
2022-06-24 12:19:46.033 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.common.ServiceErrorParser.parseBody(ServiceErrorParser.java:74)
2022-06-24 12:19:46.033 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.common.ServiceErrorParser.parse(ServiceErrorParser.java:38)
2022-06-24 12:19:46.036 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.common.ServiceHelper.responseToServiceResponse(ServiceHelper.java:484)
2022-06-24 12:19:46.036 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.common.ServiceHelper.doServerRequest(ServiceHelper.java:469)
2022-06-24 12:19:46.036 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.common.ServiceHelper.doServerRequest(ServiceHelper.java:440)
2022-06-24 12:19:46.037 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.common.ServiceHelper.putJson(ServiceHelper.java:432)
2022-06-24 12:19:46.037 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.common.ServiceHelper.updateEntityData(ServiceHelper.java:258)
2022-06-24 12:19:46.037 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.layers.RemoteBusinessComponent.callService(RemoteBusinessComponent.java:194)
2022-06-24 12:19:46.037 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.layers.RemoteBusinessComponent.save(RemoteBusinessComponent.java:76)
2022-06-24 12:19:46.037 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.fragments.LayoutFragmentEditBC$SaveActionTask.saveBCAndMedia(LayoutFragmentEditBC.java:160)
2022-06-24 12:19:46.037 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.fragments.LayoutFragmentEditBC$SaveActionTask.doInBackground(LayoutFragmentEditBC.java:142)
2022-06-24 12:19:46.038 4745-4893/com.artech.rts.fotointerventi W/System.err: at com.artech.fragments.LayoutFragmentEditBC$SaveActionTask.doInBackground(LayoutFragmentEditBC.java:69)
2022-06-24 12:19:46.038 4745-4893/com.artech.rts.fotointerventi W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:333)
2022-06-24 12:19:46.038 4745-4893/com.artech.rts.fotointerventi W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2022-06-24 12:19:46.038 4745-4893/com.artech.rts.fotointerventi W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
2022-06-24 12:19:46.038 4745-4893/com.artech.rts.fotointerventi W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
2022-06-24 12:19:46.039 4745-4893/com.artech.rts.fotointerventi W/System.err: at java.lang.Thread.run(Thread.java:764)
from what I can understand the two servers have the same configurations, what's missing?

Maybe you are missing registering SVC extensions, this is done by the following command:
"%WINDIR%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" –i
Additionally, you need to check in Turn Windows Features On or Off:
Windows Communications Foundations HTTP Activation
Windows Communications Foundations non-HTTP Activation
And in .NET Framework 4.5 advanced Services > WCFServices
HTTPActivation
You can read about the most common errors in:
https://wiki.genexus.com/commwiki/servlet/wiki?18398,URLRewrite+-+Common+issues
You can also check if REST services are working properly with the following .xpz:
https://wiki.genexus.com/commwiki/servlet/wiki?18365,REST+Web+Services+Installation+Troubleshooting

I later found out that it was an IIS related problem
.
I can't find the link that helped me
(I found it https://social.msdn.microsoft.com/Forums/en-US/2f952c19-a209-4df5-8c6d-8de5382ad31e/how-to-enable-put-and-delete-verbs-on-iis-7?forum=iisconfiguationandscripting#f304b2a4-1733-47cb-91e8-84dbc8ad53a6),
but the problem was that the UPDATE and DELETE verbs were not accepted (similar problem here PUT + DELETE Http Verbs returning 401/405 from API on shared hosting webserver). Entering the IIS Application Authentication and enabling Forms Authentication solved the problem.

Related

FNRPE2131090482E - Server is being initialized. Retry the operation

I am using Filnet 5.2.1. I have everything working fine for years.
but suddenly today when trying to connect to process engine from workplace application I am getting the error :
[FNRPE2131090482E]Server is being initialized. Retry the operation.
The Process Engine server is not yet initialized. The software automatically retries your operation but if the problem persists, try again.
at filenet.jpe.rpc.appserver.PEEngineServlet.<clinit>(PEEngineServlet.java:512)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at <unknown class>.<unknown method>(Unknown Source)
at java.lang.Class.forNameImpl(Native Method)
at <unknown class>.<unknown method>(Unknown Source)
at java.beans.Beans.instantiate(Beans.java:189)
at java.beans.Beans.instantiate(Beans.java:80)
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1486)
at <unknown class>.<unknown method>(Unknown Source)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1475)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1354)
at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:623)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:589)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:425)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1177)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:776)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2195)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5477)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5603)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2200)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:435)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:378)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:126)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:984)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:502)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865)
Edit
Looking at pesvr_system.log I found the following :
RPCHandler PEServer.init [Error] FNRPE2131090405E Start up PE server failed; Exception: Unexpected exception -- see chained exception
at filenet.jpe.general.RuntimeServiceException.ThrowUnchecked(RuntimeServiceException.java:93)
at filenet.jpe.rpc.http.HTTPListenerThread.init(HTTPListenerThread.java:144)
at filenet.jpe.rpc.main.PEServer.execute(PEServer.java:365)
at filenet.jpe.rpc.appserver.PEEngineServlet$ServerStartupThread.run(PEEngineServlet.java:120)
PEServer.init [Error] Error starting listening on 9092; Exception:
Caused by: java.net.BindException: Address already in use: JVM_Bind
2021/02/11 11:35:14.937+0300 RPCHandler 7adf27d9 [Info] PEServer: shutting down...
2021/02/11 11:35:14.937+0300 RPCHandler 7adf27d9 [Info] Component Manager.Shutdown...
2021/02/11 11:35:14.937+0300 RPCHandler 7adf27d9 [Info] PEServer: shutting down worker threads..
2021/02/11 11:35:14.953+0300 RPCHandler 7adf27d9 [Info] PEServer: Finished shutting down.
Issue was fixed by restoring old backup for filenet GCD database.

While deploying war File into tomcat getting below error

When i try to deploy war file into tomcat which hosted on AWS, I am getting below error. Before it was working fine, recently facing this issue, Please help me in resolving this issue.
Thanks.
20-Nov-2019 05:11:41.728 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/apis]
20-Nov-2019 05:11:41.779 WARNING [Catalina-utility-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [apis] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
20-Nov-2019 05:12:11.843 INFO [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/u01/tomcat/webapps/apis.war]
20-Nov-2019 05:12:13.962 SEVERE [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/u01/tomcat/webapps/apis.war]
java.lang.IllegalStateException: Error starting child
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1620)
20-Nov-2019 05:24:35.542 INFO [Catalina-utility-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
20-Nov-2019 05:24:35.564 INFO [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/u01/tomcat/webapps/apis.war] has finished in [43,926] ms
20-Nov-2019 05:25:11.560 SEVERE [ajp-nio-8009-exec-143] org.apache.coyote.ajp.AjpMessage.processHeader Invalid message received with signature [18245]
20-Nov-2019 05:25:11.850 SEVERE [ajp-nio-8009-exec-146] org.apache.coyote.ajp.AjpMessage.processHeader Invalid message received with signature [5635]
20-Nov-2019 13:22:01.921 INFO [http-nio-80-exec-173] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:415)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:292)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
20-Nov-2019 13:44:16.665 SEVERE [https-jsse-nio-443-exec-531] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.672 SEVERE [https-jsse-nio-443-exec-532] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.678 SEVERE [https-jsse-nio-443-exec-533] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.684 SEVERE [https-jsse-nio-443-exec-535] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.691 SEVERE [https-jsse-nio-443-exec-529] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.699 SEVERE [https-jsse-nio-443-exec-538] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.705 SEVERE [https-jsse-nio-443-exec-537] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.711 SEVERE [https-jsse-nio-443-exec-534] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.717 SEVERE [https-jsse-nio-443-exec-536] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.723 SEVERE [https-jsse-nio-443-exec-530] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.729 SEVERE [https-jsse-nio-443-exec-531] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.735 SEVERE [https-jsse-nio-443-exec-532] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.741 SEVERE [https-jsse-nio-443-exec-533] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
20-Nov-2019 13:44:16.746 SEVERE [https-jsse-nio-443-exec-535] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored
java.lang.NullPointerException
I think your problem is here:
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
This may occurr when requests are made between two different application protocols (HTTP and HTTPs). Try using HTTP everywhere to see if this was the source of the problem then properly configure all your servers to work with HTTPs if that is what you want

unable to run ImportSDKDemo it fails to load ffmepg

I am unable to run ImportSDKDemo it fails to load ffmepg.
hello I am unable to run this demo no matter what sdk version (24, 26, 28) I am using.
I have installed ffmpeg
`E/sdk: v19 install
V/sdk: DexInstall end
I/InstantRun: starting instant run server: is main process
I/art: Starting a blocking GC Instrumentation
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
D/: HostConnection::get() New Host Connection established 0xe4248970, tid 2143
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
D/libEGL: loaded /system/lib/egl/libEGL_emulation.so
D/libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so
D/libEGL: loaded /system/lib/egl/libGLESv2_emulation.so
D/: HostConnection::get() New Host Connection established 0xe4248b20, tid 2165
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
E/linker: /data/app/com.dji.importSDKDemo-1/lib/x86/libffmpeg.so: has text relocations
W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.dji.importSDKDemo-1/lib/x86/libffmpeg.so: has text relocations
W/System.err: at java.lang.Runtime.loadLibrary0(Runtime.java:977)
at java.lang.System.loadLibrary(System.java:1530)
at dji.midware.natives.SDKRelativeJNI.<clinit>(Unknown Source)
at dji.midware.natives.SDKRelativeJNI.native_getXXXX(Native Method)
at com.dji.g.a.a.c.b(Unknown Source)
at dji.midware.d.b(Unknown Source)
at dji.sdk.sdkmanager.DJISDKManager.<clinit>(Unknown Source)
W/System.err: at dji.sdk.sdkmanager.DJISDKManager.getInstance(Unknown Source)
at com.dji.importSDKDemo.MainActivity$1.run(MainActivity.java:122)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
D/SDKRelativeJNI: Couldn't load lib
E/art: No implementation found for byte[] dji.midware.natives.SDKRelativeJNI.native_getXXXX(java.lang.String) (tried Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX and Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX__Ljava_lang_String_2)
E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.dji.importSDKDemo, PID: 2143
java.lang.UnsatisfiedLinkError: No implementation found for byte[] dji.midware.natives.SDKRelativeJNI.native_getXXXX(java.lang.String) (tried Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX and Java_dji_midware_natives_SDKRelativeJNI_native_1getXXXX__Ljava_lang_String_2)
at dji.midware.natives.SDKRelativeJNI.native_getXXXX(Native Method)
at com.dji.g.a.a.c.b(Unknown Source)
at dji.midware.d.b(Unknown Source)
at dji.sdk.sdkmanager.DJISDKManager.<clinit>(Unknown Source)
at dji.sdk.sdkmanager.DJISDKManager.getInstance(Unknown Source)
at com.dji.importSDKDemo.MainActivity$1.run(MainActivity.java:122)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)`
Please help
Thanks
the Android ImportSDKDemo is related to this tutorial: https://developer.dji.com/mobile-sdk/documentation/application-development-workflow/workflow-integrate.html#android-studio-project-integration , you can follow it to learn how to import the Android SDK.
If you just want to run the demo, just download the whole project from Github: https://github.com/DJI-Mobile-SDK-Tutorials/Android-ImportAndActivateSDKInAndroidStudio and replace with your applied App key in the AndroidManifest.xml file to run it directly. No need to install the ffmpeg. It works on my side.

[DJI-SDK][Android] NEW v3 SDK Demo is not working

i downloaded the new SDK demo (v3) from github (https://github.com/dji-sdk/Mobile-SDK-Android) and open the project with Android Studio (1.5.1).
The import goes very well and all looks fine.
I changed nothing on the code or on the settings, except the dji app key, but when i'll try to start the application (on a Nexus 9 with Android 6) i get the following messages within the android monitor:
01-13 21:57:06.052 com.dji.sdk.sample I/art: Late-enabling -Xcheck:jni
01-13 21:57:06.129 com.dji.sdk.sample D/FPVController: try to load libstlport_shared.so
01-13 21:57:06.132 com.dji.sdk.sample D/FPVController: try to load libdjivideo.so
01-13 21:57:06.139 com.dji.sdk.sample E/linker: /data/app/com.dji.sdk.sample-1/lib/arm/libdjivideo.so: has text relocations
01-13 21:57:06.139 com.dji.sdk.sample E/FPVController: Couldn't load lib
01-13 21:57:06.192 com.dji.sdk.sample E/art: No implementation found for int dji.midware.natives.FPVController.native_init(java.lang.Object) (tried Java_dji_midware_natives_FPVController_native_1init and Java_dji_midware_natives_FPVController_native_1init__Ljava_lang_Object_2)
01-13 21:57:06.192 com.dji.sdk.sample D/AndroidRuntime: Shutting down VM
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: java.io.FileNotFoundException: /storage/emulated/0/DJI/com.dji.sdk.sample/LOG/CRASH/crash-2016-01-13-21-57-06.txt: open failed: ENOENT (No such file or directory)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at libcore.io.IoBridge.open(IoBridge.java:452)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:127)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at dji.publics.b.f.b(Unknown Source)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at dji.publics.b.f.a(Unknown Source)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at dji.publics.b.f.uncaughtException(Unknown Source)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at libcore.io.Posix.open(Native Method)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: at libcore.io.IoBridge.open(IoBridge.java:438)
01-13 21:57:06.199 com.dji.sdk.sample W/System.err: ... 8 more
01-13 21:57:06.200 com.dji.sdk.sample E/DJICrashHandler: uncaughtException 2
01-13 21:57:06.200 com.dji.sdk.sample E/DJICrashHandler: uncaughtException 3
01-13 21:57:06.226 com.dji.sdk.sample I/onLoad: loaded onLoad.cpp :JNI_OnLoad() go to end
01-13 21:57:06.226 com.dji.sdk.sample D/GroudStation: load lib suc
01-13 21:57:06.234 com.dji.sdk.sample D/DJIGimbalParamInfoManager: readToMemory size = 19
01-13 21:57:06.300 com.dji.sdk.sample D/DJIFlycParamInfoManager: readToMemory size = 583
01-13 21:57:06.401 com.dji.sdk.sample E/DJICrashHandler: uncaughtException 4
01-13 21:57:06.402 com.dji.sdk.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dji.sdk.sample, PID: 3145 java.lang.UnsatisfiedLinkError: No implementation found for int dji.midware.natives.FPVController.native_init(java.lang.Object) (tried Java_dji_midware_natives_FPVController_native_1init and Java_dji_midware_natives_FPVController_native_1init__Ljava_lang_Object_2)
at dji.midware.natives.FPVController.native_init(Native Method)
at dji.midware.data.manager.P3.ServiceManager.<init>(Unknown Source)
at dji.midware.data.manager.P3.ServiceManager.getInstance(Unknown Source)
at dji.sdk.SDKManager.DJISDKManager.initParams(Unknown Source)
at dji.sdk.SDKManager.DJISDKManager.initSDKManager(Unknown Source)
at com.dji.sdk.sample.common.DJISampleApplication.onCreate(DJISampleApplication.java:71)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-13 21:57:31.447 com.dji.sdk.sample I/Process: Sending signal. PID: 13145 SIG: 9
and the app will be closed directly on the android tablet.
Can anybody help me and tell me what im doing wrong? And why it is not possible to just download and start the sdk demo?
Thanks in advance!
Regards
Problem was the Android version within the App, because the SDK Lib is build with android level 22 and the app was build with android level 23.
After reducing the app to version 22 the app is working!
Please check the Identification Code when you apply for the App Key on DJI Developer User Center, it should be com.dji.sdk.sample. For more info, please check the DJI Android SDK Github Page, you can follow the guides there. Hope this help!

WAS 6.1, Windows 7, Error Starting and Stopping Server

Hi I had WAS 6.1 running on Windows 7 for 3-4 months without a problem and then one day it started stalling when I stopped it and it wouldn’t start backup. That has been 2 months ago or so. I have uninstalled it and reinstalled it 5 or 6 times to try and resolve the issue with no luck; same symptoms.
When I try and start the server sometimes it works and other times it doesn’t. When it doesn’t I get the following exception:
Exception com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host PHXJ05308513.ads.xxx.com at port 8880
I have tried to go into servers.xml and change that port but it seems to have no effect. I have tried to delete the .pid file before starting as well (in the logs folder for the profile).
In addition, when I attempt to create a datasource connection (that I know works) I get :
Exception attempting to get free port for status socket java.net.BindException: Address already in use: NET_Bind
I have also seen CORBA errors in the log while trying to troubleshoot this. I have read enough to know that there is a networking conflict somewhere, but I have tried many of the solutions and they don't resolve the issue.
Start Server Stack Trace:
[6/29/15 18:29:21:102 GMT] 0000000a AdminTool A ADMU3100I: Reading configuration for server: server1
[6/29/15 18:29:23:741 GMT] 0000000a AdminTool A ADMU3012E: Exception attempting to get free port for status socket Address already in use: NET_Bind
[6/29/15 18:29:23:741 GMT] 0000000a AdminTool E ADMU3012E: Exception attempting to get free port for status socket java.net.BindException: Address already in use: NET_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398)
at java.net.ServerSocket.bind(ServerSocket.java:331)
at java.net.ServerSocket.<init>(ServerSocket.java:197)
at java.net.ServerSocket.<init>(ServerSocket.java:109)
at com.ibm.ws.management.tools.AdminTool.initStatusPort(AdminTool.java:983)
at com.ibm.ws.management.tools.AdminTool.getStatusPort(AdminTool.java:964)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:282)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
[6/29/15 18:29:25:441 GMT] 0000000a AdminTool A ADMU3200I: Server launched. Waiting for initialization status.
[6/29/15 18:29:25:441 GMT] 0000000a WsServerLaunc E ADMU3002E: Exception attempting to process server server1
[6/29/15 18:29:25:441 GMT] 0000000a WsServerLaunc E ADMU3007E: Exception java.lang.NullPointerException
at com.ibm.ws.management.tools.WsServerController.waitForServerInit(WsServerController.java:208)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:310)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
[6/29/15 18:29:25:441 GMT] 0000000a AdminTool E ADMU0111E: Program exiting with error: java.lang.NullPointerException
at com.ibm.ws.management.tools.WsServerController.waitForServerInit(WsServerController.java:208)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:310)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
[6/29/15 18:29:25:457 GMT] 0000000a AdminTool A ADMU0111E: Program exiting with error: java.lang.NullPointerException
at com.ibm.ws.management.tools.WsServerController.waitForServerInit(WsServerController.java:208)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:310)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)
Stop Server Stack Trace:
[6/29/15 18:31:28:858 GMT] 0000000a WsServerStop E ADMU3002E: Exception attempting to process server server1
[6/29/15 18:31:28:859 GMT] 0000000a WsServerStop E ADMU3007E: Exception com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host PHXJ05308513.ads.xxxx.com at port 8881.
[6/29/15 18:31:28:860 GMT] 0000000a WsServerStop A ADMU3007E: Exception com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host PHXJ05308513.ads.xxxx.com at port 8881.
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:479)
at com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:372)
at com.ibm.ws.management.tools.LaunchUtils.getAdminClient(LaunchUtils.java:312)
at com.ibm.ws.management.tools.WsServerStop.runTool(WsServerStop.java:325)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:261)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerStop.main(WsServerStop.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:245)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:73)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:331)
... 25 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.BindException: Address already in use: NET_Bind; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.BindException: Address already in use: NET_Bind]
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:338)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.<init>(SOAPConnectorClient.java:175)
... 30 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.net.BindException: Address already in use: NET_Bind; targetException=java.lang.IllegalArgumentException: Error opening socket: java.net.BindException: Address already in use: NET_Bind]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source)
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPConnectorClient.java:303)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:296)
... 31 more
Use the netstat command and search on all the default ports assigned to your JVM. This way you can see if one of the several ports that the JVM uses is being used by some other app. It may not be only your soap port causing the issue, but one of the many other defined ports on the container. You can also try and telnet to all the JVM ports in order to see if another app is listening on that specific port.

Resources