OsiSoft AF SDK 2018 SP2 with .NET 5 Application - osisoft

I have an application that was upgraded to .NET 5. However, the OsiSoft AF SDK is still compiled in .NET. I'm getting errors as such:
Method not found: 'System.Security.AccessControl.DirectorySecurity System.IO.DirectoryInfo.GetAccessControl()'.
Is there a way to run AF SDK .NET in .NET Core/.NET 5 applications ? My understanding is AF SDK does not support .NET Core/.NET 5 as of yet.

Related

org/apache/logging/log4j/util/Base64Util.class: Class Version Error Please recompile with supported JDK

/build/Debug/ant/pdm.jar!/META-INF/versions/9/org/apache/logging/log4j/util/Base64Util.class: Class Version Error. Please recompile with a supported JDK or check for an update to DashO which supports the new version.
We are using ant as build tool and Dasho as the code trimming tool.
We are migrating our code from log4j1.x to log4j2.x and we replaced old jar with new Jars(2.xapi & 2.xcore)
Since then after adding the libraries itself we are getting this error while building the project,as we are using java 8 and as per official log4j2 documentation any version of lof4j2 above 2.17.1 does support java8
Found this line when searched for this Base64Util.class in the official documentation of 2.x
link
Tried using 2.17.1 && 2.15 && 2.13 but no luck
Why this unsupported JDK is coming even after using java8 in project??
In order to support Java 8 and all later releases the log4j-api and log4j-core artifacts are multi-release jars. The class file that gives you problems uses Java 9 bytecode.
According to their web site DashO does not support multi-release jars.
Remark: removing the Java 9 classes from log4j-api and log4j-core will break logger context selection and location information on JDK 9 and later, so it is not an option.

UnsupportedClassVersionError:

