Problem reading a string:Plz help
hi gurus
I am reading some files (in a loop written by some other program). I am reading them line by line and I tokenize each line by space using split function.
split(" ");
In resultant string array, somewhere I found NULL or nothing , for example, I print all tokens and it prints like this
?penguins/nns? // I print ?on both sides to check any spaces
?march/nnp?
?? // now here is problem.. both ? combined..nothing between them
I have checked the file.. this problem occurs where there are multiple spaces between tokens of a line...if I remove others and keep one space it works..
Now I want to implement a check in program i.e. where there is SPACE or NULL, I should not process it but It does not work
Please help
Edited by: kimskams on Sep 30, 2008 4:51 AM
Thanks a Lot Sir
There is another problem that I am facing now..
I am using this statement
while ( (rec=dis.readLine() ) != null )to read a line from a file. What I have observed is that if there is a gap between two line then it stops executing file there and even does not go for further files..
Can you identify the problem or better solution
thanks
Similar Messages
-
Hello. I have problem here can someone plz help. I have usb of 32 gb but i have problem with it while i was trying to partition of it and it fails and my usb disappear from finder and desktop i have tried every possible thing but nothing works .
Yea i tried in disk utility and its got faiiled and the partitation has deleted and when i tried to replug the usb msg show up by saying usb not compaitnle. With this mac and take me to disk utility and thanks for replying
-
Problem reading from file, please help me.
i have a file named test.txt like this.
12 321
13 321321
11 421
10 421
1 4253
6 3214
3 4214
1 46543
4 5435
5 54353
1 5435
3 7654
im trying to write a class that has a method which returns a String[12][2] .
The String should be like this:
String[0][0] = 12
String[0][1] = 321
String[1][0] = 13
String[1][1] = 321321
here is my class
import java.io.*;
public class Reader{
public Reader (){
public String[][] readfromFile () {
int nreg = 12;
int i=0;
int j=0;
int quebra = '\n';
int ent=0;
BufferedReader reader;
String[][] saida = new String[12][2];
char[] cod = new char[5];
char[] cod1 = new char[5];
try {
FileReader file = new FileReader("test.txt");
reader = new BufferedReader(file);
while (i<nreg) {
while(ent != ' ') {
ent = reader.read();
cod[j] = (char) ent;
j++;
saida[0]=String.valueOf(cod) ;
while (ent != quebra) {
ent = reader.read();
cod1[j] = (char) ent;
j++;
saida[i][1]=String.valueOf(cod1) ;
i++;
catch (IOException ioe) {
System.out.println ("I/O Exception occurred!");
return saida;
Im getting problem with while and dont know how to deal to make my program runs fine.
My static void method is in another class
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
public class exe2{
public static void main(String args[]){
String[][] saida = new String[12][2];
try {
Reader teste = new Reader();
saida = teste.readfromFile();
catch(Exception e){
System.out.print(e.toString());
for (int i=0;i<12;i++)
System.out.println(saida[0]);
Any help is really apreciatedI have modified this class, but i still have problems
import java.io.*;
public class Reader{
public Reader (){
public String[][] readfromFile () {
int nreg = 12;
int i=0;
int j=0;
int quebra = '\n';
int ent=0;
BufferedReader reader;
String[][] saida = new String[12][2];
char[] cod = new char[10];
char[] cod1 = new char[15];
try {
FileReader file = new FileReader("test.txt");
reader = new BufferedReader(file);
while (i<nreg) {
j=0;
while(ent != ' ') {
ent = reader.read();
cod[j] = (char) ent;
j++;
saida[0]=String.valueOf(cod) ;
j=0;
while (ent != quebra) {
ent = reader.read();
cod1[j] = (char) ent;
j++;
saida[i][1]=String.valueOf(cod1) ;
i++;
catch (IOException ioe) {
System.out.println ("I/O Exception occurred!");
return saida;
I see that there is a problem with cod1 because when i run this class
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
public class exe2{
public static void main(String args[]){
String[][] saida = new String[12][2];
try {
Reader teste = new Reader();
saida = teste.readfromFile();
catch(Exception e){
System.out.print(e.toString());
for (int i=0;i<12;i++)
System.out.println(saida[0]);
I hava an arrayoutofbound exception 15 and displays null null null ....
any hint? -
Problem not solving..plz help..
Hi all...i'm tired of written problems here of x2-01.....1..It shows double-2 files in music player...2..when i download any game or app & try to move them to any folder of memory caed..it says name already exists or name already exists in target folder1..2 or any other...(some apps or games i able to move)...i went nokia care many times..but no use..i'm tired of restore it's factory settings many times...(all problems with memory card,so i think it's memory card defective..i already changed it..but no use..before i have microsd & now i have microsdhc)..so please tell me why it happens..is problem with memory card or anything else...plz help...!
Same problem here ..but NO solution yet ..
BTW this may make interesting reading ... -
Problems with installing ANT, plz HELP me!!
I have a problem when I install ANT. I can do the build process but I can't do the install process, I got this msg in the cmd:
C:\Program\jwsdp-1_0_01-tutorial\jwsdp-1_0_01\docs\tutorial\examples\gs>ant build
Buildfile: build.xml
init:
prepare:
build:
BUILD SUCCESSFUL
Total time: 0 seconds
C:\Program\jwsdp-1_0_01-tutorial\jwsdp-1_0_01\docs\tutorial\examples\gs>ant install
Buildfile: build.xml
init:
prepare:
build:
install:
BUILD FAILED
Total time: 1 second
C:\Program\jwsdp-1_0_01-tutorial\jwsdp-1_0_01\docs\tutorial\examples\gs\build.xm
l:82: java.io.IOException: Server returned HTTP response code: 401 for URL: http
://localhost:8080/manager/install?path=%2FGSApp&war=file%3AC%3A%5CProgram%5Cjwsd
p-1_0_01%2Fdocs%2Ftutorial%2Fexamples%2FGSApp%2Fbuild
Any1 know about this problem, PLZ help me!!
/ThomasI think you need to create the build.properties file, as documented in:
http://java.sun.com/webservices/docs/1.0/tutorial/doc/GettingStarted2.html#73059
Regards,
Dale Green -
Problems with the Strings Urgent Help needed
I have a unique problem. I have to retrieve a particular value from a String. I tried using String tokeniser but in vain. I cannot use java.util.regex package to match the expressions as the version of java on the client m/c is 1.1.8 and they are not ready to upgrade the same.
The string From which I have is a very long one running into more than 100 lines which can vary from case to case all I know is to retrieve the value which is just in front of "TestValue" which occur only once in the String Can Anybody suggest a bettter alternative.
Thanx.
ebistrioStringTokenize on TestValueHow would you suggest that was done?
As I understand it StringTokenizer tokens = new StringTokenizer(string, "TestValue"); would not tokenize on the string "TestValue" but on any of the characters 'T', 'e', 's', 't', 'V', 'a', 'l' or 'u'. This is a common java pitfall in my opinion due to bady named parameters (I feel it should be called "delims" not "delim") or in other people's opinion due to bad parameter type (should be a char[] not a string).
A clearer explanation of the problem would help. -
I am facing a new problem with xml schema, plz help me
Hi @,
I am facing a problem with xml schema validation. Below is my code.
public void initialize(String cfgFileName) {
try {
try {
DOMParserWrapper parser = (DOMParserWrapper)Class.forName("dom.wrappers.DOMParser").newInstance();
parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",true );
parser.setFeature( "http://xml.org/sax/features/validation",true);
parser.setFeature( "http://xml.org/sax/features/namespaces",true );
parser.setFeature( "http://apache.org/xml/features/validation/schema",true );
parser.setFeature( "http://apache.org/xml/features/validation/schema-full-checking",true );
Document document = parser.parse(cfgFileName);
System.out.println("Vijay .. code .. damar\n");
}catch (org.xml.sax.SAXParseException spe) {
} catch (org.xml.sax.SAXNotRecognizedException ex ){
} catch (org.xml.sax.SAXNotSupportedException ex ){
} catch (org.xml.sax.SAXException se) {
if (se.getException() != null)
se.getException().printStackTrace(System.err);
else
se.printStackTrace(System.err);
}catch (Exception e) {
System.out.println("Caught unknown exception : \n");
e.printStackTrace(System.err);
System.out.println("Vijay .. code .. success\n");
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
//docBuilder.setErrorHandler(myErrorHandler);
cfg = docBuilder.parse(new File(cfgFileName));
cfg .getDocumentElement ().normalize ();
} catch (Exception e) {
e.printStackTrace();
In the above code I am parsing the xml file and i am doing schema validation. Schema validation is proper and it is validating correctly. Only problem is that, It is validating and showing error correctly correctly but it is not catching that error.
For clear understanding I am printing one statement before parsing and after parsing.
SYSTEM.OUT.PRINTLN("Vijay .. code .. damar\n") this is before parsing
SYSTEM.OUT.PRINTLN("Vijay .. code .. success\n") this is after parsing
Here what is happening means, It is validating correctly and showing error :
[Error] nw_layout-new.xml:800:97: Datatype error: Value 'y' does not match regular expression facet 'yes|no'..
Vijay .. code .. damar
Vijay .. code .. success
Here it is showing error and still continueing not catching.
Plz give solution for this.
Thanks
vijay KHello dipthebe,
Check out the articles below go through troubleshooting steps for your iPhone when the screen is unresponsive. You may want to try and restore your iPhone as a new device and then test out what happens when you miss a call to see if the issue is still present afterwards.
iPhone, iPad, iPod touch: Troubleshooting touchscreen response
http://support.apple.com/kb/ts1827
Use iTunes to restore your iOS device to factory settings
http://support.apple.com/kb/HT1414
Regards,
-Norm G. -
Still my problem is unsolved! PLZ help!
hi,
i'm using cookies in my application
1) in file1.jsp i'm setting the cookie as -----
Cookie cook11 = new Cookie("noOfRows","10");
response.addCookie(cook11);
2) in file2.jsp i'm retrieving that value as-----
ServletUtilities is user defined class
ServletUtilities su = new ServletUtilities();
Cookie[] cook = request.getCookies();
String strnoOfRows = su.getCookieValue(cook,"noOfRows","");
3) in file3.jsp i'm reseting the value of cookie as-----
ServletUtilities su = new ServletUtilities();
Cookie[] cook = request.getCookies();
Cookie cook1 = su.getCookie(cook,"noOfRows");
cook1.setValue(strnoOfRows1);
now the problem is after changing the cookie value by running file3 after that if i run file2 and check the cookie value it won't change as setted in file3.
These files are running in browser(IE/Netscape) only .
rather the application is web based.
when i start the application file1 runs then file2, which contains value of cookie same as set in file1...........
i'm providing an opportunity to client to change the cookie value in file3...................
now i want that if user run file2 again further it should show the changed value.
as per someones suggestion
i changed my file3 as...........
ServletUtilities su = new ServletUtilities();
Cookie[] cook = request.getCookies();
Cookie cook1 = su.getCookie(cook,"noOfRows");
cook1.setValue(strnoOfRows1);
response.addCookie(cook1);
BUT SILL MY PROBLEM HAS NOT SOLVED .......................PLZ TELL SOME SOLUTION.
-----AmitaCreate a new cookie and overwrite the old cookie instead of attempting to change it's value.
Cookie cook1 = new Cookie("noOfRows",strnoOfRows1);
cook1.setPath("/myApp");
response.addCookie(cook1); -
Oracle to Mysql character set conversion problem!!! PLZ HELP
Hi Experts,
I have created a database link from Oracle 10g to Mysql 5.
I have installed Oracle Gateway 11g for this purpose.
When i retreive the data from sql plus the text is displayed as question marks.
Oracle 10g Database character set is WE8MSWIN1252
Mysql character set --->latin1
Character set of ODBC connector for mysql is latin7
Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
when i login from sqlplus i get question marks!
Appreciate your help,
regardsthank you for replying damorgan,
my previous two threads in the "heterogeneous Connectivity" forum were for different issues, one was to enquire as to how i could connect from oracle to mysql(which i have marked as answered), the other is for error when i get when i tried accessing data(which i am still facing on my office machine ).
I followed the steps from these two threads and was able to successfully connect to mysql on my personal PC at home, but faced some problem with text not displayed so i created this thread.
I had created another thread similar to this in the globalisation support as i was facing issue with the character sets in a heterogenous setup, so wasen't clear as to which forum would be suitable for this issue.
My apologies to everyone if this has offended you. -
Html form-jsp retrieval problem..very urgent plz help
i have created the following html form.
<form method="POST" action="b.jsp" >
Insert Feed URL <input type="text" name=""></br></br>
<input type="submit" value="Search"> <input type ="reset" value ="Reset">now when i click search i should be able to get that url which i inserted in the text box through b.jsp which has the code for retrieving it. it is basically a .xml url. hence i have used
object.put("1", " ");
in the b.jsp(just a part of the code)
what value should i put in between the quotes(" ") so that i retrieve the info as per the url input in the html form.
kindly help
very urgent
cheersok i tried but i got the following error:
symbol : variable request
location: class org.apache.jsp.b_jsp.FeedServer
object.put("1",request.getParameter("feedURL"));
^
1 error
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:246)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)i also tried this
String feedURL = request.getParameter("feedURL");
object.put("1","feedURL");
but still errors
Generated servlet error:
.java:30: feedURL is already defined in org.apache.jsp.b_jsp.FeedServer
String feedURL = request.getParameter("feedURL");
^
Generated servlet error:
java:30: cannot find symbol
symbol : variable request
location: class org.apache.jsp.b_jsp.FeedServer
String feedURL = request.getParameter("feedURL");
^
2 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:246)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) -
Using the iCloud help screen I tried to import an Outlook contact in vcard format. iCloud tells me it is having trouble reading the vcard (which is 7.3k in size). Can someone help overcome this problem? Thanks.
The message says: "The payment method has been denied, try another method"
I'm living in the same country and city since I was born, so I don't think the location is the problem.
And yes, I paid with the card a meal in Burguer King today. And nothing more. -
Realtek HD Audio Problems... Plz Help!
I'm currently a temporary DJ for my friend, who's a professionalk DJ, and our party starts in an hour or so. My MacBook, the one I bought last Thanksgiving, the audio on windows won't work. I had Realtek HD Audio, the driver that was on my Leopard dvd. I have always kept my sound muted on XP, so maybe this could be a problem? But the audio won't play, and I've tried playing different mnedia players, Microsoft's WMP and Apple's iTunes. I tried playing a clip from YouTube, all won't play with sound. Any ideas or help??? Thanks.
oops. sorry, I just experimented, I plugged in my iPod earbuds into my laptop, and played the clip. The familiar click sound of the volume adjust was heard, and I pulled the earbuds out and beautiful audio came out on the speakers! So maybe its just the fact that I havent used the speakers on my laptop much. Thanks for looking anyway, and problem solved!
-
If you can solve this problem u r genius - plz help me
Hi
In my project in jsps i have ajax components also i have liabraries installed, my pages were running fine but
suddenly
my pages are showing following exceptions from last 2 days
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: javax.servlet.ServletException
com/sun/rave/designtime/faces/FacetDescriptor
Possible Source of Error:
Class Name: javax.faces.webapp.FacesServlet
File Name: FacesServlet.java
Method Name: service
Line Number: 209
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
Exception Details: javax.faces.FacesException
javax.servlet.ServletException: com/sun/rave/designtime/faces/FacetDescriptor
Possible Source of Error:
Class Name: com.sun.faces.context.ExternalContextImpl
File Name: ExternalContextImpl.java
Method Name: dispatch
Line Number: 327
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
javax.servlet.ServletException: com/sun/rave/designtime/faces/FacetDescriptor
Possible Source of Error:
Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
File Name: ViewHandlerImpl.java
Method Name: destroy
Line Number: 601
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)Others have run into similar things. See if one of these links offers any help and if not try to google for FacesServlet.java:209:
http://forum.sun.com/jive/thread.jspa?threadID=53007&messageID=203285
http://216.239.51.104/search?q=cache:AfLuf3bQkQAJ:swforum.sun.com/jive/thread.jspa%3FthreadID%3D53358%26tstart%3D0+FacesServlet.java:209&hl=en&gl=us&ct=clnk&cd=1
My guess is that something may have gotten corrupted (second link) unless someone changed something from the time it was working to the time it stopped working. -
During Foreach read another foreach - PLZ HELP!
Hi all powershell gurus out there.
I have a foreach which opens a URL from URLListl.txt and doing a
Measure-command on them. The result from Measure-command writes to event-log.
In another text file i have country list, like:
USA
Canada
Brazil
and so on....
I want in write eventlogs Message to read from this Text file and write it with the Measure-command result in Message part of the eventlog.
The below is my script which works fine but it creates two entries for each URL.
function Measure-Site
$URLListFile = "C:\yourname\URLList.txt"
$URLList = Get-Content $URLListFile -ErrorAction SilentlyContinue
Foreach ($Uri in $URLList)
$Time = Measure-Command {
C:\yourname\MainScript.ps1}
$Time.TotalSeconds
$countrycode = (Get-Content c:\yourname\URLListcountry.txt)
foreach ($SiteCode in $CountryCode)
$LogFileExist = Get-EventLog -list | Where-Object { $_.LogDisplayName -eq "Scriptcheck" }
if (! $LogFileExist)
New-EventLog -LogName "Scriptcheck" -Source "Scripts"
if ($Time.Totalseconds -lt 25)
Write-EventLog -LogName "Scriptcheck" -Source "Scripts" -EntryType information -EventId 100 -Message " $SiteCode `nTotal Time: $Time"
elseif ($Time.Totalseconds -gt 25)
Write-EventLog -LogName "Scriptcheck" -Source "Scripts" -EntryType warning -EventId 101 -Message " $SiteCode `nTotal Time: $Time"
if (Get-Process -name iexplore -ErrorAction SilentlyContinue)
Stop-Process -Name iexplore
Measure-SiteHi Arash,
I’m writing to just check in to see if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
If you have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support -
Noobish question on strings-plz help
Whats wrong with this code?
public String name(){
String str="hi";
if(str.equals("hi"))
return str;
Why is it saying "This method should return a result of type string"?
Regards.public String name(){
String str="hi";
if(str.equals("hi")) {
return str;
// if above if statement is false code gets to here
// where is the return statement?
}The compiler doesn't give a shit about evaluating the if statement to see that it can only be true. All the compiler looks at is that when the if statement is false there is no return statement.
Maybe you are looking for
-
ITunes deleting Outlook Contacts without Asking?
I just now removed a contact from my iPhone that existed both in my iPhone and in my Microsoft Outlook program. Then I synced the phone. iTunes deleted that contact from my Outlook. Not a single warning or prompt. It just went into a 3rd party applic
-
[Forms10] + Client_Ole2 problems on getting null cell
Hi, I've a little problem on excel file import to oracle form. When my excel cell have a value all works fine, but if i try to get a null cell value with "client_ole2.get_char_property" i get the WUO-714 error. I've used the same function in oracle f
-
Sender RFC and JDBC communication channels required to be activated
Hello Guys, Whenever we have a Oracle restart after the server is shut down for maintainence . The sender JDBC communication channel does not poll and we have to activate the channel again in the Integration Directory to make it work, is there any wa
-
How to build a redundant fiber optic ring
Hello everyone. I would like to connect 10 buildings with a redundant fiber optic ring and have a control room connect to te closet building in the ring to receive data from our process control systems which are in the buildings in the ring. They ar
-
Why is my iphone 5 safari history found in another person's iphone 5?
Both my mom and I uses Iphone 5. I had let her login to my itunes in her phone to let her download stuff and I didnt log out of it but i don't use iCloud either. So today, my mom asked me to help her search some things on the internet and passed me h