I need to generate a report, that report already we are generate file (Ex: Service, name, type) along with this need to add 1 more filed, i can't add - compilation

[echo] Compiling java D:/KPN-TEST/CUSTOMIZATION-R21.19/800/20_ResourceManager/WebReports/jars
[javac] Compiling 13 source files to D:\KPN-TEST\CUSTOMIZATION-R21.19\800\20_ResourceManager\work\WebReports\classes
[javac] D:\KPN-TEST\CUSTOMIZATION-R21.19\800\20_ResourceManager\WebReports\cust\src\com\cramer\web\webreports\kpnservice\action\ResultsActionCust.java:173: getNetworkProtectionRelatedtoService(java.lang.String,java.lang.Long,java.lang.String,java.lang.String) in com.cramer.web.webreports.kpnservice.action.DBHelper cannot be applied to (java.lang.String,java.lang.Long,java.lang.String)
[javac] serviceobject.setNetworkProtection(DBHelper.getNetworkProtectionRelatedtoService(servicevo.getName(), new Long(1910000012), "Network Protection")==null?"":DBHelper.getNetworkProtectionRelatedtoService(servicevo.getName(), new Long(1910000012), "Network Protection"));
[javac] ^
[javac] D:\KPN-TEST\CUSTOMIZATION-R21.19\800\20_ResourceManager\WebReports\cust\src\com\cramer\web\webreports\kpnservice\action\ResultsActionCust.java:173: getNetworkProtectionRelatedtoService(java.lang.String,java.lang.Long,java.lang.String,java.lang.String) in com.cramer.web.webreports.kpnservice.action.DBHelper cannot be applied to (java.lang.String,java.lang.Long,java.lang.String)
[javac] serviceobject.setNetworkProtection(DBHelper.getNetworkProtectionRelatedtoService(servicevo.getName(), new Long(1910000012), "Network Protection")==null?"":DBHelper.getNetworkProtectionRelatedtoService(servicevo.getName(), new Long(1910000012), "Network Protection"));
[javac]
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors

Related

Xamarin android proguard ends up with error - the configuration refers to the unknown class 'android.support.annotation.Keep'

My release build of a Xamarin.Android project with proguard enabled ends up with plenty of exceptions.following is a shred of my diagnose log :
PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.HttpUrlDownloader$1: can't find referenced class org.apache.http.NameValuePair
1>PROGUARD : warning : com.koushikdutta.urlimageviewhelper.UrlImageViewHelper$RequestPropertiesCallback: can't find referenced class org.apache.http.NameValuePair
1> Note: android.support.v7.widget.DrawableUtils: can't find dynamically referenced class android.graphics.Insets
1> Note: com.google.android.gms.maps.internal.zzad: can't find dynamically referenced class com.google.android.gms.maps.internal.CreatorImpl
1> Note: com.google.android.gms.common.internal.DowngradeableSafeParcel accesses a field 'NULL' dynamically
1> Maybe this is program field 'com.google.android.gms.common.internal.safeparcel.SafeParcelable { java.lang.String NULL; }'
1> Maybe this is library field 'android.util.JsonToken { android.util.JsonToken NULL; }'
1> Maybe this is library field 'java.sql.Types { int NULL; }'
1> Maybe this is library field 'org.json.JSONObject { java.lang.Object NULL; }'
1> Note: the configuration refers to the unknown class 'com.google.vending.licensing.ILicensingService'
1> Note: the configuration refers to the unknown class 'com.android.vending.licensing.ILicensingService'
1> Note: the configuration refers to the unknown class 'android.support.annotation.Keep'
1> Note: the configuration refers to the unknown class 'android.support.annotation.Keep'
1> Note: the configuration refers to the unknown class 'android.support.annotation.Keep'
1> Note: the configuration refers to the unknown class 'android.support.annotation.Keep'
1> Note: the configuration refers to the unknown class 'android.support.annotation.Keep'
1> Note: the configuration refers to the unknown class 'sun.misc.Unsafe'
1> Note: the configuration keeps the entry point 'com.google.android.gms.common.data.DataHolder { DataHolder(com.google.android.gms.common.data.DataHolder$zza,int,android.os.Bundle); }', but not the descriptor class 'com.google.android.gms.common.data.DataHolder$zza'
1> Note: there were 8 references to unknown classes.
1> You should check your configuration for typos.
1> Note: there were 1 unkept descriptor classes in kept class members.
1> You should consider explicitly keeping the mentioned classes
1> (using '-keep').
1> Note: there were 2 unresolved dynamic references to classes or interfaces.
1> You should check if you need to specify additional program jars.
1> Note: there were 1 accesses to class members by means of introspection.
1> You should consider explicitly keeping the mentioned class members
1> (using '-keep' or '-keepclassmembers').
1>PROGUARD : warning : there were 6 unresolved references to classes or interfaces.
1> You may need to specify additional library jars (using '-libraryjars').
1> java.io.IOException: Please correct the above warnings first.
1> at proguard.Initializer.execute(Initializer.java:321)
1> at proguard.ProGuard.initialize(ProGuard.java:211)
1> at proguard.ProGuard.execute(ProGuard.java:86)
1> at proguard.ProGuard.main(ProGuard.java:492)
1> Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
I searched a lot to find a rule to fix android.support.annotation.Keep warning but no luck.any idea how to get it right?

