Win a copy of Head First Android this week in the Android forum!

Pankaj Jha

Greenhorn
+ Follow
since May 20, 2000
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 Pankaj Jha

hi gurus,
is there any easy way to add data in table...
thanks
20 years ago
hi gurus,
i am getting follwing errors while loading data in the table at run time what could be the cause....

Exception occurred during event dispatching:
java.lang.NullPointerException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.NullPointerException()
java.lang.String(java.lang.String)
java.lang.String(java.lang.String)
java.lang.Object dcr.com.dtracker.ui.ManageProjectScreen$TableValues.getValueAt(int, int)
java.lang.Object javax.swing.JTable.getValueAt(int, int)
java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintCell(java.awt.Graphics, java.awt.Rectangle, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintRow(java.awt.Graphics, int)
void javax.swing.plaf.basic.BasicTableUI.paint(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.JComponent.paintComponent(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JViewport.paintViaBackingStore(java.awt.Graphics, java.awt.Rectangle)
void javax.swing.JViewport.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JLayeredPane.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void java.awt.Container.paint(java.awt.Graphics)
void javax.swing.JFrame.update(java.awt.Graphics)
void sun.awt.windows.WComponentPeer.handleEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
Exception occurred during event dispatching:
java.lang.NullPointerException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.NullPointerException()
java.lang.String(java.lang.String)
java.lang.String(java.lang.String)
java.lang.Object dcr.com.dtracker.ui.ManageProjectScreen$TableValues.getValueAt(int, int)
java.lang.Object javax.swing.JTable.getValueAt(int, int)
java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintCell(java.awt.Graphics, java.awt.Rectangle, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintRow(java.awt.Graphics, int)
void javax.swing.plaf.basic.BasicTableUI.paint(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.JComponent.paintComponent(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JViewport.paintViaBackingStore(java.awt.Graphics)
void javax.swing.JViewport.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JLayeredPane.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void java.awt.Container.paint(java.awt.Graphics)
void sun.awt.windows.WComponentPeer.handleEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
Exception occurred during event dispatching:
java.lang.NullPointerException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.NullPointerException()
java.lang.String(java.lang.String)
java.lang.String(java.lang.String)
java.lang.Object dcr.com.dtracker.ui.ManageProjectScreen$TableValues.getValueAt(int, int)
java.lang.Object javax.swing.JTable.getValueAt(int, int)
java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintCell(java.awt.Graphics, java.awt.Rectangle, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintRow(java.awt.Graphics, int)
void javax.swing.plaf.basic.BasicTableUI.paint(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.JComponent.paintComponent(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JViewport.paintViaBackingStore(java.awt.Graphics)
void javax.swing.JViewport.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JLayeredPane.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void java.awt.Container.paint(java.awt.Graphics)
void sun.awt.windows.WComponentPeer.handleEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()

please help me!!
thanks

20 years ago
hi gurus,
i am trying to test sun provided demo programs for testing JAVA Mail API
i am getting these errors please help me out ......

thanks in advance

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "my.test-inc.com", port 25
DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server my.test-inc.com (IMail 6.05 30687-1)
DEBUG: SMTPTransport connected to host "my.test-inc.com", port: 25
DEBUG SMTP SENT: EHLO pankaj01
DEBUG SMTP RCVD: 250-my.test-inc.com says hello

DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<pankaj@test-inc.com>
DEBUG SMTP RCVD: 250-SIZE 0

DEBUG SMTP SENT: RCPT TO:<pankaj@test-inc.com>
DEBUG SMTP RCVD: 250-8BITMIME

Verified Addresses
pankaj@dcr-inc.com
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 250-DSN

DEBUG SMTP SENT: QUIT
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 250-DSN

java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.mail.MessagingException(java.lang.String, java.lang.Exception)
javax.mail.SendFailedException(java.lang.String, java.lang.Exception, javax.mail.Address [], javax.mail.Address [], javax.mail.Address [])
void javax.mail.Transport.send0(javax.mail.Message, javax.mail.Address [])
void javax.mail.Transport.send(javax.mail.Message)
void adt.com.ocs.ldap.ui.SendFile.main(java.lang.String [])


Re: no one has answer of my question?? please help!!
Author: dritesh Jul 22, 2001 1:41 PM


I need to know your script ie java files.

Re: no one has answer of my question?? please help!!
Author: pnk_jha Jul 23, 2001 6:02 AM


i will appriciate if any one tell me that, what am i doing wrong here....
here is the code......
===================
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class MailExample
{
public static void main (String args[]) throws Exception
{
String smtpHost = "my.test-inc.com";
//String smtpHost = "smtp.mail.yahoo.com";
String popHost = "my.test-inc.com";
//String popHost = "pop.mail.yahoo.com";
String from = "pankaj@my.test-inc.com";
String to = "pankaj@my.test-inc.com";
String username = "pankaj";
String password = "pjha";
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.auth", "true");
// Get session
Session session = Session.getInstance(props, new MyAthenticator());
session.setDebug(true);
// Pop Authenticate yourself
Store store = session.getStore("pop3");
store.connect(popHost, username, password);
// Define message
MimeMessage message = new MimeMessage(session);
InternetAddress addrTO=new InternetAddress(to);
InternetAddress addrFROM=new InternetAddress(from);
message.setFrom(addrTO);
System.out.println("from: "+addrFROM.getAddress());
System.out.println("to: "+addrTO.getAddress());
message.addRecipient(Message.RecipientType.TO,addrFROM);
message.setSubject("Hello JavaMail");
message.setText("Welcome to Yahoo's JavaMail");
Transport transport = session.getTransport("smtp");
transport.connect(smtpHost, username, password);
// Send message
transport.send(message);
}
}
class MyAthenticator extends Authenticator
{
public PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication("pankaj","pjha");
}
}

================
here is the error which is coming.......

DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc]
POP3: connecting to host "my.test-inc.com", port 110
S: +OK X1 NT-POP3 Server my.test-inc.com (IMail 6.05 53501-1)
C: USER pankaj
S: +OK welcome
C: PASS pjha
S: +OK maildrop locked and ready
from: pankaj@my.test-inc.com
to: pankaj@my.test-inc.com

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true

DEBUG: SMTPTransport trying to connect to host "my.test-inc.com", port 25

DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server my.test-inc.com (IMail 6.05 40049-1)

DEBUG: SMTPTransport connected to host "my.test-inc.com", port: 25

DEBUG SMTP SENT: EHLO pankaj01
DEBUG SMTP RCVD: 250-my.test-inc.com says hello

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true

DEBUG: SMTPTransport trying to connect to host "my.test-inc.com", port 25

DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server my.test-inc.com (IMail 6.05 40050-2)

DEBUG: SMTPTransport connected to host "my.test-inc.com", port: 25

DEBUG SMTP SENT: EHLO pankaj01
DEBUG SMTP RCVD: 250-my.test-inc.com says hello
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<pankaj@my.test-inc.com>
DEBUG SMTP RCVD: 250-SIZE 0
DEBUG SMTP SENT: RCPT TO:<pankaj@my.test-inc.com>
DEBUG SMTP RCVD: 250-8BITMIME
Verified Addresses
pankaj@my.test-inc.com
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 250-DSN
DEBUG SMTP SENT: QUIT
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 250-DSN
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at MailExample.main(MailExample.java:45)
Exception in thread "main" Process Exit...


------------------
20 years ago
hi gurus,
i wanted to know that, how can i use JNDI to enteract with LDAP Server... i don't have any knowledge in this area...please help me..
which are the good book & site to get knowledge about it
even myself is also stuck up with the same problem , and i tried to use javamail api i worked but gives some error...
i am using the following code....
Properties properties = System.getProperties();
properties.put("mail.smtp.host","myserver.com");
properties.put("mail.transport.protocol","smtp");
properties.put("mail.server","myserver.com");
session = Session.getInstance(properties, null);
session.setDebug(true);
========
errors which comes.....
Sending failed; nested exception is: javax.mail.MessagingException: 250-DSN
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: 250-DSN at javax.mail.MessagingException.(MessagingException.java:55) at javax.mail.SendFailedException.(SendFailedException.java:76) at javax.mail.Transport.send0(Transport.java:107) at javax.mail.Transport.send(Transport.java:81) at test.webmail.WebMail.doCommand(WebMail.java:203)

please help me

thanks
pankaj
hi gurus,
i have one query that , can i have entity bean(CMP) field different from underlying tables column, if yes then how can i map my CMP field with table's column
e.g
no <---> empno

please help
thanks
pankaj
hi
can you explain me how to send mail using jms???
thanks
pankaj
20 years ago
hi gurus,
i need to send mail using session bean . i wrote session bean's mail sender method's code taking help of sun's doc, but in the dcumentation i has been mentioned that i need to create resource for TheMailSession JNDI then it will work but i am usin websphere application server which does not supports jdk 1.3 api. i mean i don't know how to send mail under webshpere environment....
please help!!!
bye
pankaj
20 years ago
thanks
i tried and it worked.....
regards
pankaj
test.ui.TestException: Constructor Operation Successfull... RemoteException In getAllRowsRemoteException occurred in server thread; nested exception is: com.ibm.ejs.persistence.EJSPersistenceException: findByAll failed:; nested exception is: java.sql.SQLException: ORA-01003: no statement parsed
hi daman,
yes thats what i was also thinking but i was not sure about it. i will try it now....
thanks
pankaj
20 years ago
Hi Gurus,
is it possible to create entity bean(CMP) based on table which does not have primary key.
please help me!!
thanks
pankaj
------------------
Hi Gurus,
is it possible to create entity bean(CMP) based on table which does not have primary key.
please help me!!
thanks
pankaj
------------------
20 years ago
Hi all,
i have deployed the entity bean(CMP) successfully but when i am trying to call it using java bean it throws some as follows ...
please help me...
error
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: com.ibm.ejs.persistence.EJSPersistenceException: getPStmt failed; nested exception is: java.sql.SQLException: Connection reset by peer: socket write error
thanks
pankaj
20 years ago
Hi ,
You can use jetace tool provided with websphere for creating deployment descriptor, one thing more webshpere creates .ser file for deployment descriptor not .xml file
i think this will help you
bye
pankaj