Please check this ejb-jar.xml, weblogic-ejb-jar.xml,weblogic-cmp-rdbms.xml

i am getting a classcast exception.My Stateless and stateful session bean works
fine .. problem only with Entity bean. Please check these xml files and let me
know if i have missed anything.
ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>stores</ejb-name>
<home>Ejb.Stores.storesHome</home>
<remote>Ejb.Stores.storesRemote</remote>
<ejb-class>Ejb.Stores.storesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>storesBean</abstract-schema-name>
<cmp-field>
<field-name>productId</field-name>
</cmp-field>
<cmp-field>
<field-name>descrip</field-name>
</cmp-field>
<cmp-field>
<field-name>price</field-name>
</cmp-field>
<primkey-field>productId</primkey-field>
<query>
<query-method>
<method-name>findPriceGreaterThan</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM storesBean AS a WHERE a.price > ?1]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>stores</ejb-name>
     <method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
------------- end of ejb-ar.xml---------------------
weblogic-jar.xml
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
"http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>stores</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
     <type-version>6.0</type-version>
     <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
     </persistence-type>
     <persistence-use>
     <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
     <type-version>6.0</type-version>
     </persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>storesEntity</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
------------- end of weblogic-jar.xml----------
weblogic-cmp-rdbms-jar.xml
<!DOCTYPE weblogic-rdbms-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0
EJB RDBMS Persistence//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>stores</ejb-name>
<data-source-name>sqlTX</data-source-name>
<table-name>ProductEJBTable</table-name>
<field-map>
<cmp-field>productId</cmp-field>
<dbms-column>productId</dbms-column>
</field-map>
<field-map>
<cmp-field>descrip</cmp-field>
<dbms-column>descrip</dbms-column>
</field-map>
<field-map>
<cmp-field>price</cmp-field>
<dbms-column>price</dbms-column>
</field-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>false</create-default-dbms-tables>
</weblogic-rdbms-jar>
---------------- end of weblogic-cmp-rdbms-jar.xml----------
Do i have to mention the connection Pool name anywhere .. My connection Pool name
is sql7Pool and my datasource name which i have mentioned is sqlTx. I am using
Sql server 7. I am deploying a jar file(not a war file) and accessng the EJB through
a Servlet. Please any help would definitely be appreciated.
Cheers
Ashish.

