i am trying to persist two entities(with one to many relationship) using jpa but on persit it throws an exception
java.lang.IllegalArgumentException: out of field index :2
i'm struck.
I'm having trouble finding a regular expression that matches the following String.
Korben;http://feeds.feedburner.com/KorbensBlog-UpgradeYourMind?format=xml;1
One problem is escaping the question mark. Java's pattern matcher doesn't seem to accept \? as a valid escape sequence but it also fails to work with the tester at myregexp.com.
Here's what I have so far:
([a-zA-Z0-9])+;http://([a-zA-Z0-9./-]+);[0-9]+
Any suggestions?
I am having database in .dbf (Foxpro) formate.
1) How to retrieve data from Foxpro using Java.
2) If the data can be migrated to MySql, How to do the conversion. Pls help me.
I am working to configure Spring-Security with an existing application, for just basic security (i.e. what pages a user can see based on their roles). The question came up wondering if we could set what roles are required for each page in java instead of the ApplicationContext.xml.
The idea is to store them in a table in our database, so we can easily change them with out a redeployment. Is this possible? How?
In languages that support exception objects (Java, C#), when is it appropriate to use error codes? Is the use of error codes ever appropriate in typical enterprise applications?
Many well-known software systems employ error codes (and a corresponding error code reference). Some examples include operating systems (Windows), databases (Oracle, DB2), and middle-ware products (WebLogic, WebSphere). What benefits do error codes provide? What are the disadvantages to using error codes?
Hi,
I have a java program and want to generate javadoc for classes/interfaces. However, I just want to generate javadoc for a certain classes and interfaces. I just want to know if there is any way that I can add an annotation at the beginning of each class/interface to indicate that this class/interface should not be generated javadoc (something like @no-generate-javadoc)
Does anyone have ideas, please?
Thanks
Hi,
I got a document that need to be filled in (it was in microsoft word doc), I have no idea how to filled in / integrated with my current web apps.
is there any good java api / lib that could be used ? preferrably the free one.
here is the example of doc that need to be filled in.
http://drop.io/callmeblessed/asset/debt-agremeent-certificate-doc
How do we show the gridline in GridLayout? in Java?
JPanel panel = new JPanel(new GridLayout(10,10));
panel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
for (int i =0; i<(10*10); i++){
panel.add(new JLabel("Label"));
}
Is there a plugin or tool in IntelliJ that will strip all comments out of your source .java files? I've read about an ANT task that can do this.. was looking to do the same from within the IDE. Alternatively a TextPad plugin would work as well..
When I use HelpBroker.setCurrentID("[some help id]"), JavaHelp correctly shows the page I want but the associated topic is not automatically selected/highlighted in the table of contents. This makes it difficult for a user to know where in the topic tree the current page is located.
Is there any way to programmatically highlight the current topic in the TOC when I use a HelpBroker to navigate to a specific Help page?
Note that when the user follows links within the Java help system, the new topic is properly selected in the table of contents.
Hi,
When you develop a Java application that talks to oracle DBs, there are 2 options right? One is oracle thin driver, and the other is OCI driver that requires its own installation (please correct if I'm misunderstanding).
Now, what are the pros and cons? Obviously thin driver sounds much better in terms of installation, but is there anything that OCI can and the thin one can't?
Develop environment is Tomcat6 + Spring 3.0 + JPA(Hibernate) + appache-DBCP
Thanks in advance.
My manager has asked me to suggest an application server for the web application development work,
What are the factors that needs to be considered before we select any application server for web application development in Java J2ee development?
If I select one now and IN future, if I want to change to some other application server, Is if that minimum effort to change?
Hi
I face issue parsing xhtml with DOCTYPE declaration using DOM parser.
Error: java.io.IOException: Server returned HTTP response code: 503 for URL:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd%20
Is there a way to parse the xhtml to a Document object iognoring the DOCTYPE.
We are using a PropertyPlaceholderConfigurer to use java properties in our Spring configuration (details here)
eg:
<foo name="port">
<value>${my.server.port}</value>
</foo>
We would like to add an additional property, but have a distributed system where existing instances could all use a default value. Is there a way to avoid updating all of our properties files, by indicating a default value in the Spring config for when there isn't an overriding property value defined?
there's a text file
first second third
1 2 3
yes no ok
hmmmmmmm yep_a_long_word_it_is ahahahahahahha
what java functions /libs to use to align words so that they are looked like this (fixed width based on the longest column's length), let's say center align:
first second third
1 2 3
yes no ok
hmmmmmmm yep_a_long_word_it_is ahahahahahahha
Hi,
I am using using hibernate 3.5.6 with Oracle 10g. I am seeing the below exception during initialization but the application itself is working fine. What is the cause for this exception? and how it can be corrected?
Exception
Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
Info
Oracle version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
JDBC driver: Oracle JDBC driver, version: 11.1.0.7.0
Thanks,
Girish
Can i use Spring Webflow/MVC and Spring Security and Hibernate on Google App Engine?
Is there a list/summary of java frameworks that can be used on the GAE?
how to get URL address while every time page is refreshed in java..?
i'm doing projects which requires URL(domain name ) while every ti e page is refreshed..!!
Hi,
Is it possible, by using ANT, to create 1 war-file out of two separate eclipse java web application projects? Besides from just copying the right files to the right places i would have to be able two create one single web.xml. Also some other files that exists in both projects should be united into one file.
Thanks
Pich
Are jython & coldfusion compatible? I mean, can I run both at the same time without trashing my server? Are there any overlapping conflictions with java?
What is the difference between Service Provider Interface (SPI) and Application Programming Interface (API)?
More specifically, for Java libraries, what makes them an API and/or SPI?
Hi all, i am currently working on a web application that needs to accept video uploaded by users in any format (.avi, .mov, etc.) and convert them to flv for playing in a flash-based player.
Since the site is OpenCms-based, the best solution would be a ready-made plugin for OpenCms that allowed to upload and play videos doing the transcode operation in background, but just a set of Java classes to do the transcode would be great and then i could make the uploading form and playback part on my own.
I'm having trouble setting the command-line arguments in Eclipse.
I've searched around the Internet but can't find anything that helps people with invisible textboxes. I even tried pressing the help button and nothing came up.
How does one set the command-line arguments in Eclipse for a Java project?
Is it correct that if we have a BufferedImage object in java, we could potentially write it out in ANY format using ImageIO.write (if we have a Writer object for the same)? I tried writing a BufferedImage object into a jpg file, it outputted an empty image file however when i tried writing it in to a png file, it worked fine.