Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!

Aji Ozkan

Ranch Hand
+ Follow
since Jan 23, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aji Ozkan

This is how I query


Hi,

I am using Hibernate 4.3.1 to fetch records from four different unrelated tables by using columns which have matching data. For this I have written a query which is as follows


This query return 3 rows when I run it directly on Oracle database(All of them obviously match all the where condition but each row has a different value of PATable.prodType column) but when I use this from within my java code , Hibernate only returns one row which is the first row returned by SQL.Any idea whats going on ? I have tried joining tables but the same result.


}[/code]
Hi Waseem,

I know its very old post but in CustomRequestWrapper there is a method setSoapMessage(). How is this used and whats the filter code to use this CustomRequestWrapper class ?

2 years ago
Hi,

We have added Dsun.security.ssl.allowUnsafeRenegotiation=false in our Pramati Server startup script and its using
JDK 1.6_20.

With JDK 1.6_20 Session renegotiation is disabled by default.But in a security audit our server was found vulnerable to "Sesion renegotiation attack".

Any clues if this is a problem with the fix which is present in JDK 1.6_20 ?

Ajit
9 years ago
Thankx Ulf for pointing out.
It works correctly now.

Regards
Ajit Kanada
Hi

I am trying to generate sample pdf file from .fo file.
(I am Using fop-0.94)
I can generate it correctly using commandline application.
(i.e. the utility class of FOP org.apache.fop.cli.Main).

Now I want to put this functionality in web app.
This is the code I wrote.



This does creates pdf file without errors.But when i try to open this file I get following error.

==== Error message start====
There was a error opening this document.The file is damaged and could not be repaired.
==== Error message end ====

Does any one has any clue ?

Regards
Ajit Kanada
[ September 06, 2007: Message edited by: Ajit Kanada ]
Hi Saman,

Here is a sample code for this..

Regards
Ajit Kanada
[ August 24, 2007: Message edited by: Ajit Kanada ]
11 years ago
JSF
Hi,

I am using eclipse 3.0.I am using Tomcat 5.0 to deploy my application.
12 years ago
JSF
Hi Nina,

Why dont you use the counter in your code to
create disctinct property values like

property="sourceFile1"
property="sourceFile2"
property="sourceFile3"
property="sourceFile4"

etc...

Cheers
Ajit
12 years ago
Why ar eu posting this in Struts forum?
Please use JDBC forums
12 years ago
Hi all,

I am new to JSF.I am trying to create and run a sample JSF application using JSF1.2.

I have following dir structure for my web-app

jsf-guessNumber
������������WEB-INF <= contains faces-config.xml and web.xml
������������classes
��� ������������guessNumber
��� ������������META-INF
��� ������������services <= contains **
������������lib <== conatins ***

** Contains following files
javax.faces.application.ApplicationFactory
javax.faces.context.FacesContextFactory
javax.faces.lifecycle.LifecycleFactory
javax.faces.render.RenderKitFactory

***
cglib-2.1.1.jar
common-annotations.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
datatypes.dtd
el-api.jar
el-ri.jar
html_basic.tld
jboss-serialization.jar
jsf-api.jar
jsf-impl.jar
jsf_core.tld
jsp-api.jar
myfaces-all.jar
portlet.jar
web-facesconfig_1_0.dtd
web-facesconfig_1_1.dtd
XMLSchema.dtd

Now when I try to access the application like
http://localhost:8080/jsf-guessNumber/
I am getting following error..
java.lang.NullPointerException
com.sun.faces.lifecycle.LifecycleImpl.populateFacesELResolverForJsp(LifecycleImpl.java:385)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:123)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:712)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:682)
org.apache.jsp.index_jsp._jspService(index_jsp.java:43)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Any Idea why this exception might be coming ?

Ajit
12 years ago
JSF
Hi,

Instead of this



try this



Cheers!
12 years ago
In worst case, I have to read 60MB of data. I think it will take hell lot of time if I read character by character.
12 years ago
Scanner is present in JDK 5.0 where as I am using JDK 1.4.2
The second approach to read one character at a time is not efficient.
Can you suggest any other approach?
12 years ago