Praveen Sangolli

Greenhorn
+ Follow
since May 22, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Praveen Sangolli

Hi
I have a custom proxy on an iPlanet webserver and when i am trying to open a PDF or a RFT file from IE browser it says "the internet explorer was not able to open this internet site". I google searched and found that we need to set the response header as public so that we allow the browser to cache the file. Can anyone help me on how to configure that header to set the cache content in Oracle iPlanet 7.xx webserver

Any help is appreciated

Thanks & Regards
Praveen N Sangolli
12 years ago
Hi

Are there any documents , guides for installing the voltage secure data on unix machine? Any help is appreciated.

Thanks in advance
Praveen N Sangolli
13 years ago
Hi All

i have issues with the url re-encoding . For some reason the special characters are re encoded.

@ - %40 which is inturn encoded to %2540

When i do a request.getParameter("email"); This displays praveen%2540javaranch.com instead of [email protected].

This issue started after we migrated to Weblogic10

If anybody knows the solution please let me know , any help is appreciated ..

Thanks in advance

Is there a solution for the above issue.?

I have a similar kind of issue

Weblogic 10 is throwing a null pointer exception.


<> <1297320838645> <BEA-101020> <[ServletContext@15537607[app:bes module:/dyn path:/dyn spec-version:null]] Servlet failed with Exception
java.lang.NullPointerException




This happens when i click the browser back button .

13 years ago
Hello everyone,

I would like to know if there are any javafx voice recorders. I actually want to record voice from my web application and store it into the server. Please suggest if there are any recorders available.

Thanks in advance


Praveen N Sangolli
15 years ago
Try this

<ajax:displayTag ajaxFlag="true" id="displayTagList" baseUrl="SomePage.jsp">
<display:table name="sessionScope.resultList" pagesize="10" htmlId="pagedDisplayTableId" id="histListDisp" class="displaytag" >

<display:column property="serialNo" title="SL No" />


</display:table>
</ajax:displayTag>
15 years ago
Hi,

can you paste the code where you are setting the values to the dropdown
15 years ago
Hello everybody
Figured out what was the issue. The code is all working. It was my mistake, i thought the attachment should not exceed 1MB, but its the message with the attachment that should not exceed 1MB.. Now that i reduced the size of the attachment its all working fine. Sorry to bother you all.

Thanks & Regards
Praveen N Sangolli
15 years ago
JVM is the one that calls the main method and what will the JVM do with the int that you return. No you cannot change the method signature for public static void main(String args[])
15 years ago
Hi everybody

I am having issues sending email with an attachment using google app engine javamail api. Without the attachment it works fine, but with the attachment the mail is not delivered, and also there are no exceptions. Please let me no if there are any changes that need to be done to the below code.

try {

Multipart mp = new MimeMultipart();
File file= new File("example.pdf");
FileInputStream fin = new FileInputStream(file);
attachmentData = new byte[(int)file.length()];
fin.read(attachmentData);

MimeBodyPart htmlPart = new MimeBodyPart();
htmlPart.setContent(emailHtml, "text/html");
mp.addBodyPart(htmlPart);

MimeBodyPart attachment = new MimeBodyPart();
attachment.setFileName("example.pdf");
// attachment.setContent(attachmentData, "application/html");
DataSource src = new ByteArrayDataSource(attachmentData, "application/pdf");
attachment.setDataHandler(new DataHandler(src));
mp.addBodyPart(attachment);

Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("[email protected]"));
msg.addRecipient(Message.RecipientType.TO,
new InternetAddress(req.getParameter("email"), "Mr. User"));
msg.setSubject("Email Testing By example");
msg.setText(msgBody);
msg.setContent(mp);
System.out.println("I am above Transport.send(msg)");
msg.saveChanges();
Transport.send(msg);

} catch (Exception e) {

req.setAttribute("ERRORMESSAGE", "Error while sending email");
e.printStackTrace();

}

Any help is appreciated.

15 years ago
Hi Anand

check this link http://struts.apache.org/2.0.11.2/docs/fieldexpression-validator.html , i guess it might help you

Regards
Praveen N Sangolli
15 years ago
Hi

Now that the classpath issue is resolved, the select query and the insert query to the datastore are working fine, but it throws an exception when i try updating the datastore. The update query is


EntityManager pm = PMF.get().createEntityManager();
EntityTransaction tx = pm.getTransaction();

Query query = pm.createQuery("update "+Employee.class.getName()+" set firstName=:Murali");
query.executeUpdate();



And the exception is:



java.lang.ClassCastException: org.datanucleus.store.appengine.query.StreamingQueryResult cannot be cast to java.lang.Long
at org.datanucleus.jpa.JPAQuery.executeUpdate(JPAQuery.java:109)
at guestbook.UpdateServlet.doGet(UpdateServlet.java:44)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:306)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)



Can anyone tell me why is it casting to a long when the executeUpdate returns an int. And a sample code on how to update the datastore.

Regards
Praveen N Sangolli




Hi,

Thank you for your replies. Yes as you said it it was an issue with the classpath , i had to specify the fully qualified class name of the Employee entity though it was in the same package.

Thanks
Hello everybody


Can anyone give me a link where i can get a sample code for a Google App Engine using the Datastore with JPA. It is working fine with JDO but not with JPA

Any help is appreciated

Regards
Praveen N Sangolli