Unable to build Xamarin solution on Android

Please tell me how to fix the problem. I updated Xamarin forms dll.
I get the following error:
Error error: cannot find symbol
private native void n_onInflate (android.support.v7.widget.ViewStubCompat p0, android.view.View p1);
symbol: class ViewStubCompat
location: package android.support.v7.widget
obj\Debug\android\src\mono\android\support\v7\widget\ViewStubCompat_OnInflateListenerImplementor.java
Error error: cannot find symbol
public void onInflate (android.support.v7.widget.ViewStubCompat p0, android.view.View p1)
symbol: class ViewStubCompat
location: package android.support.v7.widget
obj\Debug\android\src\mono\android\support\v7\widget\ViewStubCompat_OnInflateListenerImplementor.java
Error error: package android.support.v7.widget.ContentFrameLayout does not exist
android.support.v7.widget.ContentFrameLayout.OnAttachListener
obj\Debug\android\src\mono\android\support\v7\widget\ContentFrameLayout_OnAttachListenerImplementor.java
Error error: package android.support.v7.widget.FitWindowsViewGroup does not exist
android.support.v7.widget.FitWindowsViewGroup.OnFitSystemWindowsListener
\obj\Debug\android\src\mono\android\support\v7\widget\FitWindowsViewGroup_OnFitSystemWindowsListenerImplementor.java
Error error: package android.support.v7.widget.ViewStubCompat does not exist
android.support.v7.widget.ViewStubCompat.OnInflateListener
\obj\Debug\android\src\mono\android\support\v7\widget\ViewStubCompat_OnInflateListenerImplementor.java
Did you "update all Nuget packages"? This will download the incorrect versions of the Google libs. You will have to update the Forms packages manually, they will then pull in the required dependencies.
Also make sure you update the packages in all of your projects (the actual Forms project and the platform specific ones).
Finally, clean the solution and rebuild.
James Montemagno explains the issue perfectly here:
Xamarin Forums
I suspect you have updated all packages which will require manual intervention as described by #Krumelur above.

getting nafxcwd.lib(timecore.obj) error lnk2001 unresolved external symbol __mbctype after header-include from other project

I made a new project for unittesting with googleTest. I then added a source file from another project to test it. I then got severeal linker errors:
nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
The key options in my projects are:
Testproject:
Runtime Library: Multithreaded Debug DLL (necessary for googleTest)
Use of MFC: Shared DLL
productive project: (this should actually not matter)
Runtime Library: Multithreaded Debug DLL
Use of MFC: Use MFC in a static library
Even if I copy all the options and files from the productive project with MFC as shared DLL these messages get thrown.
The file, that was imported to the testproject had the "stdafx.h"-include that was resolved to the productive projects one.
There,
#include <afxwin.h>
was included. Checking that one turned out, that for shared MFC-DLL, you need to
#define _AFXDLL
in your project / before the afxwin-include. Otherwise you get these errors.

Error while building cvblobs.lib with VS2010 and Windows7

I am trying to build cvblobslib in VS2010 with windows 7.
The cvblobs wiki page here
http://opencv.willowgarage.com/wiki/cvBlobsLib#Build_intructions
describes that to build you need to just open the project file and build it.However, for me working in VS2010 on windows 7 this does not build and gives the following error:
`c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blob.h(21): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1> ComponentLabeling.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobcontour.h(6): fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
1> BlobResult.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobresult.h(24): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1> BlobOperators.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blob.h(21): fatal error C1083: Cannot open include file: 'cxcore.h': No such file or directory
1> BlobContour.cpp
1>c:\users\administrator\desktop\cvblobslib_opencv_v8_3\blobcontour.h(6): fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
1> Generating Code...
1>
1>Build FAILED.`
How do I remove these errors?There have been similar questions here but no-one has answered these satisfactorily.
Have you changed the include paths to point to your installation of OpenCV (opencv_install_path/include/)? This resides in Project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories.
Also specify the path to OpenCV libs (opencv_install_path/lib/) in Project -> Properties -> Configuration Properties -> Linker -> General -> Additional Library Directories and specify the static libs (opencv*.lib) that you need to use in Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies.

