How to deal with #ifdef in .java files with javadoc tool?
My .java file included some '#ifdef' & '#endif' sentence. So when I used javadoc tool to generate the .html files, error happened. Can anyone give me some indication how to resolve the problem, provided that the source code can not be changed because it was written by others. Waiting for your reply and thanks in advance!
Hi, got the same problem, have stuck for all day on this and yield no progress.
my source code contain
#ifdef
and
#endif
it is source code (not comment), the only compile with a special preprocessing tool call
"sjpp.jar".
I need to generate Javadoc there.
the error is
[javadoc] C:\TEMP\cellml_visual_checkout\cellml_api\java\src\org\cellml\CNode.
java:101: illegal character: \35
[javadoc] #ifdef JENA
if I pass in encoding parameter when I do javadoc,
say, -encoding "PROPROC",
then there is different error
[javadoc] Constructing Javadoc information...
[javadoc] Standard Doclet version 1.5.0
[javadoc] Building tree for all the packages and classes...
[javadoc] java.lang.Error
[javadoc] at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEn
coder.java:361)
[javadoc] at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.ja
va:381)
[javadoc] at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
[javadoc] at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:146)
[javadoc] at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
[javadoc] at java.io.PrintWriter.write(PrintWriter.java:384)
[javadoc] at java.io.PrintWriter.write(PrintWriter.java:401)
[javadoc] at java.io.PrintWriter.print(PrintWriter.java:532)
[javadoc] at com.sun.tools.doclets.formats.html.HtmlDocletWriter.printLink
(HtmlDocletWriter.java:1045)
[javadoc] at com.sun.tools.doclets.formats.html.MethodWriterImpl.printRetu
rnType(MethodWriterImpl.java:361)
[javadoc] at com.sun.tools.doclets.formats.html.MethodWriterImpl.writeSign
ature(MethodWriterImpl.java:148)
[javadoc] at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder
.buildSignature(MethodBuilder.java:176)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javadoc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
any help will be appreciated.
thanks
Bill
Similar Messages
-
How to deal with special character in source file
Hi experts,
i am doing a file to file scenario in which my source file contains many special characters when i am puting this file into moni its going with the special character .My source file is a fixed length file so in content conversion i have specified the file length but due to these special charcters these field lenght is also varing.So please guide me how to deal with these special characters in sender adapter
regards,
Saurabhyou could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = factory.newDocumentBuilder();
Document input = documentBuilder.parse(in);
OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
XMLSerializer serializer = new XMLSerializer(out, format);
For more details check this guide:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42 -
How to deal with credentials for external applications using a Java Client/
Hi Guys,
This is the case. I am integrating an external application with an ADF Application. I have implemented some programmatic ViewObjects that are being filled up by a REST Java Client Wrapper. Everything is working fine but the issue is that the credentials the wrapper is using are hard coded inside the java class. I am thinking to ask for the credentials at the beginning of my taskflow and then store them somewhere and use them then to create my client wrapper (passing them in the constructor).
However, I don't know if my approach is good and I would like you to share your experiences or how to deal with this.
RegardsYou can use Credential Store Framework to store the credentials securely in the weblogic server instead of hardcoding in the java class.
The Credential Store Framework:
- enables you to manage credentials securely
- provides an API for storage, retrieval, and maintenance of credentials in different back-end repositories
Check the documentation on CSF API -
http://docs.oracle.com/cd/E29505_01/core.1111/e10043/devcsf.htm
Major Steps -
1. Create a credential map and key in em console to store the password (http://docs.oracle.com/cd/E25054_01/core.1111/e10043/csfadmin.htm)
2. Use CSF API to retrieve the stored password
3. In jazn-data.xml give permissions to access CSF key and map -
How to deal with file(for example .xml)? what format of dir should be?
I'd like to operate the file in disk, and want to use relative directory?
How to deal with file dir? what format of dir should be?Hi Kamlesh,
Thanks for your response.
Actually, In the "Process External Bank Statement" window, i see that there are few entries which is for the previous year and which has not been reconciled. I have never worked practically on BRS and hence, i am scared to make any changes in the clients database without being confident on what i am doing. I need to reconcile for one of their Bank a/c for the month of April '08. I have the copy of the statements for the month ending 31st Mar 08 and 30th Apr 08. The closing balances are as below:
31/03/08 - 2300000.00
30/04/08 - 3100000.00
Now my OB for Bank a/c for April '08 in SAP is 2300000.00 Dr.
When i go to External Bank Reconciliation - Selection Criteria Screen (Manual Reconciliation), here are the detail that i enter:
Last Balance: INR -7,000,000.00000 (Grayed out by the system)
Ending Balance: INR -3,100,000.00000 (Entered by me)
End Date: 30/04/08 (Entered by me)
"Reconciliation Bank Statement" Screen opens up and shows the below balances in the screen:
Cleared Book Balance: INR -7,000,000.00000
Statement Ending Balance: INR -3,100,000.00000
Difference: INR 3,800,000.00000
As per the Bank statement, i have found all the transactions listed out here for the month of Apr '08 but, i also found that the open transactions for the previous month from April '08 have been lying in "Process External Bank Statement" window.
Could you please help me solve my issue as to what needs to be done or could you also get me some links from where i can get few documents for processing External Bank Reconciliations?
That will be of a great help for me. I need steps as to what needs to be done first and then the next so that i can arrive at the correct closing balance for the month April '08.
Thanks in Advance....
Regards,
Kaushal -
How to deal with files ?!!!!
hiii, guys i dont believe that a huge program like flash with
all these abilities doesnt deal easily with files !!! I just want
to do simple reading and writing to text files. Something veryyyyyy
simple like writing a name and reading it again later
!!!!!!!!!!!!!!!!!! i know how to load them by using loadVariable()
,,, but how can i write to the file ?!! it's really annoying if i
have to use asp scripting or xml or ... to do such easy job !!! i'm
facing difficulties because i know ActionScript and VB and C++
only,,, I dont know how to deal with asp and xml !!! @_@
But, if this is the only way to do this, plz tell me in steps
how to write a name and read it again in flash, THANXIf you are sticking to those three languages and you have
Flash CS3, you may want to consider publishing to an AIR
application. Adobe's done a lot of work to keep the security tight
on Flash Player which is one (if not the only... not sure) reason
that you cannot do this with Flash alone. You would have to use a
server-side script to accomplish what you want with Flash Player.
Here is a tutorial on an AIR app that writes to txt files:
http://www.adobe.com/devnet/air/flash/quickstart/building_text_editor.html -
How to deal with java integrity??
Hi everyone,
it's just few months that I have started to use Java and since, I've been really confused how to use it. As I've been using C++ before, it's really easy for me to handle a few libraries and keywords and write every thing all by my own. But in Java, TOOOO many libraries and keywords all with different procedures and different cases that really bothers me and I can't understand how to deal with all these. As an example, When I just want to start and write a program, I start searching the net and wow. too many different classes and different Keywords that I get too confused and I prefer not to continue. Would someone please help me and tell me how to find a solution for this essential problem???asker wrote:
I've been using C++ before
But in Java, TOOOO many keywords Really? C++ has 63 keywords:
asm
auto
bool
break
case
catch
char
class
const
const_cast
continue
default
delete
do
double
dynamic_cast
else
enum
explicit
export
extern
false
float
for
friend
goto
if
inline
int
long
mutable
namespace
new
operator
private
protected
public
register
reinterpret_cast
return
short
signed
sizeof
static
static_cast
struct
switch
template
this
throw
true
try
typedef
typeid
typename
union
unsigned
using
virtual
void
volatile
wchar_t
while while Java has 52, 2 of which (goto and const) are not used:
abstract
assert
boolean
break
byte
case
catch
char
class
const
continue
continue
default
do
double
else
enum
extends
final
finally
float
for
for
goto
if
implements
import
instanceof
int
interface
long
native
new
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
try
void
volatile
while -
How to deal with the barcode?
i'm developing a file storage system in java, there're two barcode on each file(one is pdf417, the other one is code128) , but now ,there's a problem confused me :
i use the barcode scanner to scan the file and get images of these files from the scanner , but i have no idea how to deal with these images,
i need the barcode information on the images, and i know there're some java components can help me to read the barcode from images , for example : BarcodeReader from Barcode Library, but these components were too expensive for me , is there any other way can solve this problem?yes, look for a cheaper component...
Or write your own...
Or save up until you can afford the more expensive ones... -
I am storing text messages in a PropertyResourceBundle as follows
txt_EmailAdd = {mel ADres
txt_Password = pasvDR
I made the above file in MSword using hindi fonts
The folllowing text is supposed to be in hindi
{mel ADres
pasvDR
but it does not show the text in hindi it still shows in English but when I open the above text file in MSword it shows the text in hindi
Please tell me how to deal with this problem . I hope you people reply as eaarly as possible.
I also have another prob, I am developing a website using jsp+servlet now I have made the above mentioned property file and stored it in c:\tomcat5.0\webapps\emailreadersevice\IndexMessagesBundle.properties
but when I access it from my application's index.jsp file Tomcat gives me following exception
java.lang.NullPointerException
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:714)
java.util.ResourceBundle.getBundle(ResourceBundle.java:579)
org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
My index.jsp file is stored in c:\tomcat5.0\webapps\emailreaderservice\index.jsp
In my index.jsp file i have written the following statement to get the IndexMessagesBundle but tomcat gives me the above exception.
ResourceBundle IndexMessages = ResourceBundle.getBundle("IndexMessagesBundle",currentLocale);
Please guide me abt how to go abt it. Also tell me whether I am doing the right thing or not. If no then please tell me the right steps to followHi one_dane
I have made the property file using hindi fonts to type the following thing
{ m e l A D r e s
p a s v D R
No the above values are not place holders Infact in order to type EmailAddress and Password in hindi I had to type the above keys. so when I put system.out.println in my jsp page it does not display any hindi text but the above keys which i used to type in order to display hindi text in my txt file.
But I think i am not going on the right track should i type the unicode values for hindi text which is of the form \udddd in my property file. I have the unicode chart for hindi fonts so I can look up the chart and type appropriate unicodes(\udddd) to display Email Address and Password in hindi. Or am i still not getting how to do it? If not then please tell me how did you create your hindi property file. Is the following that you typed in your property file or is it the output of converting your property file into unicode using native2ascii
title=\u090f\u0926\u0938\u093e \u092a\u0917\u0932\u094d\u0917 \u0942\u093e\u0902\u0942JSP i18n issues
Please reply as soon as possible and hanks a lot for your help.
Eagerly waiting for a reply,
Heti shah -
How to deal with this problem while Flex Integration SSH
Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: flex/messaging/AbstractFlexSessionProvider……
Caused by: java.lang.ClassNotFoundException: flex.messaging.AbstractFlexSessionProvider
I have exist project used SSH ,and now need flex to be use in some new unint.
I hava follow these step to write my code , please help me to pickup the misstake i had token.
(flex4.0 spring 3.6 strust2.2 **)
1. download the Blazeds file and spring-flex-core-1.5.2.RELEASE.jar
(org.springframework.integration-1.0.3.RELEASE.jar also include)
2. unpack the Blazeds copy the flex folder to WEB-INF
3.add the lib/* to my project lib folder
4.add some declaration in the web.xml
5.new a flex-application-config.xml
^^^^ and so on. I don't know how to deal with this problem!!!
Waitting for help!The information you provided is totally useless for determining the problem.
If it helps, I think the message you are getting is related to BlazeDS not being able to find the service class you are calling. You either have a typo somewhere, or you didn't set up a secure channel in your service config (I am assuming you meant SSL and not SSH). -
How to deal with '$' sign in the class name?
I want to put my Java Applet game on my homepage. But the server which I set up my homepage doesn't support the file name like XXX$XXX.class, which has '$' sign in the file name. Would anyone can tell me how to deal with this problem? And how can I make the game work on my homepage? Thanks.
Don't forget, this include both concrete inner classes as well as any anonymous inner classes you create, like
myButton.addActionListener(new ActionListener()
// Yada Yada Yada -
How system deals with co commitments
Situation is:
PO:
1 line purchase order, account assignment category A (asset) with 5 AU (order unit) and with 5 WBS elements each on 1 AU.
1 AU=37.480,00u20AC
Invoice:
Partial invoices comming to first PO line and first WBS element (first partial invoice, not full amount)
1. invoice 19.900,00u20AC to first WBS element 0,63 AU
2. invoice 5.000,00u20AC to first WBS element 0,15 AU
3. invoice 12.580,00u20AC to first WBS element 0,52 AU
summary 37.480,00u20AC to first WBS element 1,3 AU
And the question is how system deals with co commintments when the accountant assign bad quantity to first line of PO and the first WBS element. Accountant exceeded quantity in invoice:
invoice = 1,3 AU and in purchase order is 1 AU
in this situation how co commitments are calculated ???
thanks for help
M.1. The system property java.library.path and likewise, the classpath one, are really only there (as far as I know) to show what was in the environment when the JVM started. Updating the properties doesn't actually change the environment. Just like you can probably change "os.name" from Windows to Linux, but that doesn't mean the system changes to run Linux.
2. mapLibraryName just translates the library file name to the system dependent library name, and has nothing to do with the actual environment. -
Help!!! How to deal with ClassNotFoundException??
How to deal with ClassNotFoundException without starting Java Runtime Environment??
the class file:
import java.applet.Applet;
import java.awt.Graphics;
public class Hello extends Applet {
public Hello() { }
public void paint(Graphics g) {
g.drawString("Hello!", 5, 25);
the html file:
<APPLET CODE="Hello" WIDTH=300 HEIGHT=200 >
</APPLET>
But it throw a error
Error loading class: Hello
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: Hello
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
What 's the rule of com.ms.vm.loader.URLClassLoader finding the class??If you compiled the applet with SUN jdk then use -source 1.3 -target 1.1 to make it run in
msjvm (Microsoft Java Virtual Machine). Note that this is a bad idea because MS is
phasing out the msjvm.
If you don't want to ue msjvm (good for you) than use the object tag in your html file to tell
the browser you need to run this applet with sun jre:
http://java.sun.com/products/plugin/versions.html -
How to deal with the rule that do not use "object" class to declear a class
I run my flex project in sonar. And there is a rule "Do not use Object class ".
I just want to know how to deal with this problem.
I mean, when I try to write a base class, I don't know which kind of class will be transfered in by reference, which type I can declear instead of "object"?Check out this example:
The moment I put in the code >> box1.addItem("hello"); << and run the application, the BusNameListener is fired. Hope this makes sense.
import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class JFrameExample {
private JComboBox box1;
public JFrameExample() {
box1 = new JComboBox();
box1 .setMinimumSize(new Dimension(300, 24));
box1 .setPreferredSize(new Dimension(300, 24));
box1.addActionListener(new BusNameListener());
box1.addItem("hello");
JFrame f = new JFrame("This is a test");
f.setSize(400, 150);
Container content = f.getContentPane();
// content.setBackground(Color.white);
content.setLayout(new FlowLayout());
content.add(box1);
f.setVisible(true);
class BusNameListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
JComboBox cb = (JComboBox) e.getSource();
String item = (String) cb.getSelectedItem();
if (item != null) {
JOptionPane.showInputDialog(null,
"Specify...", "File Import",
JOptionPane.OK_CANCEL_OPTION);
} -
How to deal with query that works like dir or ls
I just can't figure it out how to deal with query that works like dir (Win32) or ls(unix) with special character like '*' and '?' , ex. c:\> dir j*.t?t
Could somebody please tell me?Here's some code for using a FileFilter for the listFiles() method of the File class:
import java.io.*;
FileFilter myFileFilter = new MyFileFilter("*.t?t");
File[] files = File.listFiles(myFileFilter);
class MyFileFilter implements FileFilter {
private String pattern;
public MyFileFilter(String pattern) {
this.pattern = pattern;
public boolean accept(File file) {
if (file.isDirectory()) {
return false;
if (file.getName() ??matches?? pattern) {
// you'll have to put the pattern match code here!!
return true;
return false;
}maybe someone else can help with the pattern matching! -
How to deal with deadlock on wwv_flow_data table when http server times out
There are some threads about a deadlock on the wwv_flow_data table. None of them contain a real explanation for this behaviour. In my case I will try to explain what I think is happening. Maybe it helps somebody who is hitting the same matter.
In my case with APEX 3.2.1 I am navigating from one page to another. Doing this APEX will lock the table wwv_flow_data. As soon as the other page is shown the lock will be released. But now this other page contains a bad performing query (standaard report region). After 5 minutes the http server (modplsql) will time out and present the message "No response from the application server" on the screen. In the meanwhile the query is still running on the database server and the lock stays on the wwv_flow_data table.
Normal user behaviour will be that the user will use the back button to return to the previous page and tries it again to navigate to the other page or
the user will try to refresh the page with the bad performing query.
And voila now you will have a deadlock on the wwv_flow_data table since a second session is trying to do the same thing while the first hasn't finished yet.
How to deal with it?
First of all. Have a good look at the bad performing query. Maybe you can improve it that it will succeed before the http server will timeout.
In my case the 11gr1 optimizer couldn't handle a subquery factoring clause in the best way. After changing it back to a classical inline query the problem was solved.
Secondly you could increase the timeout parameter of the http server. Although this not the best way.
Maybe it would better if APEX in a next version would release the lock on the table wwv_flow_date earlier or do a rollback just before the moment that the http server is timing out.
regards,
Mathieu MeeuwissenHello Shmoove,
I saw your reply here and you probably understand the problems the HTTP 100 response may cause.
I am trying to send image that was taken by getSnapshot. The problem is that the server respond with this HTTP 100 message.
I suspect that the reason that my server doesn't recognize the file that I'm sending from J2me is that the "server to client" response to the 100 message comes after the second message of (see what the TCPIP viewer shows down here):
POST /up01/up02.aspx HTTP/1.1
Content-Type: multipart/form-data; boundary=xxxxyyyyzzz
Connection: Keep-Alive
Content-length: 6294
User-Agent: UNTRUSTED/1.0
Host: szekely.dnsalias.com:80
Transfer-Encoding: chunked
400: Client to Server (126 bytes)
78
--xxxxyyyyzzz
Content-Disposition: form-data; name="pic"; filename="david.jpg"
Content-Type: application/octet-stream
400: Connected to Server
400: Server to Client (112 bytes)
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.1
Date: Wed, 23 Mar 2005 00:47:02 GMT
X-Powered-By: ASP.NET
Any help will be appreciated,
David -
How to deal with OpenCL grey out issue.
First off, I'm not native english speaker.
I have Nvidia GeForce 550 Ti video card, and its support OpenCL v1.1.
I'm also face a "random" OpenCL grey out issue like other people here, but I found the "issue" and how to deal with.
open a command windows (using WinKey + R, and type cmd <enter>)
type "cd C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)" <enter>
type "sniffer_gpu" <enter> -->> to check your GPU has OpenCL in Photoshop?
When GPU is in power-saving mode (core running in 51Mhz, using MSI Afterburner monitor), I running sniffer_gpu, got this report
C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)>sniffer_gpu
Device: 0000000000328D68 has video RAM(MB): 1023
Vendor string: NVIDIA Corporation
Renderer string: GeForce GTX 550 Ti/PCIe/SSE2
Version string: 3.0.0
OpenGL version as determined by Extensionator...
OpenGL Version 3.0
Has NPOT support: TRUE
Has Framebuffer Object Extension support: TRUE
OpenGL ok
Return code: 1
C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)>
No OpenCL support
Then, I switch GPU back to normal status (core running at 900Mhz)
C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)>sniffer_gpu
Device: 00000000001F8D68 has video RAM(MB): 1023
Vendor string: NVIDIA Corporation
Renderer string: GeForce GTX 550 Ti/PCIe/SSE2
Version string: 3.0.0
OpenGL version as determined by Extensionator...
OpenGL Version 3.0
Has NPOT support: TRUE
Has Framebuffer Object Extension support: TRUE
OpenGL ok
OpenCL ok, version=1.1 CUDA 4.2.1
Return code: 3
C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)>
OpenCL support !!
Nowadays, most of new GPUs were support power-saving, but when sniffer_gpu running at GPU power-saving state, the OpenCL computing report maybe "time-out", cause the detector "guess" the GPU does not support OpenCL. This is why many people says "OpenCL" sometimes work, sometimes grey-out.
I hope this bug can be fixed, or at least people can understand how to "enable OpenCL everytime when you launch photoshop".
Bye.Do check the following link
http://blogs.oracle.com/soabpm/2010/01/soa_suite_11g_weblogictransact.html
Maybe you are looking for
-
Sales Order date validation against Contract Date
Dear All, We are creating Contracts with validity period from date to enddate. With reference to contract, the sales orders date should be validated. However the present scenario is validating with warning message. How it will be converted to error
-
Is there a way to sync a broken ipod with itunes or just get your songs downloaded off of your ipod onto itune without having to connect the two?
-
Is SAP user account required for offline users ?
Hi, Anybody knows whether users who fill in the interactive form offline require a SAP account ? Thanks.
-
Cumulative update 5 for SQL Server 2012 SP2 is released
Cumulative update 5 for SQL Server 2012 SP2 is released https://support.microsoft.com/en-us/kb/3037255 MDS related fix is: FIX: The notification email link is broken when a special character is part of the URL in SQL Server 2012 MDS http://support.mi
-
Every frew minutes I am prompted to reenter/verify my ATT email account in Mail. This has been working flawlessly until a few weeks ago. I tried deleting and recreating the account with no success. ATT uses Yahoo to host their email and I use the i