wsdl2java - WARNING: Default key managers cannot be initialized - cxf

While generating java WSDL client I am receiving these errors. Can you please help me to understand these?
C:\Users\Administrator\workspace\apache-cxf-3.0.2\bin> wsdl2java https://example.com/V1/HelpService?wsdl
*Nov 03, 2014 1:11:20 PM org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers
WARNING: Default key managers cannot be initialized: C:\Users\Administrator.keystore (The system cannot find the file specified)
Nov 03, 2014 1:11:20 PM org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers
WARNING: Default key managers cannot be initialized: C:\Users\Administrator.keystore (The system cannot find the file specified)
Nov 03, 2014 1:11:21 PM org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers
WARNING: Default key managers cannot be initialized: C:\Users\Administrator.keystore (The system cannot find the file specified)*
C:\Users\Administrator\workspace\apache-cxf-3.0.2\bin>

Your problem is that the property javax.net.ssl.keyStore is not specified and if it is not specified .keystore is used in your home directory. If .keystore does not exist you will get this error.
Snip from org.apache.cxf.configuration.jsse.SSLUtils.java :
public static String getKeystore(String keyStoreLocation, Logger log)
...//some other code
keyStoreLocation = SystemPropertyAction.getProperty("javax.net.ssl.keyStore");
if (keyStoreLocation != null) {
logMsg = "KEY_STORE_SYSTEM_PROPERTY_SET";
} else {
keyStoreLocation =
SystemPropertyAction.getProperty("user.home") + "/.keystore";
logMsg = "KEY_STORE_NOT_SET";
}

Related

Parameter Named("key") Key key not showing in api explorer after google endpoints migration to version 2