linking to a static 0MQ library in VS

This may be a Visual Studio question more than anything else...
I'm trying to build a 0MQ C++ example using VS10 and ZeroMQ 2.2.0.
I downloaded the windows sources and tried to follow these instructions in order to build 0MQ statically. Specifically:
Switched to Release
For all 7 projects in the solution:
set General\Configuration Type to Static library (.lib)
set C/C++\Code Generation\Runtime Library to Multi-threaded (/MT)
added ZMQ_STATIC to C/C++\Preprocessor\Preprocessor Definitions
Updated zmq.h and zmq_utils.h so that if _MSC_VER and ZMQ_STATIC are defined then DLL_EXPORT will also be defined
At this point 0MQ seems to build well.
Created an empty console project:
switched to Release
added a single cpp file with the example linked above
changed random to rand, srandom to srand and snprintf to _snprintf
set C/C++\Code Generation\Runtime Library to Multi-threaded (/MT)
added ...\zeromq-2.2.0\include folder to C/C++\General\Additional Include Directories
added ...\zeromq-2.2.0\builds\msvc\Release\*.lib to Linker\Input\Additional Dependencies
However I still receive the following linking errors:
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_bind
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_close
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_errno
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_init
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_msg_data
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_strerror
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_socket
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_msg_init_size
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_term
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_msg_close
1>zmqexp.obj : error LNK2001: unresolved external symbol __imp__zmq_send
What have I missed?
You should add ZMQ_STATIC to C/C++\Preprocessor\Preprocessor Definitions in your "empty console project" too. Otherwise, when you compile your application, ZMQ_EXPORT in zmq.h is defined as __declspec(dllimport), and as a result, MSVC looks for __imp__zmq_* symbols instead of zmq_*
I had similar errors - not when trying to statically link, but just trying to create a ZMQ project and link the .lib 'stubs' for the dll.
In my case it was because I was trying to link the 64-bit libraries into a 32-bit project. I had downloaded the wrong version. When I got the right ones, ie x86 instead of x64, it worked.
Is the static linking very important to you? If not, you can try out the second answer by elnino_9 here. Elaborating elnino_9's answer:
Download the sources and unzip to some local folder (say C:\dev\zeromq).
Go to C:\dev\zeromq-2.2.0\builds\msvc and open the msvc.sln solution. MS2010 will upgrade from a VS2008 to a VS2010 project
Build all of the projects.
The build should generate the two following files:
C:\dev\zeromq\lib\libzmq.lib - this is what you will need to reference in your project's linker options
C:\dev\zeromq_boaz\builds\msvc\Release\libzmq.dll - this you will need to copy to the same folder as your project's executable in order to run it (if your build was configured to 'Debug', the path would be C:\dev\zeromq\builds\msvc\ Debug \libzmq.dll)
Create your solution and project. Do the following:
In the Solution Explorer, right-click on you project, and select 'Properties' (at the very bottom).
Navigate to 'C/C++ --> General --> Additional Include Directories' and add C:\dev\zeromq\include. This will reference 0MQ's header files.
Navigate to 'Linker --> Input --> Additional Dependencies' and add the full path to the 'libzmq.dll' file from the previous step.
Build your project - this should go without errors now.
Copy 'libzmq.dll' to the same folder as your executable - your project should now run.
Some comments:
I am not sure why you need to reference the 'libzmq.lib' file. It is not needed by the executable (you can delete it, and it will still run, as the necessary logic resides in the dll). Can someone explain this?
Notice one caveat in the example for Windows users - the second binding statement (publisher.bind("ipc://weather.ipc");) will cause an exception. As explained here (though in fine-print), the Inter-Process Transport is not supported on Windows.
EDIT
I think the answer to my first comment can be found in MSDN:
"When the source code for the calling executable is compiled or assembled, the DLL function call generates an external function reference in the object code. To resolve this external reference, the application must link with the import library (.lib file) provided by the maker of the DLL."

Resources