How to resolve variable at runtime in java
I have problem in resolving variable at runtime. The value of hdstr is getting added into the v1 vector element whereas it should get resolve at runtime and value should get added into the vector.
0===>(String)vector[0].get(i),(String)vector[1].get(i),(String)vector[2].get(i),(String)vector[3].get(i),(String)vector[4].get(i)
0===>(String)vector[0].get(i),(String)vector[1].get(i),(String)vector[2].get(i),(String)vector[3].get(i),(String)vector[4].get(i)
Following is the program code
import java.util.*;
public class test15
public static void main(String[] args)
Vector[] vector = new Vector[10];
vector[0] = new Vector();
vector[1] = new Vector();
vector[2] = new Vector();
vector[3] = new Vector();
vector[4] = new Vector();
vector[0].addElement("0Zero");
vector[1].addElement("0First");
vector[2].addElement("0Second");
vector[3].addElement("0Third");
vector[4].addElement("0Fourth");
vector[0].addElement("1Zero");
vector[1].addElement("1First");
vector[2].addElement("1Second");
vector[3].addElement("1Third");
vector[4].addElement("1Fourth");
Vector v1 = new Vector();
String hdstr = new String();
for(int i = 0; i < 5; i++)
hdstr = hdstr + "(String)vector[" + i +"].get(i),";
hdstr = hdstr.substring(0, hdstr.lastIndexOf(","));
for(int i = 0; i < vector[1].size(); i++)
// v1.addElement(new String[] {(String)vector[0].get(i),(String)vector[1].get(i),(String)vector[2].get(i)});
v1.addElement(new String[] { hdstr });
for(int i = 0; i < vector[1].size(); i++)
vector.clear();
Enumeration enum = v1.elements();
while(enum.hasMoreElements())
String[] data = (String[]) enum.nextElement();
for (int i = 0; i < data.length; i++)
System.out.println(i + "===>" + data[i]);
vector[i].add(data[i]);
System.out.println(vector[0].size());
any help
Do you mean to be doing this:
String hdstr = "";
for (int i = 0; i < vector[1].size(); i++) {
hdstr += (String)vector.get(i) + ",";
hdstr = hdstr.substring(0, hdstr.lastIndexOf(","));
Cause the way you where doing it before, you where simply making
a new String that read exactly like it displayed. Here you are
concatenating the values stored in the vectors into a single String.
Similar Messages
-
How do i solve the Runtime Error: java.lang.UnsatisfiedLinkError
Runtime Error: java.lang.UnsatisfiedLinkError
// Dialog_age
import javax.swing.JOptionPane;
public class Dialog_age
public static void main(String arguments[])
String Input_Age;
int age;
Input_Age = JOptionPane.showInputDialog("Enter a number.");
age = Integer.parseInt(Input_Age);
JOptionPane.showMessageDialog(null , "Your age is " + age);
System.exit(0);
}Whenever i run this program or a program similar to that program. I get the Runtime Error (anytime i run the program on a command prompt, but if i run it on my jGRASP it runs ok!): java.lang.UnsatisfiedLinkError.
Here is my Error Message:
C:\java>java Dialog_age
Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.font.FontManager.initIDs(
Z)V
at sun.font.FontManager.initIDs(Native Method)
at sun.font.FontManager.access$000(Unknown Source)
at sun.font.FontManager$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManager.<clinit>(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.addDirFonts(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.access$200(Unknown Source)
at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at javax.swing.RepaintManager.<clinit>(Unknown Source)
at javax.swing.UIManager.initialize(Unknown Source)
at javax.swing.UIManager.maybeInitialize(Unknown Source)
at javax.swing.UIManager.getDefaults(Unknown Source)
at javax.swing.UIManager.getString(Unknown Source)
at javax.swing.UIManager.getString(Unknown Source)
at javax.swing.JOptionPane.showInputDialog(Unknown Source)
at javax.swing.JOptionPane.showInputDialog(Unknown Source)
at Dialog_age.main(Dialog_age.java:14)
But a few weeks ago i could run the program on a command prompt , perfectly!
I recently came to the conclusion that it has something to do with me upgrading my IDE(jGRASP) and Java language.
Now, since thats the case how do i resolve this error. That BUGGING the heck out of me!
Thanks and Peace!Hi,
Check which JRE/JDK is used by your jGRASP.Then set the path environment variables according to that.
I'm afraid you have multiple jre/jdk in your system and one of that has problem with native libraries.
Best of luck!! -
How to create variables at runtime
Hi,
I need to know how can i create variables at runtime.
or is their anything like array that we create in 'C' if yes . how can i define its size at runtime.
Thanks,
Dev.In forms, either record groups or pl/sql tables of records give similar functionality to an array. You have full programatic control of either but with completely different syntax. Record groups integrate well with certain forms built-ins and features (eg LOVs and Tree items). PL/sql tables integrate well with other pl/sql such as stored procedures. Unlike an array, a pl/sql table may be SPARSE (index numbers need not be sequential), and UNBOUNDED (no need to declare the number of rows).
-
How to resolve Exception in thread "main" java.lang.NoSuchFieldError: strm
Hi,
Aplogies, if I am posting this in the wrong place, else please guide me.
We were running JBoss server 4.2.3 GA with Java 5 Update 19 in Solaris 10.
Details of uname command in Solaris box is,
uname -a
SunOS uktapp06 5.10 Generic_125100-10 sun4us sparc FJSV,GPUZC-M
Due to performance issues we need to upgrade to latest Java [Java 6 Update 21] and when I tried to run JBoss with 64 bit mode using Java options like,
JAVA_OPTS="*-d64* -Xms3g -Xmx3g -XX:ThreadStackSize=512 -XX:+UseParallelGC -XX:MaxPermSize=256m -XX:NewRatio=2"
I get the below error,
Exception in thread "main" java.lang.NoSuchFieldError: strm
at java.util.zip.Inflater.initIDs(Native Method)
at java.util.zip.Inflater.<clinit>(Inflater.java:68)
at java.util.zip.ZipFile.getInflater(ZipFile.java:266)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:212)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)
at java.util.jar.JarFile.hasClassPathAttribute(JarFile.java:465)
at java.util.jar.JavaUtilJarAccessImpl.jarFileHasClassPathAttribute(JavaUtilJarAccessImpl.java:21)
at sun.misc.URLClassPath$JarLoader.getClassPath(URLClassPath.java:903)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:302)
at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)I have posted this at JBoss Forum here, http://community.jboss.org/message/553489
and got a response that we need to reinstall Java 6 Update 21 in Solaris
However my System admin verified and said there are no issues in Java installation.
I could run a HelloWorld sample program using the same Java options [with -d64 flag] and that runs perfectly.
I do not have any clue because I do not think there is any issues in the JBoss server
From the above trace, it is failing at a native call and not picking up the required libraries.
Please also let me know the below
1. Whether I need to set any environment variables?
2. Whether the installation would have been corrupted and we need to reinstall?
Thanks,
PrabhuHi Franco,
Yes, I solved that by reinstalling Java 6 Update 21.
There are three versions for Solaris namely, SPARC, x64 and x86. Our platform is SPARC and I think System admin has installed the wrong version instead of installing SPARC version of Java.
After installing SPARC version of Java this got resolved. And I confirmed everything is fine by running a small program as below. You can run this program from command line using the -d64 flag. If the installation is wrong you will get the same exception as I mentioned.
public class Analyzer {
public static void main(String args[]) throws Exception{
InputStream fin = new FileInputStream(args[0]);
int iSize = fin.available();
byte mvIn[] = new byte[iSize];
fin.read(mvIn,0,iSize);
fin.close();
String strText = new String(mvIn);
PrintStream fout = new PrintStream(new FileOutputStream(args[0]+".csv"));
fout.println("Before,After,Seconds");
Pattern p = Pattern.compile("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
Matcher m = p.matcher(strText);
while(m.find()){
fout.println(m.group(1)+ "," + m.group(2) + "," + m.group(3));
fout.close();
}Hope this helps.
Regards,
Prabhu -
How to pass variable form javacript to java BackingBean
Hello,
I am trying to pass variable from Javascript method (which is written in jspx) page to a Java BakingBean.
here is the Javascript code:
<SCRIPT type="text/javascript">
function OnSave() {
alert("The signature you have taken is the following data: " + SigPlus1.SigString);
</SCRIPT>
of course, this method will be called after the use press save button as follow:
<INPUT id="submit1" name="Save" type="submit" value="Save" onclick="OnSave()"/>
As you can see this Javascript will alert the result to the user. Instead I want to pass the object ( SigPlus1) to a Java Bean.
I am using ADF technology with JDveloper 11.1.2.3here is the answer:
ADF RichClient API - af:serverListener -
Help! how to resolve the charset problem in Java developping
I write a JDBC servlet to access oracle 7.2.3 database,
and I use jdbc-thin driver,but when I insert a chinese record or
query a record including chinese through a web form It looks like
"???" and don't find the record.,I don't know if the driver
doesn't support unicode.please help me!!
nullFred Hou (guest) wrote:
: I write a JDBC servlet to access oracle 7.2.3 database,
: and I use jdbc-thin driver,but when I insert a chinese record
or
: query a record including chinese through a web form It looks
like
: "???" and don't find the record.,I don't know if the driver
: doesn't support unicode.please help me!!
We are dealing with the similar type of issues. Haven't figured
it all out yet, but check and see if your database is set up to
store asian characters. ??? mean that the database didn't know
how to store the characters. My guess is that your database's
character set is US7ASCII, and it needs to be a multi-byte
character set.
null -
How get xsl variable after transformation in java-code?
Edited by: pasash on Sep 2, 2009 3:43 AMOf course after the transformation is complete, its internal state is not accessible to the caller. In particular those variables aren't accessible.
Perhaps you could explain what you are trying to do? Not the question you asked, the question you incorrectly thought it was the answer to. -
How to dynamically configure JPA setting at runtime using java code?
Hi,
I am new to EJB 3.0 and JPA. I am trying to help my company to deploy the use of JPA in EJB3.0. Currently, i am trying out with OpenJPA in IBM Webshpere Application Server 7.0. We have four different WAS servers running for testing, system integration testing, user testing and production respectively, and in each region, the configurations for data source, JDBC username and password, schema, etc are different. So i think i would need to configure the JPA setting during runtime using Java code that determines which is the environment. And apparently i am stuck with the limited knowledge i have.
1) I understand that i could override the JDBC in the persistence xml by creating entity manager using entity manager factory. But is it possible that i do similar thing by using inejction of persistence context on entity manager to obtain a container managed entity manager?
2) Alternatively, it is possible to create multiple persistence unit in the XML and inject different PU to the entity manager, am i right? But how to inject dynamically since @PersistenceContext(unitName="xxx") only accepts constant declaration.
3) Is it possible that the JDBC username and password are read from properties file?
Thanks for your help in advance!Hi
Thanks for the reply.
Are you saying that i have to configure the data source authentication to the backend DB2 using the JAAS-J2C? Correct me if i am mistaken. I guess i am unable to do so as the application server setup only contains one data source, and the server hosted a number of applications. Every applications has their own JDBC username and password supply to the data source (the ID supplied at the DB2 side will decide which resource can access) and thus, i have to supply the username and password at runtime. Talked to the server guy and seems that it is not feasible to have seperate datasource for each applications as considered to the volume of applications hosted inside the server.
Any suggestion? -
How to create multiple component instances at runtime using java
Hi,
I need to create component instances at runtime using java.I found ComponentSet.add method.But I am not finding a way to get handle of ComponentSet.
I see methods with params of IRuntimeNode.But how to get ComponentSet from IRuntimeNode.
If anybody knows or have sampel code then please share with me.
thanks,
ashokAshok --
This is a common challenge for those using Configurator Extensions with multiple instantiation for the first time. The problem is that the CIO's representation of the structure for multiply-instantiable Components differs slightly from what both Configurator Developer users and Configurator Runtime users see in those respective applications. Multiply-instantiable Components are not direct children of the Model in which they're defined. Internally, there is an entity that sits between the parent Model and the instantiable Components; that intermediate entity is the ComponentSet object you've found in the CIO documentation.
If the name of your multiply-instantiable Component is "My Component", then its ComponentSet may be accessed simply by calling getChildByName("My Component") on its parent Model; a List of the instantiated Components may be accessed with the ComponentSet's getChildComponentNodes() method, and instances may be added and deleted using its add() and delete() methods.
Hope this helps.
Eogan -
I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
Permission Problems in RDBMS 8.1.6 and 8.1.7".
It will be accessible from Oracle Support's "Metalink" site.
"How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
Problem Description
Periodically an application running in the Enterprise Java Engine
(EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
the "Aurora JVM" will fail with a "java 2" permissions error having the
following format :
Note : Message shown below have been reformatted for easier readability.
java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
usually followed by a detailed error message similar to one of the following
messages :
Example # 1
java.security.AccessControlException: the Permission
(java.net.SocketPermission hostname resolve)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 2
java.security.AccessControlException: the Permission
(java.util.PropertyPermission * read,write)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 3
java.security.AccessControlException: the Permission
(java.io.FilePermission \matt1.gif read)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Explanation
The java 2 permission stated in line # 2 of each of the above "Examples"
has not been granted to the user specified in line 4 of the above "Examples".
Solution Description
The methodology to solve this issue is identical for all java 2 permissions
cases.
1) Format a call "dbms_java.grant_permission" procedure as described below.
2) Logon as SYS or SYSTEM
3) Issue the TWO commands shown below
4) Logoff as SYS or SYSTEM
5) Retry your application
For Example # 1
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.net.SocketPermission',
'hostname',
'resolve');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 2
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.util.PropertyPermission',
'read,write');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 3
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.io.FilePermission',
'\matt1.gif',
'read');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
References
For more details on java 2 permissions and security within the EJE, review
Chapter 5, in the Java Developer's Guide. entitled,
"Security For Oracle8i Java Applications"
The RDBMS 8.1.7 version can be found at :
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htmHi, Don,
I solved the problem of security exception I mentioned at java procedure topic as following:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException
I tried to use your solution as following:
call dbms_java.grant_permission('SDE', 'java.net.SocketPermission', 'ORCL.COHPA.UCF.EDU','resolve');
but SQL*plus gave me a error message:
invalid collumn.
What's the problem?
However, I call a grant command as following:
SQL> grant JAVASYSPRIV to sde;
and then that exception is gone. What's the difference between dbms_java.grant_permission and grant command?
Thanks
Bing
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don -- oracle support:
I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
Permission Problems in RDBMS 8.1.6 and 8.1.7".
It will be accessible from Oracle Support's "Metalink" site.
"How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
Problem Description
<HR></BLOCKQUOTE>
null -
How to resolve the runtime portal error which occurs during entering a room
Hi All
I have created a room of type "Sap_Team_Room" and then assigned it to one role when i am trying to enter room it is giving me the following error
"Portal Runtime Error
An exception occurred while processing a request for :
iView : pcd:portal_content/com.sap.ip.collaboration/Rooms/80dd2995-e186-2a10-c58f-d9411ca9c30e/workset/com.sap.netweaver.coll.DocumentsAndLinks_0_0/RoomQuickLaunch
Component Name : null
Page could not create the iView."
Please Can anybody tell me how to resolve it.
Thanks in Advance
Thanks and Regards
Nishita SalverHi,
Have you made any changes in com.sap.portal.runtime.logon.par ?? because the error specifies error in authschemes computation, this means authschemes.xml file is not modified if you have modified logon par file. Is this correct??
Regards,
Ameya -
How can I assign javascript variables to jsp or java variables.?
How can I assign javascript variables to jsp or java variables.?
See I have generated some variables in the javascript which is on the jsp page. I want to assgin these variables to the jsp vaiables. Or how can I access javascript variables from jsp on the same jsp page.
-
How to (if possible) change the measfilename variable at runtime
Hello / Hallo (in Deutsch unten)
Is it possible to change the measfilename at runtime? I have two HBM MGC+ which need a pretty long time to initialize. Both are installed in a car. For each measurement we make I must run the DAC scheme make the measurements an stop it. Then ich change the filename for the data and we make the next measurements. This takes a lot of time.
I want to start run the DAC scheme for only one time and let it run. Then I want to trigger the measurements with buttons setting triggerconditions in the DAC scheme. To trigger the recording of the data is not the problem but how can I change the measfilename variable at runtime so that each new measurement is saved in a new file?
The example with the GenFileName function is interesting but not the solution for my problem...
has anyone an idea?
Thanks a lot.
Sebastian
DEUTSCH:
Hallo,
kennt einer eine Möglichkeit die Variable MeasFileName bei laufender Messung zu verändern? Ich möchte die Messung starten... das Abspeichern geschieht über Triggerbedingungen die von Button im DAC Plan während der Messung gesteuert werden. Ziel wäre für jede neu getriggerte Messung je eine neue Datei mit einem neuen (in der Laufzeit eingebbaren) Dateinamen anzulegen.
Hat das oder ähnliches schonmal einer gemacht und kann sachdienliche Hinweise abgeben ?
Danke schonmal.
Grüße SebastianHallo,
ich habe noch ein wenig herumprobiert aber es klappt nicht so richtig. Ich habe noch folgendes versucht: Daten ins Datenportal ablegen und immer nach Ende einer einzelnen Messung per Button eine Autosequenz aufrufen die die Daten in eine Datei schreibt (Dateiname über Dialogfeld eingebbar). Das klappt auch... nur wenn ich dann in der Autoseq. den Datenbereich komplett lösche (DATADELALL) und eine neue Messsequenz starten will stürzt das Messprog. mit Runtimeerror ab. Irgendwie kommt der vermutlich nicht klar damit, dass der Messwertzähler während der Laufzeit wieder auf 0 gesetzt werden muss.
Eine fortlaufende Speicherung mit anschließender Sortierung wollte ich auch schon machen aber bei fast 200 Messkanälen mit 800Hz häufen sich einfach soviele Daten an, dass die Messdatei riesig werden würde.
Grüße Sebastian -
How to set variable to run java and j2ee
how to set variable to run java and j2ee
Please ask a specific and comprehensible question. Consider describing with less vagueness the actual current problem that you are encountering.
-
In Excadel :
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.EvaluationKeyRequest_jsp._jspService(EvaluationKeyRequest_jsp.java:229)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
In console:
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_08\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%jhome%;C:\program files\java\jdk1.5.0_08\bin
Jan 5, 2007 7:48:15 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 5, 2007 7:48:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1062 ms
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jan 5, 2007 7:48:15 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 5, 2007 7:48:16 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jan 5, 2007 7:48:16 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Jan 5, 2007 7:48:16 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='ApplicationResources', returnNull=true
Jan 5, 2007 7:48:16 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jan 5, 2007 7:48:17 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Jan 5, 2007 7:48:17 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 5, 2007 7:48:17 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 5, 2007 7:48:17 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/156 config=null
Jan 5, 2007 7:48:17 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 5, 2007 7:48:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2125 ms
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
Jan 5, 2007 7:48:26 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.EvaluationKeyRequest_jsp._jspService(EvaluationKeyRequest_jsp.java:229)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
I've tried solving this,in so many ways...even changes the server.xml webapps..pl help me how to resolve thisroot cause
java.lang.NullPointerException
org.apache.jsp.EvaluationKeyRequest_jsp._jspService(EvaluationKeyRequest_jsp.java:229)So what are you doing in EvaluationKeyRequest.jsp?
Something in there is generating a null pointer exception.
Try commenting out bits and pieces so you can narrow down what causes the null pointer.
Editing server.xml shouldn't affect anything - the error is in your JSP.
Maybe you are looking for
-
Cannot send email from sbcglobal account
Does anyone from Apple take what's discussed here back to a department that is useful in getting bugs fixed? I hope so. I am making this post although I know that NONE of you have an answer to my question that is satisfactory. I will come back to thi
-
Error while invoking web service over SSL
While making a SSL Connections to web service i am getting the below mentioned error in spite of configuring the certificate provided by the client onto WLS. I tried adding the certificate to the default DemoTrust and DemoIdentity Keystores. The erro
-
Bridge crashes when hitting spacebar to go into preview mode.
Hello there, So, whenever i've been in Bridge for a little while and want to do a full preview mode by hitting the spacebar I get the dark grey screen and after awhile "the spinning beach ball of death" appears. This continues until I have to force q
-
This particular website previously had a "wrong" password. No matter how many times I changed the password, the website failed to issue a "Changed password" update. So I removed it altogether. Now the website doesn't appear in any of the Options scre
-
Dropdown list in a module pool screen
Hi, There are 2 radio buttons in module pool for 2 Plants. Now another plant has to be added in the screen. The radio button has to be replaced with a drop down list for these 3 plants. How can we acheive this? Thanks, Kumar.