I migrated Google endpoints version 1 project to google endpoints too. After the migration a parameter names exactly like this
#Named("key") Key key
Does not show up in the api explorer.
However when I change the key to a different name like
#Named("serializeablekey") Key serializeablekey
Then I am able to see the parameter appear in api explorer.
The exact method is like this
public SimpleValue update(User user, #Named("key") Key key, SomeDTOClass dto, #Named("anotherkey") Key anotherkey) throws ServiceException
The Key is
com.google.appengine.api.datastore.Key
The ApiMethod annotation is like this
#ApiMethod(httpMethod = ApiMethod.HttpMethod.PUT, name="sample.update", path = "sample.update")
The closest problem I see are these warnings on the console when I run the application locally
Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider hasUnresolvedType
WARNING: skipping field of type java.lang.Class<?> because it is unresolved
Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider getResourceSchema
WARNING: skipping field 'class' of type 'java.lang.Class<?>' because it is unresolved.
Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider hasUnresolvedType
WARNING: skipping field of type java.lang.Class<?> because it is unresolved
Aug 20, 2018 7:50:58 PM com.google.api.server.spi.config.jsonwriter.JacksonResourceSchemaProvider getResourceSchema
WARNING: skipping field 'class' of type 'java.lang.Class<?>' because it is unresolved.
Is there some known issued with the Named annotation?

Unable to run application outside of Visual Studio

Our .Net 4.0 app that runs normally while hosted by VS always crashes while loading (less than 1 second after executing) while not debugging (both debug and release binaries).
The app contains 5 libraries (all of it with .Net 4.0) + NHibernate dependencies.
It does not even fire the UnhandledException event, it just crashes right away with a OutOfMemoryException (I could only see that with the Windows Event Viewer).
Event Viewer tells me that kernelbase.dll had a OutOfMemoryException, and
Fuslogvw.exe tells me that System.Core fails to load:
*** Input Assembly Binder Log (6/27/2016 # 15:41:54) ***
The operation failed.
Result of the Association: hr = 0x8007000e. Insufficient storage space to complete the operation.
Assembly Manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable C:\Users\User\Source\Manager\MySoftware\MySoftware.WPF.App\bin\Release\MySoftware.WPF.App.exe
---Follows a detailed log of errors.
=== Pre-Association state information ===
LOG: DisplayName = System.Core, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///C:/Users/User/Source/Manager/MySoftware/MySoftware.WPF.App/bin/Release/
LOG: initial PrivatePath = NULL
Logging: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MySoftware.WPF.App.exe
Calling assembly: MySoftware.WPF. App, Version 1.0.0.0, Culture = neutral, PublicKeyToken = null.
===
LOG: this Association starts at the default load context.
LOG: using application configuration file: C:\Users\User\Source\Manager\MySoftware\MySoftware.WPF.App\bin\Release\MySoftware.WPF.App.exe.Config
LOG: using host configuration file:
LOG: using machine configuration file C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: post policy reference: System.Core, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
LOG: assembly located by searching on GAC.
ERR: unrecoverable error during pre download verification (hr = 0x8007000e).
I have 4GB of RAM with 60% occupied, so maybe that's not the problem. Can you give me a hint where to look?

xml validation warnings while installing oracle order fusion demo

I am currently working on Oracle Adf and currently trying to install Oracle fusion demo application opening infrastructure.jws and running buildAll on build.xml giving me following warnings and error
Oct 3, 2013 5:25:21 PM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
Oct 3, 2013 5:25:22 PM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
Oct 3, 2013 5:25:25 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
Oct 3, 2013 5:25:25 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: unavailable.
Oct 3, 2013 5:25:25 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
Oct 3, 2013 5:25:25 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: unavailable.
Oct 3, 2013 5:25:26 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
Oct 3, 2013 5:25:26 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: unavailable.
Oct 3, 2013 5:25:26 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
Oct 3, 2013 5:25:26 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. cvc-complex-type.2.4.b: The content of element 'propertySets' is not complete. One of '{"http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd":propertySet}' is expected. Location: unavailable.
Oct 3, 2013 5:25:26 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
Oct 3, 2013 5:25:27 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
Following errors are appearing
Buildfile: C:\JDeveloper\mywork\FusionOrderDemo\Infrastructure\Ant\build.xml
init:
[javac] Compiling 1 source file to C:\JDeveloper\mywork\FusionOrderDemo\Infrastructure\Ant\classes
setProperties:
createDatabase:
refreshSchema:
BUILD FAILED
C:\JDeveloper\mywork\FusionOrderDemo\Infrastructure\Ant\build.xml:51: The following error occurred while executing this line:
C:\JDeveloper\mywork\FusionOrderDemo\Infrastructure\DBSchema\build.xml:100: The following error occurred while executing this line:
C:\JDeveloper\mywork\FusionOrderDemo\Infrastructure\DBSchema\build.xml:63: The following error occurred while executing this line:
C:\JDeveloper\mywork\FusionOrderDemo\Infrastructure\DBSchema\build.xml:28: C:\Oracle2\Middleware\jdeveloper\wlserver_10.3\server\lib not found.
Total time: 4 seconds
The above are the warnings and errors can anyone please help me with this.Thank You.
Regards,
Furqan Ahmed.
try by changing the jdeveloper home to
jdeveloper.home=C:/Oracle/Middleware/jdeveloper
it has worked for me
Base Directory for library lookup
jdeveloper.home=C:/oracle/Middleware/jdeveloper
Please see that I use / instead of your \ you use. I tested the scripts an they work if you set the properties to the correct values.
https://community.oracle.com/thread/2325005?start=0&tstart=0

ImageMosaic-JDBC Error

I'm trying to get postgis raster layers in geoserver-2.3.1, with postgresql-8.4, postgis-2.0 and gt-imagemosaic-jdbc-9.1.jar support. I'm going through the tutorial with a PNG raster that i have. In the last step i'm stuck with a java exception...can't really understand what is it!? I've tried other jdbc-postgresql driver and less tiles but the error seems to come up everytime.
Here is the output! Any interpretations? Every help is welcome. Thanks
java -jar ~rdfs_run/geoserver/geoserver-2.3.1/webapps/geoserver/WEB-INF/lib/gt-imagemosaic-jdbc-9.1.jar import -config ~rdfs_run/geoserver/geoserver-2.3.1/data_dir/coverages/postgis/aveiro.postgis.xml -spatialTNPrefix tileaveiro -tileTNPrefix tileaveiro -dir tiles -ext png
Apr 28, 2013 8:50:34 PM org.geotools.gce.imagemosaic.jdbc.Import logInfo
INFO: Truncating table : tileaveiro_0
Apr 28, 2013 8:50:34 PM org.geotools.gce.imagemosaic.jdbc.Import logInfo
INFO: Number of tiles to import: 48
Apr 28, 2013 8:50:34 PM org.geotools.gce.imagemosaic.jdbc.Import logInfo
INFO: Inserted tile AveiroRDFS_rgb_5_8.png : 1/48
...
INFO: Inserted tile AveiroRDFS_rgb_3_8.png : 48/48
java.sql.BatchUpdateException: Batch entry 0 INSERT INTO tileaveiro_0 (location,geom,data) VALUES ('AveiroRDFS_rgb_5_8.png',geomfromwkb(?,4326),?) was aborted. Call getNextException to see the cause.
at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2746)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1887)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:405)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2893)
at org.geotools.gce.imagemosaic.jdbc.Import.sqlCommit(Import.java:1026)
at org.geotools.gce.imagemosaic.jdbc.Import.fillSpatialTable(Import.java:856)
at org.geotools.gce.imagemosaic.jdbc.Import.start(Import.java:401)
at org.geotools.gce.imagemosaic.jdbc.Toolbox.main(Toolbox.java:46)
Found the answer...gt-imagemosaic-jdbc-9.1 plugin (from Geotools) probably doesn't support PostGIS 2.0: geomfromwkb function is not defined - in newer versions it is st_geomfromwkb.
Right now i'm using an older postgis/postgres database.