I am a Beginner and When I was creating a Spring starter project in Spring tools Suite4,while running the project.I got this Exception.."UnsupportedClassVersionError:"
I am using Java version,[Console[Build PAth[POM filePOM file](https://i.stack.imgur.com/ubh9M.png)](https://i.stack.imgur.com/2nLgs.png)](https://i.stack.imgur.com/QA10Y.png)
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
I have attached pics of console,pom and build path
I tried to import it to Ecliipse..But it was showing me the Same Exception

WebGl 2 is not defined in Google Chrome despite hardware acceleration enabled

I'm trying to use WebGL 2 on a website but I can seem to get it to work on my PC. Says it's not available. I can't figure out if it's the graphics driver or OpenGL's version, but here's some info. Any help will be highly appreciated.
Here is my hardware.
Chrome version: Version 108.0.5359.98 (Official Build) (64-bit)
lsb_release -a outputs:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Linux Lite 5.6
Release: 20.04
Codename: focal
lspci | grep VGA outputs:
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
glxinfo | grep 'version' outputs:
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL version string: 2.1 Mesa 21.0.3
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
And here are the settings for chrome.
chrome://gpu/:
chrome://flags/:
chrome://settings/system:
Report from WebGL Report
The answer can be found in your printout fragment Max GLES[23] profile version: 2.0, which is confirmed by this tech sheet. So your maximum supported Open GLES version is 2.0 which equals to WebGL (version 1). You would need a graphics controller which supports Open GLES 3.0 as that corresponds to WebGL2.
So, in short -- everything's fine with Chrome, but your hardware resp. its driver doesn't support Open GLES 3 and therefore not WebGL2.

Flutter: Request is taking too long to process

I am running my application in development (debug) mode on local machine so I'm not sure how much this affects network requests. The target device where the app is running is Android emulator. I have an endpoint which fetches some data, this data can be quite large, it's a large-ish JSON that gets parsed into data structure (class) in my application code.
I am experiencing a problem where sometimes these requests time out (my timeout is set at 30s) even though the actual response is less than 5s. I am attaching a screenshot from dev tools where you can see that the duration of the request is 25 seconds which is just too much. I think time to first byte (TTFB) is the actual time before it starts receiving the data, so the server code is not slow. I don't understand how the "end" time is calculated though.
My internet connection (download) is about 50-70Mbit/s (ADSL).
Screenshot:
What do you think could be the cause for such a long duration of request to be completed? Could it be the size of payload? Or does the framework (Flutter) take a long time to process the response?
I'm using dio² http client to make my requests so not sure if that plays any role. I tried optimising the path where I'm converting JSON response payload into data objects (classes) stored in memory¹ but that doesn't seem to help. I don't think I'm using any weird code pattern³ as all of the other parts of my app are performant.
Unfortunately I can't easily reproduce the situation of what the screenshot is displaying but when I tried doing it, the payload size was over 1MB and in that scenario I believe it could be over 2MB which is pretty large for JSON.
flutter doctor -v output:
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.6.1 20G224 darwin-x64, locale en-CZ)
• Flutter version 2.8.1 at /Users/user/fvm/versions/2.8.1
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (6 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/user/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] IntelliJ IDEA Community Edition (version 2020.2.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code (version 1.58.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (2 available)
• SM A505FN (mobile) • XXXXXXX • android-arm64 • Android 11 (API 30)
• Chrome (web) • chrome • web-javascript • Google Chrome 97.0.4692.99
• No issues found!
¹ I receive list of objects in the JSON response. These objects have nested object lists. One of the lists are GPS coordinates that form a path so there can be lot of them. However I need just one list of coordinates from the list of objects so I just dropped the other ones before converting them to my data structures so it basically cuts down 90% of the previous unoptimized size.
² Version 4.0.0
³ It's a regular Flutter app where all widgets come from material.dart module. The network calls are triggered outside of UI by usage of BLoC pattern (via flutter_bloc lib). Each API call has its own event belonging to some BLoC.
The actual API call is performed by a instance of wrapper class that contains an instance of dio client and passes the result to relevant BLoC. The instances of wrapper classes and dio instances are created via dependency injection. Wrapper classes are singletons, dio instances are created once for each of these wrapper classes. The creation of these classes happens before the runApp.

GlassFish 5.0 exception and port 4848 not responding

Yesterday i downloaded GlassFish 5.0 and JDK9. When I'm trying to run server with asadmin start-domain GlassFish send to me exception
When I try to use "asadmin start-domainAfter" I got respond: "Remote server does not listen request on [localhost 4848]. Is the serwer up?"
Any can help me with this? I looked for solution at google, I tried kill process using port 4848, change port 4848 in domain.xml on another one, nothing helps.
It's my firts time with glassfish I don't know what to do. Anyone can help me?
I'm working at windows 7, InteliJ Ultimate 2017.2.4, JRE 1.8 and JDK 9.
GlassFish 5.0 not starting on JDK 9 is a known issue.
GlassFish 5.0 is certified only on JDK 8 (u144) as stated in the release notes:
https://javaee.github.io/glassfish/doc/5.0/release-notes.pdf
I use Windows 10 and I have installed JDK and JRE for version 9 and 8u141, 8u151, 8u144 (installed for test about this problem)
For exception I had had the same problem : the command "asadmin start-version" throw an exception.
Just check the version from CMD console :
C:\Users\xxxxx>**java -version**
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
Problem JAVA_HOME and PATH environment viariables are JDK8u151 ???
To solve the problem, the documentation advice that :
Alternatively, you can specifically set the Java path with the AS_JAVA property in the in the as-install/config/asenv.conf file.
C:\DEVENV\glassfish5\glassfish\config>dir
Le volume dans le lecteur C s’appelle OS
Le numéro de série du volume est 10BF-2BBE
Répertoire de C:\DEVENV\glassfish5\glassfish\config
08/09/2017 07:27 <DIR> .
08/09/2017 07:27 <DIR> ..
12/01/2018 17:44 3 516 asenv.bat
...
Consequently, I add the last line below :
set AS_IMQ_LIB=..\..\mq\lib
set AS_IMQ_BIN=..\..\mq\bin
set AS_CONFIG=..\config
set AS_INSTALL=..
set AS_DEF_DOMAINS_PATH=..\domains
set AS_DEF_NODES_PATH=..\nodes
set AS_DERBY_INSTALL=..\..\javadb
**set AS_JAVA=C:\Program Files\Java\jdk1.8.0_151**
Relaunch CMD console and start server with asadmin start-domain : it works properly....enjoy.
As mentioned above GlassFish 5.0 leverages new features in Java SE 8,
and is certified today on Java SE 8. Even though we have a lot of work
in front of us with the transition to the Eclipse Foundation, our
current intent is to certify Java SE 9 in an upcoming GlassFish 5
release.
JDK 9 should be supported in the next update, i.e. GlassFish 5.0.1
See end of https://blogs.oracle.com/theaquarium/java-ee-8-is-final-and-glassfish-50-is-released
If you are on a mac or linux machine, add the following to config/asenv.conf in your glassfish installation directory.
set AS_JAVA="path to your jdk 8"
For example, in Mac OS it will be
AS_JAVA="/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home"
Anyone having problems with NullPointerException, look out for your system PATH Variables. Be sure that they point to an acceptable JDK (As it was said before: GlassFish 5.0 is certified only to work on JDK 8u144). This NullPointerException is caused by using an incompartible JDK as mentioned here: https://docs.oracle.com/cd/E19226-01/820-7688/gipqi/index.html
In my case the PATH variable was correctly pointing to java8u144 bin, but my PATH also contained a pointer to C:\ProgramData\Oracle\Java\javapath. And someway an old version of java SDK was stored on \ProgramData\Oracle so GlassFish was using this old version of java as SDK.