Problem deploying simple bean...

2000-09-22 Thread VASQUEZ_JASON

Anybody know why I would get a NPE when trying to create a simple CMP 
entity instance?  The exception that the client gets is:

java.lang.NullPointerException: Primary-key was null

And the server console displays:

java.lang.NullPointerException
at 
RecordHome_EntityHomeWrapper8.hashCode(RecordHome_EntityHomeWrapper8.java:131)
at com.evermind.util.ExternalHashSet.get(JAX)
at 
RecordHome_EntityHomeWrapper8.create(RecordHome_EntityHomeWrapper8.java:339)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.bd.run(JAX)
at com.evermind.server.rmi.bb.hy(JAX)
at com.evermind.server.rmi.bb.run(JAX)
at com.evermind.util.f.run(JAX)

I know that the key (a simple String id) is getting into the ejbCreate 
method, since I am printing it to the console (it displays just prior to 
this message).  For further reference, my client code and ejb-jar.xml are 
below.

Thanks,
Jason

client:
public class test {
  public static void main(String[] args) {
try {
  InitialContext ic = new InitialContext();
  Object ref = ic.lookup("alert.Record");
  RecordHome home = (RecordHome)PortableRemoteObject.narrow(ref, 
RecordHome.class);
  System.out.println("Got this far -- Creating an instance:");

  home.create("1234");
  System.out.println("Created successfully");
} catch (Exception e) {
  System.out.println(e);
}
  }
}




ejb-jar.xml:

http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">







alert.Record
alert.RecordHome
alert.Record
alert.RecordEJB
Container
java.lang.String
id
False
id
 articleTitle
 sourceTitle
 articleAuthors
 abstractText
 language
 researchAddress
 issn
 source
 pubType
 keywords
 volume
 issue
 issueNote
 pageRange
 pubYear
 packedTitle
 packedAuthors
 importDate
 available







alert.Record
*

Supports



alert.RecordHome
*

Required







RE: SV: Performance for static files

2000-09-07 Thread VASQUEZ_JASON

If we were serving up static pages, then we wouldn't need Orion... :)







Frank Eggink <[EMAIL PROTECTED]>
09/07/00 03:43 PM
Please respond to Orion-Interest

        
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: SV: Performance for static files



Maybe a still too early notice: in the new 2.4 Linux kernel they will serve static http request direct
from the kernel. This could give interesting results wrt performance :-)


On Thursday, September 07, 2000 11:46 AM, Christof Baumgaertner [SMTP:[EMAIL PROTECTED]] wrote:
> This benchmarks do not show the numbers for static files which are read directly from the file
> system. I would like to see a comparison between a standard webserver (without any dynamic server
> technology like ASP, JSP, Servlets) serving static files and Orion. Are there any realworld
> numbers around?
>
> [EMAIL PROTECTED] wrote:
>
> > Look at the benchmark page...
> >
> > Against Apache and IIS its got no problems at all beating them into the
> > bushes. The url is enclosed, have fun...
> >
> > Klaus Myrseth
> >
> > -Opprinnelig melding-
> > Fra: Christof Baumgaertner [mailto:[EMAIL PROTECTED]]
> > Sendt: 7. september 2000 08:40
> > Til: Orion-Interest
> > Emne: Performance for static files
> >
> > We have a webbased client/server application which in addition to its
> > dynamic elements has to serve a huge amount of small files (HTML, GIF,
> > JS). I understand that Orionserver's performance for J2EE based
> > applications is pretty good. How about serving static files from the
> > file system? Can it compete with high performance servers like AOL
> > Server, Stronghold Apache or others in this area?
> >
> > Thanks,
> > Christof
> >
> >   
> >
> >    Benchmark.urlName: Benchmark.url
> >                 Type: Internet Shortcut (application/x-unknown-content-type-InternetShortcut)
>  << File: christof.vcf >>




Re: Getting off the list

2000-08-30 Thread VASQUEZ_JASON

Using this form -> http://www.orionserver.com/subscribe.html  seems to work pretty well... (i've used it in the past, and then come back ... :))

-Jason








Joe Klemmer <[EMAIL PROTECTED]>
08/30/00 10:28 AM
Please respond to Orion-Interest

        
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        Getting off the list




        How does now leave this list?  I have tried every combination of
unsubscribing conventions I know yet nothing seems to work.  I have sent
messages to -

        [EMAIL PROTECTED]

with "unsubscribe" in both the body and the subject, including my email
address and the list name, at different times.

        Please, how do you get off of this list?  Anyone?