PHP Stack trace, PHP 1. {main}(), PHP 2. include() error in apache's error_log.php

I have a login page implemented in cakephp. It was working fine, but some days before we implemented SSL after that it is working fine on server, but I am not able to login on my local system. Moreover it is not throwing any errors, but when I looked into apache error log file it is throwing the following error ->
[Fri Jul 20 11:55:10 2012] [error] [client ::1] PHP Deprecated:
Assigning the return value of new by reference is deprecated in
/Backup/www/Web/SourceCode/instantmeeting/cake/libs/cache.php on line 155,
referer: /Web/SourceCode/instantmeeting/enterprise/web_user/login
[Fri Jul 20 11:55:10 2012] [error] [client ::1] PHP Stack trace:,
referer: /Web/SourceCode/instantmeeting/enterprise/web_user/login
[Fri Jul 20 11:55:10 2012] [error] [client ::1] PHP 1. {main}()
/Backup/www/Web/SourceCode/instantmeeting/app/webroot/index.php:0,
referer: /Web/SourceCode/instantmeeting/enterprise/web_user/login
[Fri Jul 20 11:55:10 2012] [error] [client ::1] PHP 2. include()
/Backup/www/Web/SourceCode/instantmeeting/app/webroot/index.php:81,
referer: /Web/SourceCode/instantmeeting/enterprise/web_user/login
Does anyone know what might be causing this?
This is a PHP5 deprecated ERROR.
This happens becuase you may be trying to pass an object by value not by reference.
This used to be possible in PHP4, but is now deprecated as PHP5 follows more strict OOP principles.
In most programming languages, an object can be passed to functions or
other objects by reference, not by value. In other words, rather than
passing a new object with the same values, the actual object is
passed, meaning changes are kept.
I would suggest that there is something like (this is just an example):
In PHP4 this code would output Jason because you'd basically be passing a copy of $var:
class Man{
var $Name;
}
function aaaa($Man){
$Man->Name = 'Boby';
}
$var = new Man();
$var->Name = 'Jason';
aaa($var); // Passing an Object **by value**
echo $var->Name; // Will output Jason
Because of this you had to manualy pass it by reference to the aaa() function like:
aaa(&$var);
echo $var->Name; // Will output Boby
This will work without the reference in PHP5!
What is your PHP version on the server? You should upgrade and check out what is there on line 155 in /Backup/www/Web/SourceCode/instantmeeting/cake/libs/cache.php

Resources