I downloaded SocketTest project and made some changes to read data from MS SQL database. Added external library:
But I'm getting java.sql.SQLException: No suitable driver found... when I run the project.
I'm sure there is no mistake in my source code. Because I tested my class on alternate project. It's running smoothly. But I wonder why MS SQL library can't be seen even after I add that.
I also tried to use the newest version of MS SQL library but still no success.
I also tried to analyze project.xml file. But I guess solution is not there.
Please help me to solve this issue.
Thanks in advance.
Solution has been found. build.xml file has been cleared and copied from newly created NetBeans project.
Related
I'm in the process of migration a XamarinForms 5 app to MAUI and the latest error I get is
The Java type `mono.android.support.v4.media.session.MediaSessionCompat_OnActiveChangeListenerImplementor` is generated by more than one managed type
Searching online, so far I think it is because the app is using Android.Support.V4 when it should only be using AndroidX, causing the duplicate to be generated as AndroidX replaces Support.V4.
However I cannot figure out how to remove the Support.v4 package because the only reference to it is an implicit reference by an SDK which I cannot remove ( see screenshot below)
The project file (MAUI) only has these package references
Any help greatly appreciated.
Thanks
I'll answer my own question as I managed to figure out the issue after a solid several hours long session.
No packages needed to be removed. Somehow I had managed to install a version of
Birdie.Plugin.FirebasePushNotification from 2020 , instead of `Plugin.FirebasePushNotification', the current version.
The solution was to remove that old package and install the correct once which made the error go away.
I am junior java developer and I am trying to test a data pipeline project given in this link
> https://northconcepts.com/docs/examples/read-a-csv-file/
in my local machine.
I get many errors that are generated such as :
Description Resource Path Location Type The import
com.northconcepts.datapipeline.core.DataEndpoint cannot be
resolved ReadCsvFile.java /ReadCSVFile/src/PipelineCSV line 6 Java
Problem
So, I think that I need to import jar files which are related to the imported libraries given in the code.
The problem is that I can not find online any jar file related to the northconcepts.datapipeline libraries to download and work with!
Any help, please ?
The library is available here but you need to register to download it (and pay for it, if you want something other than the free express version).
You can test the code by following the getting started guide below to configure Maven/Gradle and get a license. It should be pretty quick.
https://northconcepts.com/docs/user-guide/#getting-started
The examples are also on GitHub.
I have these CLR types installed on my local https://puu.sh/yEWG5/b4f77fba7b.png
Also, I have SQL server 2016 installed on my local system but when I try to run the project I get error as below
https://puu.sh/yEWQm/78a4220830.png
Can someone help? I tried installing latest nugget package from https://www.nuget.org/packages/Microsoft.SqlServer.Types/ but it did not help.
Though I am able to add a column of type geography in a table in my local database. It fails at runtime when I run my project and error comes as below
https://puu.sh/yEWQm/78a4220830.png
According to the docs if you have installed the CLR Types it should load from the GAC so I'm not sure why that didn't work for you. (I would check that you have the correct version as your dependency)
However, we do use the SQLServerTypes in our app without installing the CLR types by using the following method (this method is described in the readme.htm that comes with SqlServerTypes).
Grab the SqlServerTypes.nupkg and extract it to a folder lets call this folder SST from now on.
(Locations of the files I talk about in the following steps may differ from version to version but, the principle is the same)
Create a SqlServerTypes folder in your project
Copy the SST/nativebinaries/x86 and x64 folders into your new SqlServerTypes folder
Also copy the files from SST/content (you should see Loader.cs and readme.htm) into the SqlServerTypes folder.
Now all you need to do is call the Loader when your app boots up.
We do this during our autofac setup by making this call.
Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory)
You may need to adjust the param passed into this method to work with your application. If the correct path is used you should have access to the spatial types in your code.
edit: It may be possible to just call the LoadNativeAssemblies straight away (and avoid all the work I posted above) if you have installed the nuget package in your app but, I have not tested this as we are stuck on an old version of SqlServerTypes.
Because i cannot put a comment i have to put a answer, you can check that, that article and this, this, this and this answers, i hope they guide you to someting usefull.
I have just created a Class Library (Package) project. I have never used this template before. When I install SpecFlow.NUnit, my References folder is displayed "References (Errors - see error list)". My SpecFlow.NUnit has that warning sign. Maybe I shouldn't use this type of project but I would like to understand why. Thanks.
Update: I've tried installing SpecFlow.xUnit in a second project too without success. I've installed them through Nuget.
Follow the instructions, should not be any problem. And use a Test project, that is the easiest way to get started.
Specflow documentation
I downloaded the latest version of T4MVC 2.6.44 from http://mvccontrib.codeplex.com/releases/view/41582. When I unzipped the file, it has T4MVC.tt and T4MVC.cs. And I don't see T4MVC.settings.t4. I double checked that the T4MVCVB version has T4MVCVB.settings.t4. I am getting an error saying that T4MVC.settings.t4 is missing while trying to use T4MVC it in my solution.
Any help on this matter is appreciated.
Update: I found the T4MVC.settings.t4 file at: http://code.google.com/p/funnelweb/source/browse/src/FunnelWeb.Web/T4MVC.settings.t4?r=b2af322275f6bc281ced2dfb533c20fff92edabc&spec=svnb2af322275f6bc281ced2dfb533c20fff92edabc
Does it mean it is not included as part of T4MVC download?
Thanks,
eyob
Sorry, my bad, I just didn't package it correctly last time around. I just fixes it. A couple notes:
Most people now get T4MVC via NuGet
The settings file is now named T4MVC.tt.settings.t4 (not the extra .tt in there)