|
Bacon???
See if you can crack this: fb29a481781fe9b3fb8de57cda45fbef
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
|
hello every one
i am new to web services and i have develop web service client i netbeans using wsdl and it work will
but now i want to develop web services client without knowing the wsdl i just now the link of the web service like: aaaa.php
can i do it because i search but i did not find any results
|
|
|
|
|
|
thanks is what you attach example
can you guide me to tutorial , actually the web service is public i did not implement it
its news page and i want to read its content and search through it
modified on Wednesday, December 1, 2010 10:29 AM
|
|
|
|
|
also the page have feeds and i know the xml version o the web page but i do not know the wsdl
i hop any one can help
|
|
|
|
|
pleas i need help
|
|
|
|
|
Hi everybody
I want to develop a fuzzy expert system but I don't know what to use
Do you recommend jFuzzylogic (Eclipse plug-in) or Matlab or an expert system shell like (FuzzyCLIPS or JESS)?
I prefer the easiest and highly supported one.
Thank you in advance and sorry if this is not the suitable section
|
|
|
|
|
YMMV, but I developed my own, first in C some 15+ years ago, then updated parts of it in F#[^].
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Ive used drools before; its easy to understand and implement.
|
|
|
|
|
Hi all,
I'm having an issue with PDFBox (1.3.1) - I'm using a PDF with AcroForms to basically pull off a 'mail merge'. I am successfully populating the fields with data, but what I want to do now is 'render it down' or 'flatten' it. I don't want these fields to be editable in the final result. (not entirely sure I'm communicating my intention clearly here, let me know if clarification is needed)
I've found this post that says to "remove all fields from [the] acroform". I've tried this in a number of ways:
pdfAcroForm.getFields().clear();
and...
pdfAcroForm.setFields(new ArrayList());
and...
Iterator<PDField> fields = pdfAcroForm.getFields().iterator();
while (fields.hasNext())
{
PDField field = (PDField)fields.next();
field.setAcroForm(null);
}
and variations thereof...
while typing this I thought to try:
pdfAcroForm.setFields(new COSArrayList());
maybe that will fix it?
Anyway, does anyone know how to do this? I have this niggling feeling that it's a language barrier (I'm a native C# speaker). I also have a niggling feeling that the aforementioned article is a big red herring that's taken me down the road to the dark side...
Any help would be MUCH appreciated
|
|
|
|
|
[Caveat - I am not familiar with API you are using]
You should not need to remove the form fields. The pdf document allows itself to be locked, once locked the fields become ineditable.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
|
|
|
|
|
hi all,
I'm working on a program that suppose to read data from a text file and then creates a linked list and outputs the data sorted by last name.
But I'm getting the following errors:
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Unknown Source)
at mainStudnetProg.createStudentList(mainStudnetProg.java:36)
at mainStudnetProg.main(mainStudnetProg.java:15)
Where is the problem?!
main
import java.io.*;
import java.util.*;
public class mainStudnetProg
{
public static void main(String[] args)
{
StudentList studentList = new StudentList();
try
{
Scanner infile = new Scanner(new FileReader("C:\\studentInfo.txt"));
createStudentList(infile, studentList);
}
catch (FileNotFoundException fnfe)
{
System.out.println(fnfe.toString());
}
}
public static void createStudentList(Scanner infile, StudentList studentList)
{
String fName;
String lName;
int id;
Student newStudent;
while (infile.hasNext())
{
fName = infile.nextLine();
lName = infile.nextLine();
id = infile.nextInt();
infile.nextLine();
newStudent = new Student();
newStudent.setStudentInfo(fName, lName, id);
studentList.insertFirst(newStudent);
}
}
}
modified on Friday, November 26, 2010 10:59 PM
|
|
|
|
|
Without copying the code into eclipse:
No line found
at java.util.Scanner.nextLine
public static void createStudentList(Scanner infile, StudentList studentList)
{
String fName;
String lName;
int id;
Student newStudent;
while (infile.hasNext())
{
fName = infile.nextLine();
lName = infile.nextLine();
id = infile.nextInt();
infile.nextLine();
newStudent = new Student();
newStudent.setStudentInfo(fName, lName, id);
studentList.insertFirst(newStudent);
}
}
This method is the only position where "nextLine" is used.
The 3. "nexLine" seems strange to me - you do not handle any replies there. So why do you read the next line?
regards
Torsten
I never finish anyth...
|
|
|
|
|
while (infile.hasNext())
{
fName = infile.nextLine();
lName = infile.nextLine();
id = infile.nextInt();
infile.nextLine();
...
}
Your call to hasNext() only returns true if there is a line ready to be read, it does not guarantee that there will be three lines waitng, so your code may well fail as you see.
BTW Please do not post your complete project in future, but just the lines relevant to the problem.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
just the lines relevant to the problem.
... if only he knew which lines are relevant...
regards
Torsten
I never finish anyth...
|
|
|
|
|
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
I wasn't sure which lines were relevant but I knew I had a problem reading the file in main.
|
|
|
|
|
Babylon Lion wrote: Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Unknown Source)
at mainStudnetProg.createStudentList(mainStudnetProg.java:36)
at mainStudnetProg.main(mainStudnetProg.java:15)
Why don't you take advantage of the information provided? a traceback shows exactly where the program is when the problem occurs. It is inside nextLine (not yours, so less relevant), called by createStudentList (yours) and to be more precise: in file mainStudnetProg.java at line 36.
BTW: tell your IDE to always show line numbers in source file windows, and you're bound to see the problem pretty soon.
|
|
|
|
|
Thank you all for the replies. I modified the code, and now it compiles ans run with no errors. But it doesn't output anything?!
Any clue?
import java.io.*;
import java.util.*;
public class mainStudnetProg
{
public static void main(String[] args)
{
StudentList studentList = new StudentList();
try
{
Scanner infile = new Scanner(new FileReader("C:\\studentInfo.txt"));
createStudentList(infile, studentList);
}
catch (FileNotFoundException fnfe)
{
System.out.println(fnfe.toString());
}
}
public static void createStudentList(Scanner infile, StudentList studentList)
{
String fName;
String lName;
int id;
Student newStudent;
while (infile.hasNextLine())
{
if (!infile.hasNextLine()){
break;
}
infile.hasNextLine();
fName = infile.nextLine();
if (!infile.hasNextLine()){
break;
}
infile.hasNextLine();
lName = infile.nextLine();
if (!infile.hasNextInt()){
break;
}
infile.hasNextInt();
id = infile.nextInt();
if (!infile.hasNextLine()){
break;
}
infile.hasNextLine();
infile.nextLine();
newStudent = new Student();
newStudent.setStudentInfo(fName, lName, id);
studentList.insertFirst(newStudent);
}
}
}
|
|
|
|
|
Babylon Lion wrote: it doesn't output anything?!
Any clue?
If there are no run-time exceptions, then the only way to get some output is by calling a method that outputs something. Can you point us to some of those, as I don't see any.
BTW: your hasNextLine() and nextLine() stuff is quite a mess IMO.
May I suggest you reconsider your current code, clean it up, and then do one of these two things:
1. add logging statements that show where you are; a few System.out.println("Now going to ..."); could do wonders.
2. learn to use your debugger, with breakpoints and single-stepping, so you can slowly execute your code and look at the statements being executed one at a time.
Also, if you're new to programming, maybe it would be wise:
1. to study an introductory book of your choice, from the start;
2. to start out with simpler stuff, probably from said book.
Good luck.
|
|
|
|
|
When i run openoffice in applet i got this exception, This not getting frequently, sometimes oo writer loads in applet. But in some situations i got this exception. Please help
My os is windows xp
oo version is 3.2
==============
com.sun.star.uno.RuntimeException: Could not create system bitmap!
at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:177)
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:143)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:335)
at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:304)
at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:91)
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:639)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:151)
at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:133)
at $Proxy9.initialize(Unknown Source)
at com.sun.star.comp.beans.Frame.initialize(Frame.java:65)
at com.sun.star.comp.beans.abbeans.loadFromURL(abbeans.java:586)
at com.sun.star.comp.beans.OOoBeanViewer$11.run(OOoBeanViewer.java:357)
at com.sun.star.comp.beans.OOoBeanViewer$11.run(OOoBeanViewer.java:341)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.star.comp.beans.OOoBeanViewer.createNewTranscript(OOoBeanViewer.java:341)
at com.sun.star.comp.beans.OOoBeanViewer.access$1300(OOoBeanViewer.java:93)
at com.sun.star.comp.beans.OOoBeanViewer$16.run(OOoBeanViewer.java:1279)
at com.sun.star.comp.beans.OOoBeanViewer$16.run(OOoBeanViewer.java:1264)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.star.comp.beans.OOoBeanViewer.openDocument(OOoBeanViewer.java:1264)
at com.sun.star.comp.beans.OOoBeanViewer$12.run(OOoBeanViewer.java:509)
at com.sun.star.comp.beans.OOoBeanViewer$12.run(OOoBeanViewer.java:479)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.star.comp.beans.OOoBeanViewer.loadFile(OOoBeanViewer.java:479)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass$MethodInfo.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass$MemberBundle.invoke(Unknown Source)
at sun.plugin2.liveconnect.JavaClass.invoke0(Unknown Source)
at sun.plugin2.liveconnect.JavaClass.invoke(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$DefaultInvocationDelegate.invoke(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo.doObjectOp(Unknown Source)
at sun.plugin2.main.client.LiveConnectSupport$PerAppletInfo$LiveConnectWorker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
|
|
|
|
|
You are running Open Office in an applet frame - is that right?
Or are you creating an Applet in a Open Office document?
no matter which way you're doing it - seems to me like a Open Office Issue: Support @ Open Office.org
regards
Torsten
I never finish anyth...
|
|
|
|
|
Yes, Am using OOoviewer from OO3.2 sdk. I have already posted this issue in Support @ Open Office.org . I didnt got any support from there. Please help me
|
|
|
|
|
Hey!
I changed work place and my new company uses the Window Builder / SWT Designer. I'm used to make my GUIs code based, leading to a clean and smart code. The Window Builder just pushes the code in, not formatted or using basic OOP stuff like capsulation or any method based variables (every component is set as a class member).
so how do you doing your JAVA GUIs?
regards,
Torsten
I never finish anyth...
|
|
|
|