New initialContext hangs
Hello, below is the piece of code which i am trying.
String server = System.getenv("NNM_HOSTNAME"); //host where jboss is running
String nnmiprotocol = System.getenv("NNM_PROTOCOL"); //http default
String nnmi_port = System.getenv("NNM_PORT"); //80 default
final Hashtable<Object, Object> env = new Hashtable<Object, Object>();
env.put(Context.PROVIDER_URL, nnmiprotocol+"://"+server+":"+nnmi_port+"/invoker/restricted/JNDIFactory");
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
env.put(InitialContext.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
env.put(Context.SECURITY_PROTOCOL, "nnm");
env.put(Context.SECURITY_PRINCIPAL, m_jUsername);
env.put(Context.SECURITY_CREDENTIALS, m_jPasswd);
env.put("jnp.disableDiscovery", "true");
ic = new InitialContext(env); //hangs here
When i try this on Linux RHEL 6.4 machine it works fine. But when i try the same on Windows Server 2008 it hangs. When i searched online about this, i found that all the classes mentioned in "env" should be part of class path. I have all of them in java class path. I am using JDK 1.7. What could be the issue ?
Hello, below is the piece of code which i am trying.
String server = System.getenv("NNM_HOSTNAME"); //host where jboss is running
String nnmiprotocol = System.getenv("NNM_PROTOCOL"); //http default
String nnmi_port = System.getenv("NNM_PORT"); //80 default
final Hashtable<Object, Object> env = new Hashtable<Object, Object>();
env.put(Context.PROVIDER_URL, nnmiprotocol+"://"+server+":"+nnmi_port+"/invoker/restricted/JNDIFactory");
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
env.put(InitialContext.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
env.put(Context.SECURITY_PROTOCOL, "nnm");
env.put(Context.SECURITY_PRINCIPAL, m_jUsername);
env.put(Context.SECURITY_CREDENTIALS, m_jPasswd);
env.put("jnp.disableDiscovery", "true");
ic = new InitialContext(env); //hangs here
When i try this on Linux RHEL 6.4 machine it works fine. But when i try the same on Windows Server 2008 it hangs. When i searched online about this, i found that all the classes mentioned in "env" should be part of class path. I have all of them in java class path. I am using JDK 1.7. What could be the issue ?
Similar Messages
-
Problem in using new InitialContext when running client application
Hi All,
We are having a web application which runs on weblogic server 6.1.
We are loading a servelet at startup which will load the application specific
properties file and bind it with the context.
In one of the classes in the .ear file we are looking up the data source like
this
InitialContext _initialContext = new InitialContext();
dataSource = (DataSource)
initialContext.lookup(ClaimsConstants.CLAIMSRDBMS);
con = dataSource.getConnection();
This works fine through the jsp.
But when I run a separate client program this lookup is failing.
I tried another way of looking up like this
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL, url);
Context _initialContext = new InitialContext(h);
dataSource = (DataSource)
initialContext.lookup(ClaimsConstants.CLAIMSRDBMS);
But the weblogic server got hanged for some time after it gave no messages coming
idle exception.
If any body knows the solution for this please reply. I am trying to develop an
application client but I don't know hoe to proceed. Any examples I can get for
writing a application client using weblogic is very much welcome.
Please give your valuable suggestions.Hi Krishna,
servlet/jsp programs will work successfully in getting initial context of
application server, because they runs at server side, and server
automatically loaded the client library.
If you are using application client, you need to point the weblogic.jar the
application client classpath.What is the exception it is throwing?
Can you test the weblogic samples from the following location of your
installation
\bea\wlserver6.1\samples\examples
Thanks
Kumar
"Krishna Kumar" <[email protected]> wrote in message
news:3def5758$[email protected]..
>
Hi All,
We are having a web application which runs on weblogic server 6.1.
We are loading a servelet at startup which will load the applicationspecific
properties file and bind it with the context.
In one of the classes in the .ear file we are looking up the data sourcelike
this
InitialContext _initialContext = new InitialContext();
dataSource = (DataSource)
initialContext.lookup(ClaimsConstants.CLAIMSRDBMS);
con = dataSource.getConnection();
This works fine through the jsp.
But when I run a separate client program this lookup is failing.
I tried another way of looking up like this
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL, url);
Context _initialContext = new InitialContext(h);
dataSource = (DataSource)
initialContext.lookup(ClaimsConstants.CLAIMSRDBMS);
But the weblogic server got hanged for some time after it gave no messagescoming
idle exception.
If any body knows the solution for this please reply. I am trying todevelop an
application client but I don't know hoe to proceed. Any examples I can getfor
writing a application client using weblogic is very much welcome.
Please give your valuable suggestions. -
4.51 new InitialContext never returns
4.51 new InitialContext never returns
When I do a "new InitialContext" in my client test program, it never
returns
when run on solaris or linux, it works fine on NT.
Another symptom of the same problem is that a LIST command of
weblogic.Admin works
on NT but never returns on Solaris or Linux.
VERSION and SHUTDOWN work on NT, Solaris and Linux.
also note that on linux with ibm 1.1.8 jdk, I completely re-loaded the
weblogic
with only the system password changed in the weblogic.properties file
(just to
make sure I did not accidently put something in the properties file to
cause
the problem)
here is the some raw data, I do relaize that some of these combinations
are not certified (none of the Solaris or Linux combinations worked).
Sun Ultra10 2.5.1 with jdk1.1.8 no service pack
Sun Ultra10 2.5.1 with jdk1.1.8 service pack 8
Sun Ultra10 2.5.1 with jdk1.1.7 service pack 8
Windows NT 4.0 service pack 6a javasoft jdk1.2.2 weblogic service pack 7
linux (redhat 6.2 with blackdown jdk1.2.2)
linux (redhat 6.2 with ibm1.1.8 jdk)
changes to weblogic.properties:
weblogic.system.password=syspword
to startup weblogic:
export PATH=$PATH:/usr/local/jdk118/bin
export JDK_HOME=/usr/local/jdk118
export
CLASSPATH=./classes:./lib/weblogicaux.jar:./myserver/serverclasses
./startWebLogic.sh
code segment from client program:
static public Context getInitialContext()
Context returnValue = null;
Properties p;
p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.TengahInitialContextFactory");
p.put(Context.PROVIDER_URL,"t3://207.112.33.206:7001");
try
System.out.println("getting initial context");
returnValue = new InitialContext(p);
System.out.println("got initial context");
catch (NamingException ex)
System.out.println("exception");
System.out.println("NamingException " +
ex.getMessage())
ex.printStackTrace();
catch (Exception ex)
System.out.println("exception");
return returnValue;
results of running the client program:
getting initial context
the client program never returns
check linux version:
[jack@linux01 test]$ uname -a
Linux linux01.delfour.com 2.2.14-5.0 #1 Tue Mar 7 20:53:41 EST 2000 i586
unknown
check weblogic version on NT:
[jack@linux01 test]$ java weblogic.Admin t3://207.112.33.203:7001
VERSION
WebLogic Build: 4.5.1 Service Pack 7 02/16/2000 15:17:50 #63218
check weblogic version on linux:
[jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 VERSION
WebLogic Build: 4.5.1 09/30/1999 17:41:18 #53704
test one: linux client to linux server:
[jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 PING 1 1
Sending 1 ping of 1 byte.
RTT = ~741 milliseconds, or ~741 milliseconds/packet
test two: linux client to linux server:
[jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 LIST
weblogic system bogus
Setting credentials
An AuthenticationException occurred that prevented access to the given
name in the naming service. The username/password you supplied is not
authorized for thi
s operation.
test three: linux client to linux server:
[jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 LIST
weblogic syste
m syspword
Setting credentials
after 5 minutes, still no response
test four: linux client to NT server:
[jack@linux01 test]$ java weblogic.Admin t3://207.112.33.203:7001 LIST
weblogic system password
Setting credentials
Contents of weblogic
fileSystem:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WL
[email protected]:[7001,7001,7002,7002,-1]
NameBas
edFailOverHandler (name: weblogic.fileSystem, env:
weblogic.jndi.Environment@806
05d5
ejb:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFailO
verHandler (name: weblogic.ejb, env: weblogic.jndi.Environment@80605d5
common:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLCont
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFa
ilOverHandler (name: weblogic.common, env:
weblogic.jndi.Environment@80605d5
jdbc:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContex
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFail
OverHandler (name: weblogic.jdbc, env: weblogic.jndi.Environment@80605d5
jts:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFailO
verHandler (name: weblogic.jts, env: weblogic.jndi.Environment@80605d5
server:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLCont
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFa
ilOverHandler (name: weblogic.server, env:
weblogic.jndi.Environment@80605d5
rmi:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFailO
verHandler (name: weblogic.rmi, env: weblogic.jndi.Environment@80605d5
jms:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFailO
verHandler (name: weblogic.jms, env: weblogic.jndi.Environment@80605d5
jndi:
weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContex
[email protected]:[7001,7001,7002,7002,-1]
NameBasedFail
OverHandler (name: weblogic.jndi, env: weblogic.jndi.Environment@80605d5
here is the end of the weblogic traces after a single LIST on linux:
Sun May 07 09:40:34 EDT 2000:<I> <WebLogicServer> Server loading from
weblogic.c
lass.path. EJB redeployment enabled.
Sun May 07 09:40:44 EDT 2000:<I> <WebLogicServer> Event handler log
started (reg
id: 1)
Sun May 07 09:40:44 EDT 2000:<I> <WebLogicServer> Invoking main-style
startup we
blogic.jdbc.common.internal.JdbcStartup
weblogic.jdbc.common.internal.JdbcStartu
p
Sun May 07 09:40:48 EDT 2000:<S> <SSLListenThread> 2 certificate(s):
fingerprint = 88dae49f1a3122e62e7a94a3dc76fbf0, not before = Tue Oct
26 15:03:
00 EDT 1999, not after = Tue Oct 24 15:03:00 EDT 2000, holder = C=US
SP=Californ
ia L=San Francisco O=WebLogic CN=weblogic.beasys.com
[email protected]
, issuer = C=US SP=California L=San Francisco O=WebLogic OU=Security
CN=Demonstr
ation Certificate Authority [email protected] , key = modulus =
65 byte
Bignum
value=00959b5668811e78a28a018631455f5bd4f51b0e3e77b79dcb7a4c67c31a8f94b0
4bce347b731121da27918dd36bce8f1f0b77cd7944ecbd3d517baa3a83dcce8b,
exponent = 3 b
yte Bignum value=010001
fingerprint = f1c530f7211410a2220c7e9d3152b496, not before = Tue Oct
26 14:18:
53 EDT 1999, not after = Wed Oct 25 14:18:53 EDT 2000, holder = C=US
SP=Californ
ia L=San Francisco O=WebLogic OU=Security CN=Demonstration Certificate
Authority
[email protected] , issuer = C=US SP=California L=San
Francisco O=WebL
ogic OU=Security CN=Demonstration Certificate Authority
[email protected]
om , key = modulus = 65 byte Bignum
value=00b6743b62ce13992324b18d8061d24457ff90
5b7e8aaceef6bef802b6f8a1e176f9791d571f14df79e9dd40f1f8e83e9e41048f05f931fe07dc06
2f19ac20fa93, exponent = 3 byte Bignum value=010001
Sun May 07 09:40:48 EDT 2000:<I> <SSLListenThread> Using exportable
strength
SSL
Sun May 07 09:40:50 EDT 2000:<I> <JMS> Beginning startup process
Sun May 07 09:40:50 EDT 2000:<I> <JMS> Init JMS Security
Sun May 07 09:40:51 EDT 2000:<I> <JMS> Startup process complete. JMS is
active
Sun May 07 09:40:51 EDT 2000:<I> <WebLogicServer> Invoking main-style
startup RM
I Registry weblogic.rmi.internal.RegistryImpl
Sun May 07 09:40:51 EDT 2000:<I> <RMI> Registry started
Sun May 07 09:40:52 EDT 2000:<I> <EJB> 0 EJBs were deployed using .ser
files.
Sun May 07 09:40:52 EDT 2000:<I> <EJB> 0 EJBs were deployed using .jar
files.
Sun May 07 09:40:53 EDT 2000:<I> <ZAC> ZAC ACLs initialized
Sun May 07 09:40:53 EDT 2000:<I> <ZAC> ZAC packages stored in local
directory ex
ports
Sun May 07 09:40:54 EDT 2000:<I> <ListenThread> Listening on port: 7001
Sun May 07 09:40:57 EDT 2000:<I> <SSLListenThread> Listening on port:
7002
Sun May 07 09:40:58 EDT 2000:<I> <WebLogicServer> WebLogic Server
started
Sun May 07 09:41:09 EDT 2000:<I> <ListenThread> Adding address:
linux01.delfour.
com/207.112.33.206 to licensed client list
Sun May 07 09:41:12 EDT 2000:<I> <RJVM> Creating connection to
localhost/127.0.0
.1 -1260680115049870327
I hope someone can shed some light on this...
- Rob (jack) LapenseeIt looks like you are modifying the object you are iterating over while you are iterating... not good. Say your gp only had one element, a LINE_TO. It will run through and call another LINE_TO in the switch, thus when it comes back to the while, there is a newly added point to interpret, so the iterator will never finish. Usually, most components throw a ConcurrentModificationException when this happens for this type of case. I'm not sure why the PathIterator doesn't.
In short, use a different reference in the loop then the one you are iterating over.
-JBoeing -
New InitialContext() gets String index out of bounds
Context ctx = null;
ctx = new InitialContext();
DataSource dataSource = (DataSource) ctx.lookup("jdbc/datasource");
connection = dataSource.getConnection();
I get:
String index out of range: -1
weblogic.jndi.Environment.getContext(Environment.java:308)
weblogic.jndi.Environment.getContext(Environment.java:285)
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
javax.naming.InitialContext.init(InitialContext.java:223)
javax.naming.InitialContext.<init>(InitialContext.java:175)
Earlier when I had provider_url specified I didn't get this problem, but it should be working without specifing provider_url...
And well now it doesn't work with provider_url localhost since they set -Djava.net.preferIPv4Stack=true
Which made so it stopped listening to localhost:port...
Does someone know a possible solution for:
1. String index of range
2. the preferIPv4Stack thingy, which makes the listeners to stop listening to localhost:portBe sure values contains data.
Then make sure that size = values.length
Either you don't have any data to iterate through, or the size variable is too big. So it's trying to search in parts of the array that don't exist. -
New InitialContext() raises a NullPointerException
Hello gentlemen,
I have my code that is working nice under Weblogic 8.1 SP 2 and Service Pack 1 (Windows 2000, jdk141_03).
I switched to Service Pack 5 (no change in my code) and from then I face a strange NullPointerException when I make a call to
new InitialContext(hashtable).
(I am creating a Context for making a lookup on an EJB).
If I revert to Service Pack 2, everything works fine.
I checked Service Pack 6 too (jdk142_11) and I got the same NullPointerException.
I am quite in troubles...
thank you for your help.
Edited by [email protected] at 01/18/2007 3:34 AMfranco lazzari wrote:
Here it is:
java.lang.NullPointerException
at weblogic.rjvm.RJVMManager.findExisting(RJVMManager.java:326)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:210)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:184)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:223Odd. The line of code in 81sp5 that supposedly throws an NPE (line 326)
can't do that in the code I'm looking at. I suggest you open an official
support case showing this full stacktrace. It presents as a core WLS
issue.
Joe
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:310)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:253)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at mnse.securityserver.utenti.GestoreUtentiCentrale.getToken(GestoreUten
tiCentrale.java:798)
at mnse.securityserver.utenti.GestoreUtentiCentrale.<init>(GestoreUtenti
Centrale.java:82)
at mnse.securityserver.utenti.GestoreUtentiCentrale.createGestoreUtenti(
GestoreUtentiCentrale.java:72)
at mnse.securityserver.utenti.GestoreUtentiCentrale.getGestoreUtenti(Ges
toreUtentiCentrale.java:51)
at mnse.securityserver.utenti.GestoreFontiCentrale.caricaFonteUtenti(Ges
toreFontiCentrale.java:216)
at mnse.securityserver.utenti.GestoreFontiCentrale.<init>(GestoreFontiCe
ntrale.java:89)
at mnse.securityserver.utenti.GestoreFontiCentrale.createGestoreFonti(Ge
storeFontiCentrale.java:62)
at mnse.securityserver.utenti.GestoreFontiCentrale.getGestoreFonti(Gesto
reFontiCentrale.java:46)
at mnse.util.avvio.SecurityLoader.load(SecurityLoader.java:392)
at mnse.util.avvio.SecurityLoader.getMinosseLogfile(SecurityLoader.java:
118)
at mnse.securityserver.logger.MinosseLogger.<init>(MinosseLogger.java:52
at mnse.securityserver.logger.MinosseLogger.createLogger(MinosseLogger.j
ava:95)
at mnse.securityserver.logger.MinosseLogger.getLogger(MinosseLogger.java
:82)
at mnse.util.avvio.TimeStamper.getLDAPServerURL(TimeStamper.java:58)
at mnse.admin.dao.RacsDAO.<init>(RacsDAO.java:59)
at mnse.admin.impl.AdministratorEJB.getOperatore(AdministratorEJB.java:5
1)
at mnse.admin.impl.Administrator_ocrjs3_EOImpl.getOperatore(Administrato
r_ocrjs3_EOImpl.java:316)
at mnse.admin.impl.Administrator_ocrjs3_EOImpl_CBV.getOperatore(Unknown
Source)
at mnse.console.AdministratorProxy.getOperatore(AdministratorProxy.java:
85)
at mnse.console.Controllore.getOperatore(Controllore.java:122)
at mnse.console.Controllore.esegui(Controllore.java:89)
at mnse.console.Short.doPost(Short.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:7047)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3902)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) -
New 3GS hangs when syncing Outlook calendars and contacts
My new 3GS hangs when syncing Outlook calendars and contacts on my PC running XP. I've read a bunch of previous similar posts but haven't seen a solution. Does anyone have any hints? Thanks in advance
This is a rare problem these days; it was common with earlier versions of the firmware. It is usually caused by a corrupted database in Outlook. Open contacts in Outlook and check the first few entries. Open each, make a change, and save it. If you get an error saving it you should either delete it, or export the entire address book from within Outlook, then reimport it. One of these will fix the problem if it is a corrupt entry.
-
New InitialContext() in WL6.1sp2
It seems to me that all Context's have to be closed after use so they are
not reused when some other application creates a new InitialContext().
What bothers me is this scenario:
- A server has deployed X applications who closes all Contexts after use
- Deploy one component that doesn't close the context it us using - and this
context is 'wrong' for the other components.
The result is that the X deployed 'nice' applications will get the unclosed
context when they perform a new InitialContext()
I really hope I've missed something basic here...
Mala"Rob Woollen" <[email protected]> wrote in message
news:[email protected]..
Tor Mala wrote:
It seems to me that all Context's have to be closed after use so they
are
not reused when some other application creates a new InitialContext().No, not unless you are pooling the InitialContexts or something. Whatmakes
you think this is true?
If I create a context talking to a remote system and don't close it after
use - new contexts being created will get an authentication failure when
trying to be used for a lookup. This problem goes away when I close the
context.
What are the rules for which credentials/contextsettings to be used when
creating new contexts? -
Under a stress test load over around 100 users we seem to be able to hang
the WLS 5.1 SP6 server after only a few minutes. A thread dump shows all
execute threads waiting on the initialContext method, where we are
attempting to contact the JNDI service on another WLS 5.1 SP6 server.
Reducing the code down to a simple JSP doing nothing more than constructing
the initialContext and then closing it shows the same problem!
JDK : Sun 1_3_0
Anybody seem this or have any idea? Also have tried using a cached context
but then the problem seems to move to the EJB lookup or business method
invoke. Most strange but rather a show stopper for the scale we are looking
for from the application.Will try to get a copy but I'm off site right now and don't have a copy to
hand. Of the execute threads all had stalled on Object.wait() with the chain
starting from either an initialContext() construction or lookup() method.
Reading around the JNDI Context I get the feeling (a) the service is
syncronised (b) should be called sparingly. In the case we are working with
the Provider_URL is another host.
Rob Woollen <[email protected]> wrote in message
news:[email protected]..
Can you post the thread dump?
-- Rob
Tony Symons wrote:
Under a stress test load over around 100 users we seem to be able to
hang
the WLS 5.1 SP6 server after only a few minutes. A thread dump shows all
execute threads waiting on the initialContext method, where we are
attempting to contact the JNDI service on another WLS 5.1 SP6 server.
Reducing the code down to a simple JSP doing nothing more thanconstructing
the initialContext and then closing it shows the same problem!
JDK : Sun 1_3_0
Anybody seem this or have any idea? Also have tried using a cachedcontext
but then the problem seems to move to the EJB lookup or business method
invoke. Most strange but rather a show stopper for the scale we arelooking
for from the application.--
Coming Soon: Building J2EE Applications & BEA WebLogic Server
by Michael Girdley, Rob Woollen, and Sandra Emerson
http://learnweblogic.com -
New OracleConnection hangs in VS 2005 debug mode
Client 10.2.3, ODT 10.2.0.21 for Vista, VS2005sp1, Vista Sp1
Everything has been working great until I tried to debug a service for the first time since last week. Now no matter what I do, a call to create a new OracleConnection locks up the VS debugger and my only recourse is to stop the debugger - pausing fails.
If I run the same compiled project outside of vshost (Ctrl-F5) it works perfectly. I have reinstalled the Oracle client without success. Also, I can run another project that connects to the database with debugging successfully. To limit the intrusion of early code causing an issue, I tried to create a connection at the start of Main() and that hangs.
Has anyone seen this occur or have ideas on what I can try to recover my debugging capability.
Thanks!!!Further notes: If I enable unmanaged code debugging for the startup project (console app), it works. I notice that the next managed dll to be loaded after its normal hang spot is System.EnterpriseServices. I wonder if that is the cause or the oracle non-managed dll loading...
-
[SOLVED] New installation hangs on boot at two different places
Hello
I recently made my another attempt at installing arch on a new desktop build. Previous successful attempts were old laptops.
I followed the Beginner's Guide on the Arch wiki.
Currently it stops at one of two places in the boot process:
1. [ OK ] Found device Samsung_SSD_850_EVO_500GB BOOTARCH
Starting File System Check on /dev/sdb6…
2. [ OK ] Started Journal Service
[ OK ] Started udev Kernel Device Manager
I can not consistently recreate either scenario, but it seems to be random which of the two places it stops. Cold boot and CTRL ALT Delete. I doubt that has anything to do with it, but thought I'd add it anyway.
Current setup:
Hardware:
Motherboard - ASUS Z97 Pro (using ethernet adapter and sound on here)
Processor - Intel 4790K
Memory - 16 GB
Graphics - Gigabyte G1 Nvidia GTX 970 SLI x2
Storage - Samsung 850 SSD 500 GB and WD Black HDD 3 TB
I've also configured it to use a static IP
I started this journey by using the live Gparted CD to create partitions. I created two partitions on the SSD. One for windows 8.1 and one for linux. I then created two partitions on the HDD. One for windows, one for linux.
I installed windows 8.1 first. It divided up the partition I gave it. I am able to run Windows. Once that was done I began installing Arch.
I used the Feb 2015 ISO from the torrent.
Current partition scheme for linux:
sda1 /home
sda3 /swap
sda4 /var
sdb1 /
sdb6 /boot
sda is the HDD and sdb is the SSD
The other partitions not listed are for windows. To boot into windows, I use F8 to choose the windows boot manager partition. It currently defaults to the linux partition.
During the install, I mounted the root partition first. I then created directories for each of the other partitions and then mounted them. Home, var, and root are all ext4. Boot is FAT32, and Swap is swap.
I read where I made a couple of mistakes the first attempt on this computer and did a wipe and reinstall again. First mistake was not knowing that /boot needed to be FAT. I then learned that /swap does not need to be in the fstab. I also learned that a FAT partition can not use UUID in the fstab so I took that out and just used /dev/sdb6 instead.
I have run out of things to search for at this point and need help to continue moving forward.
Bellow is the current /etc/fstab. It was generated using
genfstab -U -p /mnt >> /mnt/etc/fstab
and then edited as noted above
#/dev/sdb1 LABEL=archroot
UUID=xxxxxxxxxxxxxxx / ext4 rw,relatime,data=ordered 0 1
#/dev/sdb6 LABEL=BOOTARCH
#UUID=xxxxxxxxx
/dev/sdb6 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# /dev/sda1 LABEL=linux\134x20home
UUID=xxxxxxxx /home ext4 rw,relatime,data=ordered 0 2
#/dev/sda4 LABEL=archvar
UUID=xxxxxxxxxx /var ext4 rw,relatime,data=ordered 0 2
#/dev/sda3
#UUID=xxxxxxxxxxxxxx none swap defaults 0 0
Thanks for any help that can be provided
Jason
Last edited by p2ranger (2015-02-14 22:20:14)I tried removing gummiboot and installed GRUB2. That didn't work.
As to the UUID's, I just typed in xxxxx's for the post because I didn't feel like transcribing random letters and numbers.
So after reading Head_on_a_Stick's suggestion, I redid my partitions and reinstalled arch again following the Beginner's wiki page and using gummiboot
New Partitions are as follows:
sda1 /home
sda3 /swap
sda4 /var
sdb1 /
sdb3 /boot (originally created from windows install)
Also, I took a screenshot from Gparted of the two disks if there is any info on there that may be of use
http://cotting.us/gparted-sda.jpg
http://cotting.us/gparted-sdb.jpg
Below is the contents and output requested
arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sdb1 rw
loader.conf
timeout5
#default 875966af283d44de9e754c1d68848eab-*
default arch
gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 2.7 Tib
Logical sector size: 512 bytes
Disk identifier (GUID): E11d436B-ED6D-47AD-BCD0-F04384ED50B8
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 45672447 21.8GiB 8300
2 2871662592 5860532223 1.4 TiB 0700
3 2854432768 2871662591 8.2 GiB 8200
4 45672448 285443277 1.3 TiB 8300
gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): DA9A6AF9-066B-4C1A-8778-93CCE5A68D97
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 410247167 195.6 GiB 8300
2 410247168 410861567 300.0 MiB 2700 Basic data partition
3 410861568 411066367 100.0 MiB EF00 EFI system partition
4 411066368 411328511 128.0 MiB 0C01 Microsoft reserved …
5 411328512 976773119 269.6 GiB 0700 Basic data partition
lsblk -f
sda
-sda1 /home
-sda2
-sda3 [SWAP]
-sda4 /var
sdb
-sdb1 /
-sdb2
-sdb3 /boot
-sdb4
-sdb5
sdd
-sdd1
-sdd2
sr0
loop0
loop1
-arch_airootfs /etc/resolv.conf
loop2
-arch_airootfs /etc/resolv.conf
Since my fstab is changed, here is the new one
# /dev/sdb1 LABEL=archroot
UUID=xxxxxxxxxxxxxxxxxx / ext4 rw,relatime,data=ordered 0 1
# /dev/sdb3
#UUID=xxxxxxxx
/dev/sdb3 /boot vfat rw,relatime,fmask=0022,dmask=0022, codepage=437,iocharset=iso8859-1, shortname=mixed, errors=remount-ro 0 2
# /dev/sda1 LABEL=archvar
UUID=xxxxxxxxxxxxxxxxxx /home ext4 rw,relatime,data=ordered 0 2
# /dev/sda4 LABEL=archome
UUID=xxxxxxxxxxxxxxxxx /var ext4 rw,relatime,data=ordered 0 2
# /dev/sda3
#UUID=xxxxxxxxxxxxxxx none swap defaults 0 0
After another install, it still hangs on booting. Here are some of the last lines it displays:
( OK ) Started create system users
Starting Create static device nodes in /dev...
( OK ) Started Journal service.
( OK ) Started create static device nodes in /dev.
( OK ) Reached target Local File systems (Pre).
( OK ) Started Rebuild hardware database
Starting udev Kernel Device Manager....
( OK ) Started Rebuild Dynamic linker cache
( OK ) Started udev Kernel Device Manager
I’m glad people like my setup. I spent a lot of time reading and comparing before I came up with what I bought.
Thanks for your help
Jason
Last edited by p2ranger (2015-02-13 23:52:29) -
New Build hangs at VERIFYING DMI POOL DATA
I put it all together and try to load the XP OS, but it hangs at Verifying DMI Pool Data.......(NTLDR is missing)
Have rechecked the cables and connections a half dozen times. (All new cables)
Checked and rechecked the boot order.
Disconnected the floppy.
I tried swapping to another HDD with a SATA, but I don't see it recognized during post, and I still get error message.
I put in an XP ms-dos starup floppy and it says update success, but won't system file transfer and goes back to the original error message.
What's up here?
I little surfing lead me to this link http://www.duxcw.com/faq/computer/dmi.html
which says a possible cure might be clearing the CMOS.
I supposed that's done by changing the jumpers right?
But, I have searched this website and can't find any Bios downloads for the K8N Neo2.
If I clear the CMOS I'll need to DL BIOS again right?
I am sure the original V1.A is outdated anyway.
Suggestions? I don't want to go rooting around and changing things and make this worse.
This is my 2nd build and the 1st wasn't easy either.
MSI K8N Neo2 (AMD 939 socket) Mobo
AMD 3000+ / 2 X 512mb Corsair VS DDR400 Ram
120GB IDE133 Maxtor HDD
Asus NVidida Geforce4 ti4800se 9480 8x AGP
Rosewill RS2 500w PS (24 pin adapted to 20 pin)Quote from: at2wooden on 04-December-05, 05:34:49
thanks......got the startup screen back but,
I am right back where I started.....Hangs at Verifying DMI Pool Data / missing NTLDR.
I did not install a new hard Drive, but a good pull from my old system.
Drive contanins data, but I should be able to format during OS install right?
Hmmmmmmmmmmmmmmmmm.
MSI K8N Neo2 (AMD 939 socket) Mobo <New>
AMD 3000+ / 2 X 512mb Corsair VS DDR400 Ram <New / New>
120GB IDE133 Maxtor HDD <known Good>
Asus NVidida Geforce4 ti4800se 9480 8x AGP <Used>
Rosewill RS2 500w PS (24 pin adapted to 20 pin) <New>.
yes just BOOT from CD and reinstall XP... better reformat partition which contains XP. if you have important things on this partition not only OS move it to secondary partition or to other HDD. -
[SOLVED] new install hangs at fsck
Hi all,
I am trying my first install on the new installation media 10-6. Everything seemed to go smoothly until I rebooted. Now boot hangs at Filesystem is clean. The full message I am stuck on is below.
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 10/31/2012 11:23:56
The current device is: /dev/sda3
Block size in bytes: 4096
Filesystem size in blocks: 14080972
**Phase 0 - Replay Journal Log
Filesystem is clean.
Then I have nothing. The computer is a lenovo thinkpad t420. Any help would be appreciated, thanks.
edit: added code tags
Last edited by rickeyski (2012-11-05 02:43:36)I ran into something similar yesterday.. I'm not sure it's the same problem but here's what I tried and found.
*After an unsucessful boot, restart your computer and boot off the installation media
*Mount your paritions on /mnt as you would for a fresh install.
*Run arch-chroot /mnt to chroot into your installation.
*Now you can run journalctl to see all messages logged during boot. There will be a ton of them, so hit 'G' to scroll to the bottom.
*Look for messages in red or white.
Now, in my case I found some errors from nouveau and dri. After those errors, the logs went on to show that the system fully booted, although I never got past the fsck step on the screen. A bit of searching found posts about problems with nouveau and dual graphics cards (I have on-board GPU + a Nvidia card). Some posts mentioned adding the nomodeset option to your kernel line in grub. Doing this allowed me to boot up, and after installing the nvidia driver, I was able to remove this option and still boot.
Hope this helps.
Edit: grub config with nomodeset
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=e7975760-f032-438a-b38d-93bc03246e96 ro nomodeset
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
Last edited by dmartins (2012-11-03 13:11:42) -
New install, hangs at "GRUB Loading ..."
I just finished installing Arch on a new system, following the beginners guide, and everything went fine, until I restarted the system.
It shows "GRUB Loading ...", and a blinking cursor, and nothing else. The GRUB menu never comes up.
Has anyone encountered this before?
I'd say I have a fairly simple setup:
/boot /dev/sda1 ext2 300MB
/ ext4 /dev/sda2 120GB
I made the partitions with fdisk, so I have the "old" MBR partition table.
I have installed grub with:
(boot the install medium)
loadkeys hu
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt
pacman -S grub-bios
grub-install --target=i386-pc --recheck /dev/sda
(Grub install finishes, says no errors detected)
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount /mnt/boot
umount /mnt
reboot
And then I'm back to the hanging BIOS Loading screen.
Edit:
There were some pieces of information regarding an encrypt root drive, I have retried the install without encrypting the root drive, and the problem perists.
Edit2:
Syslinux boots it just fine.
Last edited by WishCow (2012-10-02 12:32:55)Yes, 2 MiB if GPT is used. That's what I meant. And don't use "/dev/sda1" or "/dev/sda2" when installing GRUB. You want to install to the MBR, so use /dev/sda.
https://wiki.archlinux.org/index.php/Be … bootloader
Also: https://wiki.archlinux.org/index.php/Be … partitions
Pay attention, because the mounting order is important.
First, mount the root partition on /mnt.
Then mount the /home partition and any other separate partition (/boot, /var, etc), if you have any.
So do not mount the boot partition first, then the root partition after. That's just wrong.
You mentioned encryption earlier. Well? Which is it? Encrypted or not? Because you can't just mount it like any regular partition if it's encrypted.
If you still want to go with Syslinux, see the Basic Config for encryption examples. -
Dad needs Help, 180 New Install- Hang on Verify Pool DMI
Trying to build a new system with my son, he has put it together (with supervision) and I can't get the SW to load.... So not looking too good right now...
Bought a Mega 180
Amd Sempron 2400 proc
Segat 120G Drive
Sony DRU-540 DCD+-RW/+-RCD Drive
Corsair 512Mb (2 DDR-Dims)
Assembled the machine. Went smoothly, needed to reseat ram simms once. Got the system to boot to bios. Windows xp pro failed to install. Friend had a set of dev discs and had a made me a copy and given me one of his licenses. Install had started and hung on loading before being asked for serial number.
On reboot system hangs in bios screen with
Verify DMI Pool ....
What to i do next? thx in advanceI would suspect you have another computer. If so download the lastest BIOS for it from the Msi web site. Then useing a USB key or connecting a floppy drive then flash it in DOS.
The floppy connecter is on the mother board just no cable, also by default the floppy drive is turned off in BIOS so you will need to enable it.
If you are going to use a floppy disc to reprogram then do a full disc scan on the disc with the drive you will be using, the last thing you want is to have a bad disc. If you do have a bad disc and you only find out during flashing then keep that machine turn on and with you other PC load the BIOS on another disc and try again (don't turn it off).
Links that could help
BIOS
USB FLASH -
Nokia 5610 new phone hang when press enter key; it...
Anyone facing this problem? I just brought couple of days only, I found the phone hang when i switch ON it and press Enter key after the PIN code. It looks no response and keep displaying on that screen.
Solved!
Go to Solution.15-Sep-2008 09:25 AM
merceleong wrote:
I sent it to reinstalled the software and it looks ok now but, anyone know for new phone, how long the battery will last? My unit found only two days without playing music all the time.
Just an advise
On it's first time fully charge and discharge - vice versa for three times. After that don’t drain your battery every day to 10-20% of its charge. You can actually expect battery problems by draining the battery frequently.
Roughly every 30 charges, deliberately discharge your battery to 10-15%, and fully charge to 100% afterwards.
This will help maintain the accuracy of the “fuel gauge” on the device (your battery meter or scale). It has nothing to do with the battery memory but helps maintain the accuracy of the device’s percentage of battery charge left.
Good luck
Maybe you are looking for
-
How do I reinstall os x moutain lion after deleting necessary files?
When trying to get my Canoscan 9550F to work with OS X 10.8.x, I was able to add it to the system settings under printer, but still it didn't work. I decided to make sure the Canon driver and Apple driver weren't fighting, so I deleted some files. No
-
Question About "Manually Manage Music and Videos"
Hi! I have a podcast stuck on my iPod. It is not deleted from a Playlist upon syncing, even though I've deleted it from the Playlist in iTunes. It still shows up in the "On My Device" representation of the Playlist, and of course, on the iPod itself.
-
how do i get my info back???
-
I have my text message preview turned off for notification center but text preview still shows anyone know a way to fix this problem
-
Help with SAP NetWeaver 7.0 SR1
Hi, I am a university student and ı want to learn ABAP. I try to install netweaver but I get the following error : An error occurred while processing option SAP NetWeaver 7.0 SR1 including Enhancement Package 1 > SAP Application Server ABAP > MaxDB >