---
"Do not meddle in the affairs of wizards, for you are crunchy and taste
good with ketchup."





Changes.txt

2000-08-30 Thread VASQUEZ_JASON

Isn't the changes.txt file being updated anymore?  It would be nice to know what/why I'm upgrading for, instead of blindly running autoupdate

HINT: Autoupdate would be perfect if it had an interactive option that would show the change summaries for the versions about to be downloaded (and a silent option for those who want to run this automatically via cron/at/etc)

-Jason

RE: Getting remote objects

2000-07-26 Thread VASQUEZ_JASON


Interesting...I will go ahead and use the narow method from now on, but I
did some experimentation and it worked with just the lookup w/ Orion.
Thanks for the info!

-Jason



   

Dave Smith 

<[EMAIL PROTECTED]To: "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>,
m.au>Orion-Interest 
<[EMAIL PROTECTED]>   
 cc:   

07/26/00 Subject: RE: Getting remote objects   

05:39 PM   

   

   





These are not exclusive, they are both required:

 Context context = new InitialContext();
 MyHome mh = (MyHome)javax.rmi.PortableRemoteObject.narrow(
context.lookup("HomeName"), MyHome.class);

It used to be permissible to just do

MyHome th = (MyHome)context.lookup("HomeName");

but the advent of RMI-IIOP made this extra narrowing step necessary. You
may
find that EJB servers that do not use RMI over IIOP will work with the old
(brief) method, but protect yourself by using the narrowing step for all
remote objects as well.


Dave Smith
Senior Team Leader
Aristocrat Technologies Australia Pty Ltd

mailto:[EMAIL PROTECTED] 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 27 July 2000 7:05
To: Orion-Interest
Subject: Getting remote objects



After reading volumes of information on EJB's, I am a bit confused as to
what is the preferred method for obtaining a reference to an EJB from the
client.  I see 2 styles of doing this.  One involves casting to the Home
interface by doing a 'Context.lookup(String jndi_name)', while the other is
by using PortableRemoteObject.narrow(...).   Is there any benefit to either
one?  I prefer the former, since the syntax seems much cleaner, but what's
the bottom line?

Also, what are the core set of Orion-specific .jars that must be
distributed
to a client when using orionserver?

Thanks,
-Jason








Getting remote objects

2000-07-26 Thread VASQUEZ_JASON

After reading volumes of information on EJB's, I am a bit confused as to what is the preferred method for obtaining a reference to an EJB from the client.  I see 2 styles of doing this.  One involves casting to the Home interface by doing a 'Context.lookup(String jndi_name)', while the other is by using PortableRemoteObject.narrow(...).   Is there any benefit to either one?  I prefer the former, since the syntax seems much cleaner, but what's the bottom line?

Also, what are the core set of Orion-specific .jars that must be distributed to a client when using orionserver?

Thanks,
-Jason

Deployment

2000-07-26 Thread VASQUEZ_JASON

Has anyone ever used Javasoft's deploytool from the J2EE reference implementation for assembling applications for Orion?  It seems as if the only thing that would have to be modified is the container specific configuration.  Until Orion's assembly tools come further along, this might be a nice option..

-Jason

Re: Oracle-Driver not found

2000-07-21 Thread VASQUEZ_JASON

Andreas,

Have you placed the oracle thin driver .jar (or .zip) in $ORION_HOME/lib? It must be in that directory to be picked up.

-Jason








Andreas Reckmann <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/21/00 08:02 AM

        
        To:        Orion-Interest <[EMAIL PROTECTED]>
        cc:        
        Subject:        Oracle-Driver not found


Hi,

I want to run an Entity bean connected to a Oracle 8.1.5 Database.

java -jar -cp $CLASSPATH orion.jar
Error initializing server: DriverManagerDataSource driver
'oracle.jdbc.driver.OracleDriver' not found

data-sources.xml:



"http://www.orionserver.com/dtds/data-sources.dtd">


        
             name="STP data-source"
class="com.evermind.sql.ConnectionDataSource"
             location="jdbc/DefaultDS"
             pooled-location="jdbc/DefaultPooledDS"
               xa-location="jdbc/xa/DefaultXADS"
               ejb-location="jdbc/stp"
             url="jdbc:oracle:thin@localhost:1521:stp"
             connection-driver="oracle.jdbc.driver.OracleDriver"
             username="system"
             password="manager"
        />


Thanks,

   Andreas