I thought you were getting a class cast exception but the stack trace shows
a NullPointerException on line 38 of your servlet code. I am not sure if the
code that you have attached is the complete code or just snippets of your
complete code. Anyways, counting 38 lines in the code you attached points to
the line "mr =
mh.create(request.getParameter("login"),request.getParameter("name"));"
which could be because "mh" is null. Can you verify "mh" is not null and
also "objRef" is not null.
Attaching the stack trace for ClassCastException would be useful.
-- Anand
"Ashish Suvarna" <[email protected]> wrote in message
news:[email protected]...
>
Hey Anand,
Thanks for your reply. I have attached the StackTrace,Servlet code andmy
location and settings of my servlet .
This is the StackTrace which i get :
pl.java:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
before create
java.lang.NullPointerException
at trialweblogic.webServlet.doGet(webServlet.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
-------------- end of StackTrace---------------------
My Servlet Code is
package trialweblogic;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import javax.ejb.ObjectNotFoundException;
import javax.ejb.DuplicateKeyException;
import javax.ejb.EJBException;
import java.rmi.RemoteException;
import java.rmi.Remote;
import trialweblogic.*;
public class webServlet extends HttpServlet {
masterHome mh;
masterRemote mr;
OutputStream out;
private static final String CONTENT_TYPE = "text/html";
public void init(ServletConfig config) throws ServletException {
super.init(config);
public void doGet(HttpServletRequest request, HttpServletResponseresponse)
throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
// out = response.getOutputStream();
try{
InitialContext ic = new InitialContext();
Object objRef = ic.lookup("masterBeanJNDI");
mh =(masterHome)PortableRemoteObject.narrow(objRef,masterHome.class);
>
mr =mh.create(request.getParameter("login"),request.getParameter("name"));
out.println("after create");
}catch(Exception ex){
ex.printStackTrace();
public void destroy() {
--------- end of servlet--------------
I am using Weblogic 6.1. I have included the following in my web.xml filewhich
is located atC:\bea\wlserver6.1\config\examples\applications\examplesWebApp\WEB-INF
>
>
<servlet>
<servlet-name>webServlet</servlet-name>
<servlet-class>trialweblogic.webServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>webServlet</servlet-name>
<url-pattern>/webServlet/*</url-pattern>
</servlet-mapping>
My Servlet is located atC:\bea\wlserver6.1\config\examples\applications\examplesWebApp\WEB-INF\class
es\trialweblogic\
folder. In this folder i also have the supporting files (home,remote &bean tooo).
>
>
I call this servlet when te user submits the info from a JSP page.
Hope this info helps in solving my problem. Do i have to mention theconnection
Pool name anywhere in the xml descriptor or am i missing anything here. iguess
Connection Pool name is not required since we are mentioning the JNDI namein
the xml descriptor. Bye for now.Awaiting your reply.
Cheers
Ashish.
"Anand Byrappagari" <[email protected]> wrote:
It is unlikely that your xml descriptors can cause class cast exceptions.
How did you install the servlet? Can you attach the servlet code that
might
help. Also complete stack trace of the exceptions would be helpful.
-- Anand
"Ashish Suvarna" <[email protected]> wrote in message
news:[email protected]...
Hi Anand,
Thanks for quic reply.Hey i am using weblogic6.1. I am Not usinga WAR
and
ear file.I have created a jar file and deployed it.now i have createda
servlet
to access entity bean.Is a war file neccessary for accesing an entitybean
through
Servlet or JSP ???I am using sql server 7. The error that it givesis -----
java.lang.ClassCastException: Cannot narrow remote object<br>
"inside lookup method aaaaaaa" java.lang.NullPointerException. <br>
Hope to get ur reply soon. in another entity bean i am getting thiserror ---
java.lang.ClassCastException:
weblogic.jdbc.common.internal.RmiDataSource
.. I
can't understand wots this error. I feel i am missing something inmy xml
descriptor.
Bye for now.
Cheers
Ashish.
"Anand Byrappagari" <[email protected]> wrote:
Can you attach the stack trace for the exception? Also please describe
you
environment - are the war and jar files installed separately? Are
they
composed into a ear? Also when are you getting a classcast exception?
-- Anand
"Ashish Suvarna" <[email protected]> wrote in message
news:[email protected]...
i am getting a classcast exception.My Stateless and stateful sessionbean
works
fine .. problem only with Entity bean. Please check these xml filesand
let me
know if i have missed anything.
ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD EnterpriseJavaBeans
2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>stores</ejb-name>
<home>Ejb.Stores.storesHome</home>
<remote>Ejb.Stores.storesRemote</remote>
<ejb-class>Ejb.Stores.storesBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>storesBean</abstract-schema-name>
<cmp-field>
<field-name>productId</field-name>
</cmp-field>
<cmp-field>
<field-name>descrip</field-name>
</cmp-field>
<cmp-field>
<field-name>price</field-name>
</cmp-field>
<primkey-field>productId</primkey-field>
<query>
<query-method>
<method-name>findPriceGreaterThan</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM storesBean AS a WHERE
a.price> >> >>> >> >?1]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>stores</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
------------- end of ejb-ar.xml---------------------
weblogic-jar.xml
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD
WebLogic
6.0.0 EJB//EN"
"http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>stores</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>storesEntity</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
------------- end of weblogic-jar.xml----------
weblogic-cmp-rdbms-jar.xml
<!DOCTYPE weblogic-rdbms-jar PUBLIC '-//BEA Systems, Inc.//DTD
WebLogic
6.0.0
EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dt
d
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>stores</ejb-name>
<data-source-name>sqlTX</data-source-name>
<table-name>ProductEJBTable</table-name>
<field-map>
<cmp-field>productId</cmp-field>
<dbms-column>productId</dbms-column>
</field-map>
<field-map>
<cmp-field>descrip</cmp-field>
<dbms-column>descrip</dbms-column>
</field-map>
<field-map>
<cmp-field>price</cmp-field>
<dbms-column>price</dbms-column>
</field-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>false</create-default-dbms-tables>
</weblogic-rdbms-jar>
---------------- end of weblogic-cmp-rdbms-jar.xml----------
Do i have to mention the connection Pool name anywhere .. My
connection
Pool name
is sql7Pool and my datasource name which i have mentioned is sqlTx.I am
using
Sql server 7. I am deploying a jar file(not a war file) and accessngthe
EJB through
a Servlet. Please any help would definitely be appreciated.
Cheers
Ashish.

Similar Messages

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Please check this problem

    please check this problem i am not getting my j2ee server deployed for a long time.
    when i try to execute my j2ee server ,i get the following problem
    C:\Documents and Settings\win>j2ee -verbose
    J2EE server listen port: 1050
    Naming service started:1050
    Exception in thread "main" java.lang.NoSuchMethodError
    at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImp
    l.java:1256)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(Sh
    utdownUtilDelegate.java:223)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(Shutdown
    UtilDelegate.java:178)
    at javax.rmi.CORBA.Util.writeAny(Util.java:80)
    at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.re
    bind(Unknown Source)
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202
    at javax.naming.InitialContext.rebind(InitialContext.java:370)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:192)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:149)
    at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
    at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.ja
    va:473)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    may be path variables are not set properly plaese tell what is the problem.thank you.

    sounds to me like you have a stale corba stub or something, but i'm no corba expert and i thought it went extinct about 5 years ago

  • Fraudulent message received. Please check this use...

    Hello,
    Just received a message from a user calling himself : Skype Company , user name :
    award.team33 
    Message is:
    Skype Co-operation Management Worldwide are pleased to inform you that you are a winner of our annual SKYPE-WORD LOTTO LOTTERY . Your email address was attached to ticket number 214-056-278 with serial number s/n-01025 and drew the lucky numbers 724-595-62-07-45 and consequently won in the 3rd category. As a result of this, you have therefore been approved for a lump sum payout of GBP£1,000,000.00 (One Million Great Britain Pounds Sterling) payable in cash credited to file Reference No: Sky-P/327015002/12.
    Contact Mr. Morris Park, Foreign Service Manager, London United Kingdom, With this information . To make claims of your prize.
    Looks fraudulent to me. Please check and warn !!!
    Solved!
    Go to Solution.

     Hi, yossi1123, and welcome to the Community!
    Yes, this is phishing/spam.  Please do report this to Skype Customer Service right away: contact customer service  Further, block this user and check in the Report as Abuse block.
    I recommend changing your account password immediately, and please do ensure your computer's and system's updates and patches are downloaded and installed, and that you run an updated version of your preferred anti-spyware/malware/virus software.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Can someone please check this podcast episode?

    My podcast site is: https://itunes.apple.com/podcast/jah-works-radio-reggae-radio/id418751172
    On my iTunes, I can't get my 2 most recent podcast episodes to play or download.  Can someone please check on their iTunes?  I think on Macs it may be playing, but I would love to hear if people can get them to play or download on a PC.
    Much Thanks,
    Dave

    Found another case in Mac OS X Technologies
    Notice the second post Re: Display Random Numbers This is Overview no refinement.
    Now
    Refine to Applescript the post is gone. (Trust me it doesn't show up in any other refinement either)
    Click the X next to Applescript and its back:
    The same behavior happens in All Content or Discussions.
    Thought it might be related to tags but this post is tagged applescript so that wouldn't appear to be it.
    Part of the problem is that the 'subgroups' aren't really groups anymore only groupings of post. You use to be able to go to an actual physically group Applescript which was a sub group of the category OS X  Technologies now the only thing that really exists is the top group OS X  Technologies the subgroups are really views into the main group.

  • New Users Please Check This Logic 7 Quick Tours Out, Its Pretty Good

    Please Before Asking Further Question Make Sure You Check This Out First
    http://www.apple.com/logicpro/quicktours/
    Its Not As Detailed As Martin Sitter's But For A Free Tours Its Great
    I hope Mike C The Moderator Will Keep A Link On The Top Just Like The Other Yellow Link
    $ta$h

    lol, yeah I heard great things aobut that video, but didn't get it yet. I am still weeding through the great Apple Pro Series books, and I am concentrating right now on getting the right sound out of my guitar and voice, since i am far enough in logic to be able to do that first. I think sometimes we lose focus in getting to know everything a tool can do, v/s composing and concentrating on the music and the sound.
    I'm hoping to post something to the other thread on forum music after this weekend, where I'll have the time to record with my new Rode K2 and my new Focusrite ISA 220. I have no more excuses to not get it right.
    R

  • Could someone please check this for

    Hi there!
    I need someone to do this quick check, so I don't have to install Vista in vain.
    I mainly use MIDI interface for compositions and playback. So, could anyone please find a MIDI file with some FASTER parts, play it, and check if there are any dropouts or note misplacements?
    It was the issue in all previous driver versions, so please, somebody check this for me will ya?
    I have X-Fi Extreme Music.
    Thanks

    Here is the link to 2 faster midi files... If you have Windows Vista, X-fi and new drivers, please listen to them and tell me do they sound good or bad. Are there any dropouts, or any other issues?
    http://www.box.net/shared/2vxsohpagv
    Thanks.

  • Could you please check this code

    Hi There,
    The scenario here is :
    I have written this piece of code but its not showing desired result .I think the problem is in the AVGRANGE.
    Please look into this and let me know if I am doing anything wrong.
    I need to accomplish this task ,if employee E1 & E2 are in Entity1 in Grade S in forecast1 and now in forecast 2 a new employee namely E3 has come in this new forecast and whether he belongs to same entity can be identified by a new account say "F",If "F" is present for that Employee in that particular entity means he belongs to that Entity .Then I need to calculate.
    "P" value for E3 for a month=Avg of "P" value for E1 & E2 in Entity1 in Grade S for that month.
    I think this code is calculating for invalid combination also.
    FIX (&CurrFctScenario,&CurrFctVersion,&CurrYear)
    FIX (&SeedCurrency)
    FIX(@descendatns("Entity"),@descendatns(GRADE),@Descendants(Employee)
    FIX (&CurrMonth:"MAY"
    , &SeedHSP
    "P"(
    IF ( "F"!=#Missing AND "P"==#Missing)
    @AVGRANGE(SKIPNONE,"P",@children(Employee)->@currmbr(Grade)->@currmbr(entity));
    ENDIF;
    ENDFIX
    ENDFIX
    One more thing as I am testing this code for say two three employees then its working fine but as I am uisng @children(Employee) then I am getting error message
    Error: 1012704 Dynamic Calc processor cannot lock more than [200] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    Is there any other way of doing this calculation?
    Edited by: user10760185 on Jun 1, 2011 5:35 AM

    Thanks a lot Alp...
    Please find the logic of the calculation below:
    In forecast1,here E1=employee,S1=Grade,P1=Account member
    E1->S1->Entity1->P1= 100
    E2->S1->Entity1->P1=200
    In forecast2,E3,a new employee has come and if he/she belongs to S1 and Entity1 ,then the value should be
    If (E3->F!->@currmbr(grade)->@currmbr(entity)=#Missing AND P1==#Missing)
    E3->S1->Entity1->P1= (100+200)/2
    I will read the document and will check my cache settings.
    Edited by: user10760185 on Jun 1, 2011 11:36 PM

  • Hello, please check this out..

    I have an iPhone 2G 8GB and my problems are:
    1. My iPhone is stuck on Connect to iTunes
    2. My iPhone's screen is GREEN
    3. When I tried to restore the software, my phone would turn off then cancels the software restoring.
    4. When I unplug my iPhone 2G it will suddenly shut off and pressing the Power button can't get my iPhone on.
    5. I get errors like 1611, 1600, 1603 after the software restore failed.
    These are the actual pictures:
    -I know that Error 1611 is hardware issue, should i replace my battery?
    -Should I use original apple sync cable?
    -What are the remedies?
    Please help, this is my one and only first iPhone. I live here in Philippines..

    No, not the way you have designed it.
    What you have is
    Son1 IS A Father
    Son2 IS A Father
    Are you sure that is what you want, while the Sons will most likely end up as Fathers, as you only want the Father constructor called once it sounds like you want a
    Son1 HAS A Father.
    To do this you need to user composite relation.
    I.e.
    class Father {
       Father() {
           System.out.println( "Daddy!" );
    class Son {
      private final Father myFather;
       Father( Father myFather ) {
           this.myFather = myFather;
           System.out.println( "Son" );
    public static void main( String[] args ) {
        Father baba = new Father();
        Son jerry = new Son( baba );
        Son fred = new Son( baba );
    }

  • Whenever i try to open iTunes i encounter the messages "The application or DLL.....is not a valid windows image. Please check this against you installation diskette." and "iTunes was not installed correctly. Please re-install iTunes. Error 7 windows error

    I cant open my itunes at all, keep getting two errors about application or DLL being a bad image, and about how i need to reinstall iTunes because of itunes error 7 and windows error 193, please help!! Ive already un-installed and re-installed itunes many times to no prevail

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.<br />
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.<br />
    Don't remove personal data when uninstalling.<br />
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.<br />
    <br />
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall
    You may have a malware problem if you get unrelated pop-ups opening or are redirected to unrequested websites.
    If that is the case then do a malware check with a few different programs.
    Every program finds different malware, so you need to use more than one program to scan.
    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Error message: Bad Image: The application or DLL C:\Program Files\Mozilla Firefox\MOZCRT19.dll is not a valid Windows image. Please check this against your installation diskette.

    I was in Firefox but I exited. Soon I opened it again, it
    installed updates and this message showed up. I tried
    scanning the file, looking at it, and everything short of
    reinstalling Firefox (which every other person with this
    problem has tried but it has not worked.). I installed
    Firefox by USB drive, not a diskette, and I no longer have
    it with me, so I can't check it from there. What should I
    do to fix this problem?

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.<br />
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.<br />
    Don't remove personal data when uninstalling.<br />
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.<br />
    <br />
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall
    You may have a malware problem if you get unrelated pop-ups opening or are redirected to unrequested websites.
    If that is the case then do a malware check with a few different programs.
    Every program finds different malware, so you need to use more than one program to scan.
    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • If MD02 don´t plan the components, please check this thread.

    There is a new error in Md02 with IS-ADEC solution.
    The BOM is not exploded and the components are not planned.
    THis is a serious error with many consequences in planning and execution enviroment.
    The note 1562786 will sove this issue.Please be informed about this note.
    This is the validity of the note:
    ECC Discrete Industries Mill Products
                                              600
    SAPK-60020INECCDIMP
                                              602
    SAPK-60210INECCDIMP
                                              603
    SAPK-60309INECCDIMP
                                              604
    SAPK-60410INECCDIMP
                                              605
    SAPK-60504INECCDIMP
    Thanks
    Maria Nunez  Senior PP consultant of SAP

    Hi Maria Nunez,
    Firstly i would thanks for finding out new error in MD02. Some extent i got the issue but still need some more clarification on this.
    Mainly I am not familiar with IS-ADEC could you please help me out to get more information obut it.
    Thanks & Regards,
    Madhu.G

  • Am trying to purchase a subcription, giving all the necessary details, told that i am to receive a reply back, which i am NOT receiving even though after 3 days. could you please check this out

    Could you please let me know about the above as i need to transfer files urgently. Have tried to resend again but to no avail.

    Hi stephena,
    I have checked your account; there are no recent orders under the email address that you use here in the forums. So, I'm wondering if you may have signed up using a different email address, or signed up for a subscription via a Reader mobile app? For the latter, those subscriptions are handled by the app store from which you made the purchase, so Adobe wouldn't have record of those.
    Best,
    Sara

  • Linking to a mp4 / video file.. please check this out

    getting frustrated with this..
    go to this page..
    www.thedailypodvid.com/archive
    this is just an experiment - look at the three files - they seem to be identical in type and extension.. BUT, the bottom two do not load properly?? BEWARE, first file is of slight adult nature.
    Is it because of the type of webserver it is on?? i just want to link to these files so people can download..
    thansk in advance!!
    PB 17", IB 14"   Mac OS X (10.4)  
    PM 1.6   Mac OS X (10.4)  

    Note that there are and will be many other players which can play mp4 files (Mplayer, VLC media player, RealPlayer). So it is good practise to always provide additional download link in cases when you use QuickTime plug-in to embed mp4 files. (and when we are in here for mp4 embed you can even create script which checks if QuickTime is installed, if not try RealPlayer, and only after that provide QuickTime Player/plug-in download)
    For plain links just make sure that your server sends correct MIME-type video/mp4 for .mp4 extension.
    Send the following message to your server administrator:
    “I am putting an MP4 video on my Web site, but your Web server doesn’t support this file type. Could you make sure files with an .mp4 extension are mapped to MIME type video/mp4.”
    If your server is apache then you can also try to add following line to your .htaccess file
    AddType video/mp4 mp4
    Additionally if you want to try force download dialog, instead Quicktime(when available) playing mp4 directly in empty browser window, after clicking link, you can use Content-Disposition header. For example add following to .htaccess (Note that headers module must be in use)
    <IfModule mod_headers.c>
    <Files "*.mp4">
    SetEnvIf Request_URI "/([^>*)$" IT=$1
    header set Content-Disposition "attachment; filename=\"%{IT}e\"
    </Files>
      Windows XP Pro  

  • Social Pictures Website - Please check this out and let me know what you think!

    We've released a new social pictures website. You can disuss images on there or submit your own images for inclusion. We're currently driving a lot of traffic to the site and getting feedback. Keep in mind the interface is still pretty basic while we figure out what direction to take this.
    Review please and provide input if you can.
    http://www.like-it-or-hate-it.com
    Thanks!

    Keep in mind that when it comes to reproducing music, size matters. Tiny little plug-in pairs of speakers like these are more novelties than practical solutions for headphones-free listening because they can't move much air, which is necessary to reproduce lower frequencies at useful sound levels. Basically, they are a pair of low power tweeters & that's just about what they will sound like.
    I have a pair of the fold-out speakers pictured in one of the URL's -- they use roughly 2" drivers, each in an enclosure tuned to augment the lower frequencies, & have their own power amps, requiring either USB or separate batteries to power. When folded up, the package is about the size of a small grapefruit -- much larger than either the plug-in speakers or the iPod. Even so, the sound they produce would never be mistaken for rich, full range audio.

Maybe you are looking for

  • Problem: Using iTunes 6 with multiple user accounts in XP

    I recently installed iTunes 6.0.0.18 as an upgrade in Windows XP Professional. After installing the software and a restart, I attempted to use iTunes with success as the Administrator. However as another user, iTunes when launched will prompt the use

  • [svn:bz-trunk] 22429: Adding the default fallback of serializer and deserializer classes to amf deserializer and amf serializer

    Revision: 22429 Revision: 22429 Author:   [email protected] Date:     2011-09-07 08:04:46 -0700 (Wed, 07 Sep 2011) Log Message: Adding the default fallback of serializer and deserializer classes to amf deserializer and amf serializer Modified Paths:

  • Add photo grid to a page?

    I am trying to add a photo grid to one of my blog entries and I can't seem to get it to work properly. I have cut and pasted an empty album onto the page and set up the height to allow for everything on the page. The problem I am having is that when

  • Auto_start_on_new_cluster and booting node

    hi, OS: Solaris 10 11/06 Soft: Sun Cluster 3.1u4 (120500-12, 120489-04) 1. i have a failover group. it works well. 2. i have false in "Auto_start_on_new_cluster" # scrgadm -pvv | grep Auto (myrg) Res Group Auto_start_on_new_cluster: False 3. make gro

  • Sync not working with PS Touch on Andriod

    Sync has stopped working between PS Touch and Creative Cloud on my Android phone (Samsung G4). Touch is version 1.2.1, and I'm running CC and PS on my Mac under OSX Mavericks. Sync had previously worked. What happens now is that when I turn sync on i