Init Failed
Hi people , i do a the INIT upload of one infosource but ther's an error. I correct the error but now i wan't to redo the INIT. The Infosource is 2LIS_12_VCITM, how can i do? There's a recovery procedure? If i Delete the last INIT that wasn't gone i can redo wthout delete the queue in R3 and refill the set-up table?
Hi,
Delete the init request from the target which will be ods i guess. Just go to manage and delete the request which failed. No in the info package in the menu go to initialization options for source system and delete the init request. Now you can do the init again.
Hope it helps.
Regards,
Mansi.
Similar Messages
-
Hi,
I have a strange behaviour with the package dbms_ldap. I work with Oracle 9i, rel. 9.2.0.1.0 .
I have the hostname xxxx.yy .
The ping gives me this IP number:
H:\sql>ping xxxx.yy
Ping xxxx.yy [10.159.29.41] mit 32 Bytes Daten:
Antwort von 10.159.29.41: Bytes=32 Zeit=5ms TTL=125
When I use the softerra ldap browser 2.6, I can specify as host: xxxx.yy and I receive the answer with no problem.
But when I use the dbms_ldap package, this hostname fails.
SQL> @search;
DBMS_LDAP Search Example to directory ..
LDAP Host : xxxx.yy
LDAP Port : 389
Error code : -31203
Error Message : ORA-31203: DBMS_LDAP: PL/SQL - Init Failed.
Exception encountered .. exiting
But when I use the IP adress instead of the hostname, all works fine.
SQL> @search;
DBMS_LDAP Search Example to directory ..
LDAP Host : 10.159.29.41
LDAP Port : 389
Ldap session : A88E6340(returned from init)
simple_bind_s Returns : 0
search_s Returns : 0
LDAP message : 08866340(returned from search_s)
Number of Entries : 1
dn: CN=aaaaaa,OU=9.4,OU=9,OU=Central Administration,OU=xxxx.yy,DC=xxxx,DC=yy
cn : aaaaaa
displayName : ....., .....
givenName : .....
sn : .....
===================================================
unbind_res Returns : 0
Directory operation Successful .. exiting
NB. when I use another hostname: zzzzz.xxxx.yy having the same IP address, also all works fine.
H:\sql>ping zzzzz.xxxx.yy
Ping zzzzz.xxxx.yy [10.159.29.41] mit 32 Bytes Daten:
Antwort von 10.159.29.41: Bytes=32 Zeit=5ms TTL=125
SQL> @search;
DBMS_LDAP Search Example to directory ..
LDAP Host : zzzzz.xxxx.yy
LDAP Port : 389
Ldap session : A88E6340(returned from init)
simple_bind_s Returns : 0
search_s Returns : 0
LDAP message : 08866340(returned from search_s)
Number of Entries : 1
dn: CN=aaaaaa,OU=9.4,OU=9,OU=Central Administration,OU=xxxx.yy,DC=xxxx,DC=yy
cn : aaaaaa
displayName : ....., .....
givenName : .....
sn : ......
===================================================
unbind_res Returns : 0
Directory operation Successful .. exiting
Is there a possibility to overcome this problem?
ThanksProblem solved - (Problem gelöst :)
using 9i rel.9.2.0.7 all works fine
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.7.0 - Production
DBMS_LDAP Search Example to directory ..
LDAP Host : xxxx.yy
LDAP Port : 389
Ldap session : 00000001(returned from init)
simple_bind_s Returns : 0
search_s Returns : 0
LDAP message : 00000001(returned from search_s)
Number of Entries : 1
dn: CN=aaaaaa,OU=9.4,OU=9,OU=Central Administration,OU=xxxx.yy,DC=xxxx,DC=yy
...... -
ActionServlet init failed.
Hi Guys
I m using struts 1.1 .my problem is while starting my appliaction in tomcat server i m getting one error that
05-12-14 05:41:16 StandardWrapperValve[action]: Allocate exception for servlet action
javax.servlet.ServletException: ActionServlet init failed.
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:495
i m not able to resolve this problem . pls suggest me how i can resolve this problem . Thanksjavax.servlet.ServletException: ActionServlet init failed.
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:495
I would say you have something wrong in your struts-config.xml file.
Check that the syntax is correct and all tags are closed. Maybe start up with a minimal one, and add bits and pieces to it?
If you still can't fix it post the struts-config.xml file here (in code tags of course)
first, this is a java forum, not a struts forumI wouldn't rule struts as being out of scope here.
The broad category for this JSP forum is "Web applications" which struts fits into perfectly. Yes there are struts specific forums around (off the top of my head I know one at javaranch, and the struts-users mailing list is a goldmine of information) Still that shouldn't preclude people asking questions here. Its more on topic than many I have seen.
Cheers,
evnafets -
Microphone gone and error message Audio init failed
Satellite L305-S5865 Vista (32 bit?)
1. I had a microphone that worked. When it stopped working I went to Sound: Recording Devices and it stated "No audio devices are installed". How do I get my microphone back?
2. Audio Init Failed: The audio works fine with video and music files. My professor posts information as an audio file. When I go to the website, I get the error message "Audio Init Failed".
Any help would be appreciated!
Solved!
Go to Solution.Satellite L305-S5865
Can't hurt to reinstall the sound driver.
Realtek Audio Driver for Windows Vista (32/64bit)
-Jerry -
CTM ERROR: ASA hardware accelerator init failed
Hi Guys, I have bought a refurbished firewall and upon reloading I see the following error from console. Is something that I can rectify?
Loading disk0:/asa904-k8.bin... Booting...
Platform ASA5510
Loading...
IO memory blocks requested from bigphys 32bit: 13264
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Starting check/repair pass.
Starting verification pass.
/dev/hda1: 104 files, 12459/63613 clusters
dosfsck(/dev/hda1) returned 0
Processor memory 864026624, Reserved memory: 62914560
Total SSMs found: 0
Total NICs found: 7
mcwa i82557 Ethernet at irq 11 MAC: d0d0.fd1d.5d57
mcwa i82557 Ethernet at irq 5 MAC: 0000.0001.0001
i82547GI rev00 Gigabit Ethernet @ irq11 dev 1 index 05 MAC: 0000.0001.0002
i82546GB rev03 Ethernet @ irq09 dev 2 index 03 MAC: d0d0.fd1d.5d5b
i82546GB rev03 Ethernet @ irq09 dev 2 index 02 MAC: d0d0.fd1d.5d5a
i82546GB rev03 Ethernet @ irq09 dev 3 index 01 MAC: d0d0.fd1d.5d59
i82546GB rev03 Ethernet @ irq09 dev 3 index 00 MAC: d0d0.fd1d.5d58
Verify the activation-key, it might take a while...
Running Permanent Activation Key: 0x6122cb5d 0xc06c1a74 0xec92a120 0xbd44e8e8 0x8e372a8a
Licensed features for this platform:
Maximum Physical Interfaces : Unlimited perpetual
Maximum VLANs : 100 perpetual
Inside Hosts : Unlimited perpetual
Failover : Active/Active perpetual
Encryption-DES : Enabled perpetual
Encryption-3DES-AES : Enabled perpetual
Security Contexts : 2 perpetual
GTP/GPRS : Disabled perpetual
AnyConnect Premium Peers : 2 perpetual
AnyConnect Essentials : Disabled perpetual
Other VPN Peers : 250 perpetual
Total VPN Peers : 250 perpetual
Shared License : Disabled perpetual
AnyConnect for Mobile : Disabled perpetual
AnyConnect for Cisco VPN Phone : Disabled perpetual
Advanced Endpoint Assessment : Disabled perpetual
UC Phone Proxy Sessions : 2 perpetual
Total UC Proxy Sessions : 2 perpetual
Botnet Traffic Filter : Disabled perpetual
Intercompany Media Engine : Disabled perpetual
Cluster : Disabled perpetual
This platform has an ASA 5510 Security Plus license.
CTM ERROR: ASA hardware accelerator init failed, cause: boot_init completion timeout, ctm_nlite_boot_init:2284
CTM ERROR: ASA hardware accelerator init failed, cause: boot initialization failure, ctm_nlite_download:3342
CRYPTO ERROR: Microcode download failure, boot instance 0
Cisco Adaptive Security Appliance Software Version 9.0(4)
Thanks in advanceHi Mike,
Thanks for your reply. Considering it was at an early stage I had asked the supplier to replace it.
Regards
Stefan -
Centos 5.2 'shared memory init failed' issue - doesn't start
I am running centos 5.2 32bit and I installed FMS 3.0.2 (Tried FMS 3.0.4 also)
FMS installed just fine with the -platformWarnOnly flag.
My problem is it will not start at all, nothing starts. no logs in the /opt/adobe/fms either, I only get logs in /var/log/messages with the following
Apr 8 17:14:48 vid Server[22463]: Process (22463) : shared memory (__FCS__serverstats_) init failed.
Apr 8 17:14:53 vid Server[22475]: Process (22475) : shared memory (__FCS__serverstats_) init failed.
Apr 8 17:21:15 vid Server[22733]: Process (22733) : shared memory (__FCS__serverstats_) init failed.
Apr 8 17:21:20 vid Server[22745]: Process (22745) : shared memory (__FCS__serverstats_) init failed.
I also did a ldd on fmsmaster and symlinked "libasneu.so.1 => not found" to the real file, that did nothing.
Here are some of the rpms that im pretty sure are needed.
[root@vid fms]# rpm -qa | grep compat
compat-gcc-34-g77-3.4.6-4
compat-libgcc-296-2.96-138
compat-glibc-headers-2.3.4-2.26
compat-gcc-34-3.4.6-4
compat-libf2c-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
compat-libstdc++-296-2.96-138
compat-glibc-2.3.4-2.26
compat-libstdc++-33-3.2.3-61
[root@vid fms]# rpm -qa | grep stdc
compat-libstdc++-296-2.96-138
libstdc++-4.1.2-44.el5
compat-libstdc++-33-3.2.3-61
libstdc++-devel-4.1.2-44.el5
[root@vid9 fms]# rpm -qa | grep nspr
nspr-devel-4.7.3-2.el5
nspr-4.7.3-2.el5
Would appreciate any help guys!!
I also googled my error and there is one post with no answer here: http://forums.adobe.com/message/105674#105674
Thanks!tmp/ is (/opt/adobe/fms/tmp) 777 and owned by root, I even tried chown'ing to the user that runs fms, no luck.
tmp gets created when i run it the FIRST time:
[root@vid10 fms]# ls -al tmp/
total 8
drwxrwxrwx 2 admin admin 4096 Apr 8 21:15 .
drwxr-xr-x 11 admin admin 4096 Apr 8 21:09 ..
-rwxrwxrwx 1 admin admin 0 Apr 8 21:09 __FCS__serverstats__shm_mem
-rwxrwxrwx 1 admin admin 0 Apr 8 21:09 __FCS__serverstats__shm_mtx
Could it be something with the shm setting, maybe sysctl?
I have 4GB of ram in this machine. Same exact machine works perfect on rhel 4
I appreciate your quick reply. -
FMS3 - shared memory (__FCS__serverstats_) init failed
We are using SLES10 on 64-bit system and are unable to start
the development version of FMS3. An error is reported in
/var/log/messages :
shared memory (__FCS__serverstats_) init failed
Help is needed, thank you.tmp/ is (/opt/adobe/fms/tmp) 777 and owned by root, I even tried chown'ing to the user that runs fms, no luck.
tmp gets created when i run it the FIRST time:
[root@vid10 fms]# ls -al tmp/
total 8
drwxrwxrwx 2 admin admin 4096 Apr 8 21:15 .
drwxr-xr-x 11 admin admin 4096 Apr 8 21:09 ..
-rwxrwxrwx 1 admin admin 0 Apr 8 21:09 __FCS__serverstats__shm_mem
-rwxrwxrwx 1 admin admin 0 Apr 8 21:09 __FCS__serverstats__shm_mtx
Could it be something with the shm setting, maybe sysctl?
I have 4GB of ram in this machine. Same exact machine works perfect on rhel 4
I appreciate your quick reply. -
SAPinst: java.security.ProviderException: init failed
Hi,
We've got problem with running SAPinst on HP-UX, of: Installation Master - SR1 / SAP EHP1 FOR SAP NETWEAVER 7.0 /
EHP 4 FOR SAP ERP 6.0/ NW 7.01 / Number 51036888
When ./sapinst is executed it displays splashscreen and then it quits with those messages in CLI:
Starting GUIServer using:
SAPinst port : 21200
GUIServer port: 21212
HTTP port : 4239
GUI autostart : on
GUI mode : normal
command : /tmp/sapinst_exe.2579.1266320450/jre/bin/java -Xmx256M -Dsap.env.var.javahome=SAPINST_JRE_HOME -cp /tmp/sapinst_exe.2579.1266320450/JAR/instgui.jar SDTGui sapinst host=localhost port=21200 -nolock
***Warning: Ambiguous information regarding the nr. of processors: 8<->16
init: retrieving account information for group sapinst...
init: retrieving account information done.
load resource pool /var/SAPinstall/Install/51036888_2/InstMst_7.01_SR1__NW_ERP_CRM_SRM_SCM/IM_HPUX_IA64/resourcepool.xml
Feb 16, 2010 12:40:58 PM [Info]: *************************
Feb 16, 2010 12:40:58 PM [Info]: Starting Server
Feb 16, 2010 12:40:58 PM [Info]: Reading server configuration.
guiengine: No GUI server connected; waiting for a connection on host plum, port 21200 to continue with the installation
Feb 16, 2010 12:40:59 PM [Info]: Reading service configuration SAPinstService.
Feb 16, 2010 12:40:59 PM [Info]: Configuring LogManager ...
Feb 16, 2010 12:40:59 PM [Info]: *************************************************
Feb 16, 2010 12:40:59 PM [Info]: Starting SL Controller ...
Feb 16, 2010 12:40:59 PM [Info]: StorageService switched off.
Feb 16, 2010 12:40:59 PM [Info]: Initializing SecurityManager ...
Feb 16, 2010 12:40:59 PM [Info]: Key Store management switched off.
Feb 16, 2010 12:40:59 PM [Error]: java.security.ProviderException: init failed
Feb 16, 2010 12:41:00 PM [Error]: java.security.ProviderException: init failed
Feb 16, 2010 12:41:00 PM [Fatal]: Error during controller startup.
Feb 16, 2010 12:41:00 PM [Fatal]: SL Controller exiting.
those variables are set up:
DISPLAY=192.168.58.4:0.0
JAVA_HOME=/opt/java1.4
JCE_POLICY_ZIP=/var/SAPinstall/90000125.ZIP
SAPINST_JRE_HOME=/opt/java1.4
all of files are +x chmoded..
How to find out where the problem is?
Thanks for any suggestions,
KHi,
May be you have choosen wrong JCE policy for your SAP installation...
Please download the JCE policy from the following link and use it for your sap installation...
[jce_policy-1_4_2.zip |http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=7503-jce-1.4.2-oth-JPR@CDS-CDS_Developer]
Regards.
Rajesh Narkhede -
SSL - Default SSL context init failed: null - need help with code
Hi!
Once Again I have problems with SSL.
I read something about SSL here:
http://www.javaalmanac.com/egs/javax.net.ssl/Server.html
Now I tried to test this stuff, that resulted in this program (I simply tried to put the SSL stuff from the above code in a small skeleton):
import java.io.*;
import java.net.*;
import java.security.*;
import javax.net.ssl.*;
import javax.net.*;
public class MyServer
public static void main(String arguments[])
try
int port = 443;
ServerSocketFactory ssocketFactory = SSLServerSocketFactory.getDefault();
ServerSocket ssocket = ssocketFactory.createServerSocket(port);
// Listen for connections
Socket socket = ssocket.accept();
System.out.println("Connected successfully");
// Create streams to securely send and receive data to the client
InputStream in = socket.getInputStream();
OutputStream out = socket.getOutputStream();
// Read from in and write to out...
// Close the socket
in.close();
out.close();
catch(IOException e)
System.out.println("GetMessage() = "+e.getMessage());
e.printStackTrace();
} Now I compiled this stuff with : 'javac MyServer.java' - there were no errors. After this I run the program
with the following command (also taken from java almanac):
'java -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456 MyServer'
But if I run it, it reports:
"GetMessage() = Default SSL context init failed: null
java.net.SocketException: Default SSL context init failed: null
at javax.net.ssl.DefaultSSLServerSocketFactory.createServerSocket(Dasho
6275)
at MyServer.main(MyServer.java:15)"
createServerSocket() seems to be the wrong line, but what is wrong with it.
Is there any mistake in my code ?
Btw. I created my keystore etc. according to the instructions at
http://forum.java.sun.com/thread.jsp?forum=2&thread=528092&tstart=0&trange=15
Any help appreciated
Greets
dancing_coderI got this error last week.
The problem was that the keystore I was pointing to, was in other location, so it could not initialize the default context.
I had defined ...
String CLIENT_CERTIFPATH = getParam("client.certificate.path", "/users/pridas/myKeystoreFile");
// getParam extracts the location of the keystore from a text file which contains some configuration parameters. The default value will be /users/pridas/myKeystoreFile
In my case, I will try to develop a secure SOAP conexion using certificates.
Before to try the conexion, I defined ...
System.setProperty("javax.net.ssl.trustStore", CLIENT_CERTIFPATH);
System.setProperty("javax.net.ssl.keyStore", CLIENT_CERTIFPATH);
... and the problem when I got this error ... the keystore file was not in the correct location.
That was how I resolved this error.
I hope everybody will be oriented about this kind of errors.
Salu2. -
Error- isDefault SSL context init failed : Cannot recover key
Hi,
We are trying to run a sample HTTPS request from client to Server using SSL.
Below is the the code we used to run Client program which will communicate with HTTPS server (Server Socket which will accept connections)
Basically we created a server certificate inside Https server program and that will be exported and imported into Client directory.
Finally when we run below client program means its giving below error
Error- isDefault SSL context init failed : Cannot recover key
Can anybody please help me to run this program successfully?If we you give some basic steps to check the settings what needs to be set before running this program.?
Client Program
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider() );
System.setProperty("javax.net.ssl.keyStore", "D:\\JavaR&D\\Rajiv\\server\\serverkeys");
System.setProperty("javax.net.ssl.keyStoreType" ,"JKS"); /* ,"pkcs12" */
System.setProperty("javax.net.ssl.keyStorePassword","welcome");
System.setProperty("javax.net.ssl.trustStore" , "C:\\j2sdk1.5.0\\jre\\lib\\security\\cacerts");
System.setProperty("javax.net.ssl.trustStorePassword" , "clientpass");
System.setProperty("javax.net.ssl.trustStoreType","JKS"); /* ,"pkcs12" */
System.setProperty("java.protocol.handler.pkgs" ,"com.sun.net.ssl.internal.www.protocol");
com.sun.net.ssl.HostnameVerifier hv=new com.sun.net.ssl.HostnameVerifier() {
public boolean verify(String urlHostname, String certHostname) {
System.out.println("urlHostname >>" + urlHostname +"<<");
System.out.println("certHostname >>" + certHostname +"<<");
System.out.println("WARNING: Hostname is not matched for cert.");
return true;
com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(hv);
SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();
// server = (SSLServerSocket) factory.createServerSocket(portNumber);
System.out.println("above socketcreation");
SSLSocket socket = (SSLSocket)factory.createSocket("172.16.56.227",8443);
Server ProgramIs there some kind of timeline that I can expect 8.1 to ship in?
I appreciate being informed that this is a known issue and all, but without giving me a timeframe to expect a fix in, how can you possibly expect me to continue to pursue your products as viable options?
To tell me to wait for 8.1, without giving me a timeframe or any further details is simply put in one word. Amatuer.
What kind of response is this? What am I supposed to tell my supervisor? How am I supposed to explain to upper management that the application server they're telling us to use is incapable of handling the use cases our business functions require? What do you want me to do, tell them to wait for the next release without being able to give them a ballpark figure? We're a small team, us Java guys. We've already invested months is moving to a new platform. Now that platform is failing us, and the vendor hasn't got any better response than, "Oh yeah, our bad. We'll fix it next time... whenever that is..."
If 8.1 is as half-baked as 8.0 is (BTW your deploytool is a broken piece of junk. I can reliably crash the thing in under 10 seconds) then I don't have a lot of hope for 8.1. You can bet I sure as heck won't be holding my breath for it.
Looks like it's time to investigate the other vendors that support J2EE 1.4. Something tells me I'll have better luck with WebSphere. The hard part there will be selling managment on the idea. At least IBM is notoriously forward with their clients, even if they are expensive.
All I'm asking for now is a timeframe for 8.1. When can we expect it? If it's before I expect to -have- to have this stuff in production I may be able to wait... but at this point, I'm disgruntled enough to not bother.
Maybe we should investigate moving to .net. At least then when the vendor screws me I'll be expecting it. -
Default SSL context init failed: jks
Hello to all.
This is my first post in the Sun forums. I am a C++ programmer migrating to Java.
I am writting a SSL client that connects to my SSL-speaking daemon. The code I am
trying is from examples across the internet:
---CODE BEGINS---
import javax.net.ssl.*;
import javax.net.*;
import java.net.*;
import java.io.*;
public class FirstClass {
public static void main(String[] args) {
FirstClass firstClass1 = new FirstClass();
try {
int port = 4433;
String hostname = "localhost";
SocketFactory socketFactory = SSLSocketFactory.getDefault();
Socket socket = socketFactory.createSocket(hostname, port);
// Create streams to securely send and receive data to the server
InputStream in = socket.getInputStream();
OutputStream out = socket.getOutputStream();
// Read from in and write to out...
// Close the socket
in.close();
out.close();
} catch(IOException e) {
System.out.println("Exception: " + e.getMessage());
---CODE ENDS---
Everything goes okay in the build process, the problem is like the topic says a problem
with the creatinon of the SSL context. Also, I run it with the appropriate params as in:
---CMD BEGINS---
java \
-Djavax.net.debug=ssl \
-Djavax.net.ssl.keyStore=serverKeyStore \
-Djavax.net.ssl.keyPassword=123456 \
MySSLExample
---CMD ENDS---
I have the serverKeyStore that I created with keytool and the password is
really 123456 (tuff one, huh?). The output is:
---OUTPUT BEGINS---
keyStore is : serverKeyStore
keyStore type is : jks
init keystore
default context init failed: java.security.KeyStoreException: jks
Exception: Default SSL context init failed: jks
---OUTPUT ENDS---
I really don't care for trusting the certificates, I only want some kind of encryption
on the data channels (in/out) so I could ignore the verification of the certificates.
I also found someone on a forum that asked the same I am now, but he latter posted
that he found the solution and left... with no solution posted.
Thanks for any help out there,
Rodrigo MaderaTry
-Djavax.net.ssl.keyStorePassword=123456
instead of
-Djavax.net.ssl.keyPassword=123456 -
Default SSL context init failed: Invalid keystore format
Hi, I can't connect to my ldap server. The problem is ssl. I'm trying to do this:
import java.io.IOException;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import javax.naming.ldap.LdapContext;
public class TestAuthentifikation {
public static void main (String [] args) throws IOException {
try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldaps://subdomain.dyndns.org:636/");
env.put(Context.SECURITY_PRINCIPAL, "uid=user,ou=users,dc=subdomain,dc=dyndns,dc=org");
env.put(Context.SECURITY_CREDENTIALS, "passwd");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PROTOCOL, "ssl");
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("javax.net.ssl.keyStore", "/usr/lib/j2se/1.4/jre/lib/security/cacerts");
System.setProperty("javax.net.ssl.trustStore","/usr/lib/j2se/1.4/jre/lib/security/cacerts");
env.put(LdapContext.CONTROL_FACTORIES, "com.sun.jndi.ldap.ControlFactory");
DirContext ctx = new InitialDirContext(env);
//use ctx....
// Close the context when we're done
ctx.close();
catch(NamingException ne) {
System.err.println(ne);
ne.printStackTrace();
}The exception is this:
javax.naming.CommunicationException: subdomain.dyndns.org:636 [Root exception is java.net.SocketException: Default SSL context init failed: Invalid keystore format]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:194)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:119)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1668)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2599)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)On the server I have created this ldap_crt.pem file:
openssl req -x509 -days 3650 -newkey rsa:2048 -nodes -keyout ldap_key.pem -keyform PEM -out ldap_crt.pem -outform PEMwhich sits on the clients /etc/ssl/certs directory. Like this I can connect with a ldap browser to the server.
I should do something like this:
keytool -import -alias AUTH_CA -file rootcert.crt -keystore /usr/lib/j2se/1.4/jre/lib/security/cacertsHow do I get this rootcert.crt file?
I did this and changed the keystore from cacerts to mycacerts in the java class file:
sudo keytool -import -alias AUTH_CA -file /etc/ssl/certs/ldap_crt.pem -keystore /usr/lib/j2se/1.4/jre/lib/security/mycacertsThen I get this:
javax.naming.CommunicationException: simple bind failed: subdomain.dyndns.org:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: *No trusted certificate found*]
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:198)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
Edited by: borobudur on May 18, 2008 7:09 AMJust a permission problem! Take care that your process can write on the keystore/truststore.
-
Default SSL context init failed:
Hi All,
i got this problem in my Web services client, i have installed correct certificate and jar deployment for the same. but there is no solution for the same.
so please help us to solve this issue as soon as possible.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Default SSL context init failed: null
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Default SSL context init failed: null
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:156)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.ibm.ivr.webservices.IVRCDBServiceSoapBindingStub.getCustomerProfile(IVRCDBServiceSoapBindingStub.java:442)
at com.gl.nortel.ivr.service.invoker.cdb.CDBServiceHandler.invokeMobilitySOAPRPCService(CDBServiceHandler.java:269)
at com.gl.nortel.ivr.service.invoker.cdb.CDBServiceHandler.invokeSOAPRPCService(CDBServiceHandler.java:148)
at com.gl.nortel.ivr.service.invoker.cdb.CDBStaticServicesInvoker.fetchCustomerProfile(CDBStaticServicesInvoker.java:201)
at com.gl.nortel.ivr.service.invoker.cdb.CDBStaticServicesInvoker.getCustomerProfile(CDBStaticServicesInvoker.java:102)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.peri.rnd.jsb.Jsb$MethodCall.invoke(Jsb.java:1054)
at com.peri.rnd.jsb.Jsb$Client.invokeMethod(Jsb.java:1269)
at com.peri.rnd.jsb.Jsb$Client.handleSendResource(Jsb.java:1398)
at com.peri.rnd.jsb.Jsb$Client.run(Jsb.java:1552)
at java.lang.Thread.run(Thread.java:595)
{http://xml.apache.org/axis/}hostname:PNQAP22216
java.net.SocketException: Default SSL context init failed: null
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.ibm.ivr.webservices.IVRCDBServiceSoapBindingStub.getCustomerProfile(IVRCDBServiceSoapBindingStub.java:442)
at com.gl.nortel.ivr.service.invoker.cdb.CDBServiceHandler.invokeMobilitySOAPRPCService(CDBServiceHandler.java:269)
at com.gl.nortel.ivr.service.invoker.cdb.CDBServiceHandler.invokeSOAPRPCService(CDBServiceHandler.java:148)
at com.gl.nortel.ivr.service.invoker.cdb.CDBStaticServicesInvoker.fetchCustomerProfile(CDBStaticServicesInvoker.java:201)
at com.gl.nortel.ivr.service.invoker.cdb.CDBStaticServicesInvoker.getCustomerProfile(CDBStaticServicesInvoker.java:102)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.peri.rnd.jsb.Jsb$MethodCall.invoke(Jsb.java:1054)
at com.peri.rnd.jsb.Jsb$Client.invokeMethod(Jsb.java:1269)
at com.peri.rnd.jsb.Jsb$Client.handleSendResource(Jsb.java:1398)
at com.peri.rnd.jsb.Jsb$Client.run(Jsb.java:1552)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Default SSL context init failed: null
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:156)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
... 22 moreHelp yourself. Start by doing some proper research. Paste 'java.net.SocketException: Default SSL context init failed: null' into google and see what you get: I did and I got plenty of hits.
-
Default SSL context init failed: null
Hi all,
I am trying to open a SSL connection from a tomcat server (called it TC1) that locate within a DMZ to the other tomcat server (called it TC2) which is located in external network.
I got the following in the TC1 system.out,
WARNING: Servlet.service() for servlet HelloWorld threw exception
java.net.SocketException: Default SSL context init failed: null
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Sou
rce)
at HelloWorld.doGet(HelloWorld.java:20)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
Here is the servlet i place in TC1 which open a SSL connection to TC2.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.net.URL;
import java.net.URLConnection;
public class HelloWorld extends HttpServlet {
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("Hello World");
URL url = new URL("https://154.123.23.10:8443");
URLConnection con = url.openConnection();
con.connect();
}I have used java keytool to generate a self-signed cert and also a keystore in TC2. Below is the Connector element of the server.xml of TC2
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="C:\program files\Tomcat 5.5.7\keystore\.keystore"/>
I also imported the self-signed cert into the truststore of machine which host the TC1. The place i store the self-signed cert of TC2 is jre_home\lib\security\cacerts
Does anyone know how to resolve the exception "java.net.SocketException: Default SSL context init failed: null" I mentioned above?
Thanks for your help
FengI had the same problem (tomcat was acting as an axis client), I resolved it by adding -Djavax.net.debug=all to my CATALINA_OPTS in the startup-skript
=> Then I got the message, that the keystrore/truststore could not be found.
That was the problem - and now the context null is gone ;)
CATALINA_OPTS=-Djavax.net.ssl.trustStore=ABSOLUTE_LOCATION_TO_TRUSTSTORE -Djavax.net.ssl.keyStore=ABSOLUTE_LOCATION_TO_KEYSTORE -Djavax.net.ssl.keyStorePassword=********
-Djavax.net.ssl.keyStoreType=jks
-Djava.protocol.handler.pkgs=javax.net.ssl
-Djavax.net.debug=allGood luck !
SuCkerD -
Ip_arp_done: init failed with iprb device
Hi all,
Solaris x86 3/05 (FCS) unpatched: After a reboot, my iprb0 network interface ends up with the same IP as the loopback interface, is marked down, has no route, and doesn't work until I manually ifconfig it. It seems to work fine after the manual ifconfig, though. The "ip_arp_done: init failed" message appears in the system log, which implies to me that iprb isn't getting going like it should at boot. This machine suffered a disk failure, Solaris was reinstalled, and I'm afraid I missed some step required to get iprb going at boot though I don't recall this problem (nor the "ip_arp_done" message) immediately following the reinstallation and subsequent reboots.
The /etc/hostname.iprb0 file and the driver's announcement in the system log all seem fine.
Does anyone have any insight into this problem?
Thanks very much,
DaveHello, all!
Just to share my experience with my Solaris 10:
-bash-3.00# cat /etc/dhcp.iprb0
wait 60After that, the message ip_arp_done: init failed disappear! -
Hi
I am trying to connect to an https:// url using java (digital certificates) and send an xml file to it and get the response..
I have server certificate stored in our m/c..and password..
I am getting following exception ->>>
Default SSL context init failed: DerInputStream.getLength(): lengthTag=109, too big.
It is arising from the following line of the code ->
OutputStream ops = (OutputStream) servletConnection.getOutputStream();
Could anyone provide me the soln ASAP..its urgent...See my reply to http://forum.java.sun.com/thread.jspa?threadID=5245161&tstart=0
Maybe you are looking for
-
Alpha Channel / gradation interpretation problem
I have a very peculiar problem, which started happening after upgrading to CC 2014. I was hoping that the latest update would fix it but it didn't. The problem is with the incorrect way Premiere interpreters Animation codec QT files with alpha with s
-
WSUS patch status information not rolling up from Downstream to Upstream
We have a Windows 2008 R2 WSUS server running WSUS 3.2.7600.274 We have a Downstream replica also Windows 2008 R2 WSUS server running WSUS 3.2.7600.274 At some stage the Patch Needed status stopped rolling up from the downstream to the upstream serve
-
There Is No Picture On Channel 477 & 466 Has A Bad Feed
Channel 477 soy latino tv which was mexicanal has no image at all of the programs that should be there and it is a channel that is not off the air. Right now there are colored bars from the left side to the right side of the channel where the colors
-
JDK 1.4.0.00 on HPUX 11.0, Stack Unwind Error
When we run our application server software we get the following problem The probem statement for the error is given below ====================================================================== ================= Environment: HP-UX 11.0 JDK 1.4.0.00 P
-
Buffer over run QT 7.1.6
Hello, I have updated quicktime to the latest update but am now experiencing some problems. Some of my quicktimes wont open. They crash on opening, with an error message but the message disappears to fast to read. But if I load quicktime by itself an