I would suggest you contact WebLogic Support since this exception is
being thrown from a WebLogic class. They should be in a better position
to comment on what elements of your coding might result in this exception
(assuming it does not indicate a server bug ).
Alex Cachia wrote:
>
> I believe the error is in the server this is the stack trace ...
>
> java.lang.NullPointerException
> at weblogic.ejb.internal.LockManagerImpl.unlock(LockManagerImpl.java:160)
> at weblogic.ejb.internal.StatefulEJBCache.unbind(StatefulEJBCache.java:528)
> at
> weblogic.ejb.internal.StatefulEJBCache.releaseEJBContext(StatefulEJBCache.java:341)
> at
> weblogic.ejb.internal.StatefulEJBHome.findOrCreateEJBObject(StatefulEJBHome.java:256)
> at
> weblogic.ejb.internal.StatefulEJBHome.findOrCreateEJBObject(StatefulEJBHome.java:242)
> at
>
>com.nortel.pps.example.EntityExampleBeanHomeImpl.findByPrimaryKey(EntityExampleBeanHomeImpl.java:82)
> at
>
>com.nortel.pps.example.EntityExampleBeanHomeImpl_ServiceStub.findByPrimaryKey(EntityExampleBeanHomeImpl_ServiceStub.java,
> Compiled Code)
> at com.nortel.pps.Main.service(Main.java:71)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
> at
>
>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
> at
>
>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
> at
>
>weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
> at
>weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
> --- Evan Ireland <[EMAIL PROTECTED]> wrote:
> > Alex Cachia wrote:
> > >
> > > Does this look like a valid Entity EJB Primary Key for EJB 1.1 Each time I
> > try
> > > to create an entity with a key like this I get a NullPointerException.
> >
> > Have you tried examing your stack trace to see exactly what
> > is throwing the exception (client or server, for example).
> >
> > > If anyone has a valid (it's worked before) Entity EJB Primary Key for EJB
> > 1.1
> > > I'd appreciate the example code.
> > >
> > > Regard,
> > >
> > > Alex
> > > --------- begin code ---------
> > >
> > > import java.io.Serializable;
> > >
> > > public class PrimaryKey implements Serializable {
> > >
> > > public String uid = null;
> > > public String cid = null;
> > >
> > > public PrimaryKey(String uk, String ck) {
> > > uid = new String(uk);
> > > cid = new String(ck);
> > > }
> > >
> > > public String toString() {
> > > return uid.toString();
> > > }
> > >
> > > public int hashCode() {
> > > return uid.hashCode();
> > > }
> > >
> > > public boolean equals(Object other) {
> > > return uid.equals(other);
> >
> > Try:
> > PrimaryKey that = (PrimaryKey)object;
> > return this.uid = that.uid && this.cid = that.cid;
> >
> > > }
> > > }
> > >
> > > --------- end code ---------
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send instant messages & get email alerts with Yahoo! Messenger.
> > > http://im.yahoo.com/
> > >
> > > ===========================================================================
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > > of the message "signoff EJB-INTEREST". For general help, send email to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> > --
> >
> ________________________________________________________________________________
> >
> > Evan Ireland Sybase EAServer Engineering
> > [EMAIL PROTECTED]
> > Wellington, New Zealand +64 4
> > 934-5856
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
________________________________________________________________________________
Evan Ireland Sybase EAServer Engineering [EMAIL PROTECTED]
Wellington, New Zealand +64 4 934-5856
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".