Relationship caching exception

Me again. As I methodically walk through all of the latest WL7.0 EJB
features I keep running in to problems.
Today it was relationship caching. I have two simple CMP beans, Person and
Address, with a 1-to-many relationship. Optimistic locking. Standard stuff,
works fine without the rel cache.
The cmp descriptor includes following lines specifying the cache:
<relationship-caching>
<caching-name>withaddress</caching-name>
<caching-element>
<cmr-field>addresses</cmr-field>
</caching-element>
</relationship-caching>
Finder query defined in ejb-xml, re-defined in cmp descriptor to set cache
name:
<weblogic-query>
<query-method>
<method-name>findByLastNameWithAddress</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<caching-name>withaddress</caching-name>
</weblogic-query>
When I execute the finder in the context of a transaction I see the proper
outer-join SQL statement float by, and then log messages attempting to
preload the person and address beans from the finder results, and then it
bombs inside WL cache logic:
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : called
findByLastNameWithAddress
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : Finder produced statement
string
SELECT WL0.ID, WL0.FIRSTNAME, WL0.LASTNAME, WL0.MIDDLENAME, WL0.SALUTATION ,
WL1.ID, WL1.CITY, WL1.POSTAL_CODE, WL1.STATE, WL1.STREET, WL1.PERSON_ID,
WL1.PERSON_ID FROM PERSON WL0, ADDRESS WL1 WHERE ( (WL0.LASTNAME LIKE
? ) ) AND WL1.PERSON_ID (+)= WL0.ID
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] :
PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS.setup called.
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : __WL_loadGroup2FromRS
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : bean after finder load:
com.wiley.compBooks.nyberg.ch07b.ejb.PersonCMPBean_g8o4xg__WebLogic_CMP_RDBM
S@36d85f
[AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS] :
AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS.setup called.
[AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS] : __WL_loadGroup2FromRS
[AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS] : __WL_loadCMRFieldFromRS_person
javax.ejb.FinderException: Exception executing finder
'findByLastNameWithAddress':
java.lang.NullPointerException
at weblogic.ejb20.cache.TxKey.<init>(TxKey.java:30)
at weblogic.ejb20.cache.EntityCache.doGet(EntityCache.java:158)
at weblogic.ejb20.cache.EntityCache.get(EntityCache.java:127)
at
weblogic.ejb20.manager.DBManager.finderCacheInsert(DBManager.java:985)
at
weblogic.ejb20.manager.BaseEntityManager.cacheInsertBean(BaseEntityManager.j
ava:1036)
at
com.wiley.compBooks.nyberg.ch07b.ejb.PersonCMPBean_g8o4xg__WebLogic_CMP_RDBM
S.ejbFindByLastNameWithAddress(PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS.java
:718)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.collectionFinder(RDBMSPersi
stenceManager.java:300)
at
weblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.
java:715)
at
weblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.
java:688)
at
weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:47
6)
Thoughts? I dread trying to walk support through this..
-Greg
Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
www.oreilly.com/catalog/entjbeans3 or www.titan-books.com

Quick follow up question: Can the outer-join syntax be used with EJB QL? Any thoughts,
ideas, suggestions, etc. would be very helpful?
Thank yo so much,
-Bart
"Bart Simpson" <[email protected]> wrote:
>
Hi,
How are you doing? I have couple of questions:
o When is outer-join generated instead of regular join?
o When is the sp slated for (I am sure this question has been asked at
least a
million times:)
Thank you so much...
-Bart
Michael Chen <[email protected]> wrote:
This problem is fixed now. The fix will be include in WLS7.0 SP1.
Michael
Michael Chen wrote:
Greg,
This is our bug. Can you send me your application, setup of yourdatabase
tables, and your database content? I will fix this bug for you.
thanks,
Michael
Greg Nyberg wrote:
Me again. As I methodically walk through all of the latest WL7.0
EJB
features I keep running in to problems.
Today it was relationship caching. I have two simple CMP beans,
Person
and
Address, with a 1-to-many relationship. Optimistic locking. Standardstuff,
works fine without the rel cache.
The cmp descriptor includes following lines specifying the cache:
<relationship-caching>
<caching-name>withaddress</caching-name>
<caching-element>
<cmr-field>addresses</cmr-field>
</caching-element>
</relationship-caching>
Finder query defined in ejb-xml, re-defined in cmp descriptor toset cache
name:
<weblogic-query>
<query-method>
<method-name>findByLastNameWithAddress</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<caching-name>withaddress</caching-name>
</weblogic-query>
When I execute the finder in the context of a transaction I see
the
proper
outer-join SQL statement float by, and then log messages attemptingto
preload the person and address beans from the finder results, andthen it
bombs inside WL cache logic:
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : called
findByLastNameWithAddress
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : Finder produced statement
string
SELECT WL0.ID, WL0.FIRSTNAME, WL0.LASTNAME, WL0.MIDDLENAME, WL0.SALUTATION,
WL1.ID, WL1.CITY, WL1.POSTAL_CODE, WL1.STATE, WL1.STREET, WL1.PERSON_ID,
WL1.PERSON_ID FROM PERSON WL0, ADDRESS WL1 WHERE ( (WL0.LASTNAMELIKE
? ) ) AND WL1.PERSON_ID (+)= WL0.ID
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] :
PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS.setup called.
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : __WL_loadGroup2FromRS
[PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS] : bean after finder load:
com.wiley.compBooks.nyberg.ch07b.ejb.PersonCMPBean_g8o4xg__WebLogic_CMP_RDBM
S@36d85f
[AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS] :
AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS.setup called.
[AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS] : __WL_loadGroup2FromRS
[AddressCMPBean_77rz6d__WebLogic_CMP_RDBMS] : __WL_loadCMRFieldFromRS_person
javax.ejb.FinderException: Exception executing finder
'findByLastNameWithAddress':
java.lang.NullPointerException
at weblogic.ejb20.cache.TxKey.<init>(TxKey.java:30)
at weblogic.ejb20.cache.EntityCache.doGet(EntityCache.java:158)
at weblogic.ejb20.cache.EntityCache.get(EntityCache.java:127)
at
weblogic.ejb20.manager.DBManager.finderCacheInsert(DBManager.java:985)
at
weblogic.ejb20.manager.BaseEntityManager.cacheInsertBean(BaseEntityManager.j
ava:1036)
at
com.wiley.compBooks.nyberg.ch07b.ejb.PersonCMPBean_g8o4xg__WebLogic_CMP_RDBM
S.ejbFindByLastNameWithAddress(PersonCMPBean_g8o4xg__WebLogic_CMP_RDBMS.java
:718)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.collectionFinder(RDBMSPersi
stenceManager.java:300)
at
weblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.
java:715)
at
weblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.
java:688)
at
weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:47
6)
Thoughts? I dread trying to walk support through this..
-Greg
Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
www.oreilly.com/catalog/entjbeans3 or www.titan-books.com

Similar Messages

  • Cache Exception while running test_fwktutorial.jsp in  R12

    Hi all,
    There is a Cache Exception encountered while running test_fwktutorial.jsp in R12 instance. It gives a "Success" messsage when tested for the data base connection. The base exception is shown as "null connection".
    Below is the complete stack trace of the exception.
    500 Internal Server Error
    oracle.apps.fnd.cache.CacheException     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228)     at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1485)     at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:354)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)     at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1259)     at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1114)     at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1083)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1050)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1037)     at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)     at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:941)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:926)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:891)     at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1027)     at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:223)     at OAErrorPage.jspService(_OAErrorPage.java:66)     [OAErrorPage.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:847)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:813)     at test_fwktutorial._jspService(_test__fwktutorial.java:104)     [test_fwktutorial.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: oracle.apps.jtf.base.resources.FrameworkException: Error in IAS Cache: java.lang.NullPointerException: null Connection     at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:712)     at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802)     at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624)     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216)     ... 51 moreCaused by: oracle.apps.jtf.base.resources.FrameworkException: An exception occurred in the method CacheAccess.getnullThe base exception is:null Connection     at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)     at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)     ... 55 more

    Check this notes
    Note 391554.1 - Oracle Application Framework Documentation Resources, Release 12
    ML Doc 416708.1 (How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12)
    Thanks

  • A cache exception RenderAgent is not initialized in Oracle IPM 11g

    Hi,
    Any idea what this is error is about I am using Oracle IPM 11g and when viewing the document in the Viewer I am getting the below error. Am using Oracle UCM as the repository.
    A cache exception RenderAgent is not initialized
    Thanks

    Hi,
    We are getting the same error while opening a PDF file in IPM viewer.
    - A cache exception occurred. RenderAgent is not initialized
    We are using IPM version 11.1.1.4.0
    If anyone has found a solution to this issue, kindly share.

  • Re: relationship caching for dynamic query finder

    "Carlos Muchiutti" <[email protected]> wrote:
    I have the same scenario ... is there an answer for this?
    "Haoguang" <[email protected]> wrote in message
    news:3e2e64af$[email protected]..
    Is there any way to using the relationship caching defined in thedeployment descriptor
    for the dynamic query?
    I suppose it should be one of the properties passed to the query findmethod (Query.query.find(String,
    Properties)).
    I was unable to locate any documentation or examples for the question.
    What is the key set the Properties? I know the "GROUP_NAME" is one,which
    I found
    via Google. Bravo to the documentation of bea!
    ps, We are using Weblogic 7 with sp1.
    Your help or comments will be appreciated.
    Try the stuff described in:
    http://e-docs.bea.com/wls/docs70/ejb/EJB_environment.html#1151177

    There is no information related to dynamic query finder with relationship caching.

  • Cache Exception

    I'm getting an exception thrown when trying to use a cache. Can anyone tell me what the problem is?
    Here's the output from the console:
    * Tangosol Coherence(tm): Enterprise Edition is licensed by Tangosol, Inc.
    * License details are available at: http://www.tangosol.com/license.jsp
    * Licensed to Putnam Investments Trust (http://www.putnam.com/) for development use
    * with the following restrictions:
    * Site Restriction : One Post Office Square, Boston, Massachusetts 02109-2016
    * A production license is required for production use.
    * Copyright (c) 2000-2006 Tangosol, Inc.
    The specified log file "C:\Documents and Settings\edeandrea\Desktop\Tangosol" refers to a directory;
    using System.out for log output instead.
    Tangosol Coherence Version 3.1.1/341
    2006-11-03 14:37:05.041 Tangosol Coherence 3.1.1/341 <D5> (thread=main, member=n/a): Loaded operatio
    nal configuration from resource "jar:file:/C:/projects/Putnam/PC/dev/jars/coherence.jar!/tangosol-co
    herence.xml"
    2006-11-03 14:37:05.041 Tangosol Coherence 3.1.1/341 <D5> (thread=main, member=n/a): Loaded operatio
    nal overrides from resource "file:/C:/Sun/AppServer7/domains/domain1/server1/config/pc/config/tangos
    ol/tangosol-coherence-override.xml"
    2006-11-03 14:37:05.524 Tangosol Coherence 3.1.1/341 <D5> (thread=Cluster, member=n/a): Service Clus
    ter joined the cluster with senior service member n/a
    2006-11-03 14:37:12.054 Tangosol Coherence 3.1.1/341 <D5> (thread=Invocation:Management, member=1):
    Service Management joined the cluster with senior service member 1
    SafeCluster: Name=n/a
    Group{Address=239.3.3.11, Port=31339, TTL=16}
    MasterMemberSet
    ThisMember=Member(Id=1, Timestamp=Fri Nov 03 14:37:05 EST 2006, Address=172.20.20.209, Port=8088,
    MachineId=44241)
    OldestMember=Member(Id=1, Timestamp=Fri Nov 03 14:37:05 EST 2006, Address=172.20.20.209, Port=8088
    , MachineId=44241)
    ActualMemberSet=MemberSet(Size=1, BitSetCount=2
    Member(Id=1, Timestamp=Fri Nov 03 14:37:05 EST 2006, Address=172.20.20.209, Port=8088, MachineId
    =44241)
    RecycleMillis=240000
    RecycleSet=MemberSet(Size=0, BitSetCount=0
    Services
    TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=172.20.20.209:8088}, Connections=[]}
    ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.1, OldestMembe
    rId=1}
    InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
    Map (?): cache PCRankScore
    2006-11-03 14:37:15.537 Tangosol Coherence 3.1.1/341 <D5> (thread=main, member=1): Loaded cache conf
    iguration from file "C:\Sun\AppServer7\domains\domain1\server1\config\pc\config\tangosol\tangosol-ca
    che-config.xml"
    2006-11-03 14:37:15.584 Tangosol Coherence 3.1.1/341 <Error> (thread=main, member=1):
    java.lang.UnsupportedOperationException: configureCache: read-write-backing-map-scheme
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheF
    actory.java:901)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFact
    ory.java:284)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:606)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:15)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.C
    DB:192)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:39)
    at com.tangosol.coherence.component.Application.main(Application.CDB:4)<br><br> <b> Attachment: </b><br>tangosol-cache-config.xml <br> (*To use this attachment you will need to rename 403.bin to tangosol-cache-config.xml after the download is complete.)<br><br> <b> Attachment: </b><br>tangosol-coherence-override.xml <br> (*To use this attachment you will need to rename 404.bin to tangosol-coherence-override.xml after the download is complete.)

    Hi Dimitri,
    Your suggestion did work. Is there a way I can use <scheme-ref> to call a reference of a cachestore scheme? I'm trying to do something like this and it doesn't seem to work:
    <caching-schemes>
    <local-scheme>
    <scheme-name>PCRankScore</scheme-name>
    <cachestore-scheme>
    <scheme-ref>RankScoreTangosolCacheBackingDAO</scheme-ref>
    </cachestore-scheme>
    </local-scheme>
    <cachestore-scheme>
    <scheme-name>RankScoreTangosolCacheBackingDAO</scheme-name>
    <class-scheme>
    <class-name>com.putnaminv.pc.dao.cache.rankscore.RankScoreTangosolCacheBackingDAO</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </caching-schemes>

  • Nested relationship caching  A- B- C- D

    can someone point me in the right direction if i want to cache related object (cmr) tree ..
    A has one -> many B's
    and
    B has one -> one C
    and
    C has one -> one D
    i want to get all related objects at once..when i try to get A in a particular case . ( i dont want to get c and d when i get B , so i cant put caching on default finder(s) of B )..
    WL8.SP3
    Sybase
    CMP
    Message was edited by nikbuds at Dec 15, 2004 2:48 PM

    Hi,
    Lazy-Loading is the default behavior of most ejb containers. That is, when ejbFindByXXX is called, it only checks for row-existence. Only subsequent business method invocation will trigger ejbLoad.
    However, some containers optimize CMP behavior, when a flag is set, to agressively load all rows in ejbFindByXXX. WL 6.1 goes one step further and allows you to declare field groups you want to aggressively load. BMP is limited in that since YOU define the sql statements in ejbFind and ejbLoad, you have little control over container-caching mechanism.
    So for this you should use agressive loading method.Following link may be useful to you
    http://www.theserverside.com/patterns/thread.jsp?thread_id=4540
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/CompositeEntity.html
    Pradeep
    Message was edited by pradeeptiwari at Dec 16, 2004 12:45 PM

  • Max-beans-in-cache, cachefullException, outOfMemoryError

    Hi,
    I am trying to find the best way to find the numbers to be set in max-beans-in-cache
    for entity beans. I have a stateless session bean through which I access the entity
    beans. If I don't set any value for this property, in some query which will return
    2500 records, I get a cachefullexception and if I increase it and set this property
    to say 5000, I get an outofmemory error. I am not sure how to decide what value
    should be used. Any help or suggestion would be greatly appreciated. We are using
    WLS 7.0 on NT machines in a cluster.
    I have already tried the maxPermSize option in the jvm. The max heap size is
    set to 768m.
    Thanks,
    Jaideep

    Please reply only to the newsgroup.
    If you are doing a find and then invoking on the bean, splitting the transaction into
    multiple transactions that return smaller sets of beans is the only thing I can think of to
    get around the problem.
    If you are simply doing a find, but not invoking the beans, you could set finders-load-bean
    to false in the EJB deployment descriptor to avoid loading the bean when the finder is
    called. The bean will then be loaded and put into the cache only when it is invoked.
    However, this setting affects all finders defined on the bean and if you have transactions
    that do a find and invoke, performance could be lower if set to false.
    Unless relationship-caching is turned on, related beans are not loaded when a finder is
    invoked.
    Arunabh
    "Chadha, Jaideep" wrote:
    Thanks Arunabh. I tried different values and came
    up with the ones that suite our needs. Also the
    cache size is restricted in a transaction, we can
    split the transactions into multiple transactions
    especially for read-only data. Do you think that
    would be a good idea? I was also thinking if it
    was possible to define the attribute for the
    entity beans especially in case of relationships that
    they get loaded in finders when I need them but for
    some methods they don't get loaded in finders. And
    when a getXXX is invoked that particular bean gets
    loaded at that time.
    It will be helpful, if you could let me know.
    Thanks,
    JaideepArunabh Hazarika wrote:
    Increasing the max-beans-in-cache will always mean higher memory requirements. Afraid
    there is no way around it except to increase the max heap size. You could try a new
    feature in WLS 7.0 - application level caches. This is specified in the application
    deployment descriptor rather than at the bean deployment descriptor. With this cache,
    the cache size can be specified in terms of memory-size rather than an instance-count.
    You can find out how to set this from:
    http://e-docs.bea.com/wls/docs70/programming/app_xml.html (search for entity-cache)
    This cache would be shared across all EJBs in the application. Also, note that this will
    not prevent CacheFullExceptions from occuring, but would be more useful in avoiding
    OutOfMemory errors. To avoid CacheFullExceptions without indefinitely increasing the
    heap size, try to limit the number of beans loaded in a single transaction.
    Hope this helps
    Arunabh
    Jaideep wrote:
    Hi,
    I am trying to find the best way to find the numbers to be set in max-beans-in-cache
    for entity beans. I have a stateless session bean through which I access the entity
    beans. If I don't set any value for this property, in some query which will return
    2500 records, I get a cachefullexception and if I increase it and set this property
    to say 5000, I get an outofmemory error. I am not sure how to decide what value
    should be used. Any help or suggestion would be greatly appreciated. We are using
    WLS 7.0 on NT machines in a cluster.
    I have already tried the maxPermSize option in the jvm. The max heap size is
    set to 768m.
    Thanks,
    Jaideep

  • An error occurred in the core cache

    Hi All
    <b>I have posted this Message almost 3 to 4 time , but no one has replied , as they have never come across the problem, if this is the case , we shud take those ases first. pls help !!!!</b>
    Case : ISA B2C CRM
    Deploying through SDM
    I have created New Custom B2C as per Extension Template
    Action
    Business Object Manager
    Business Object
    Backend Interface
    Backend Object
    Created Entries in bom-config.xml & backendobject-config.xml as well
    Classes are as per Extension.
    My Modified Application was working Fine ==> It has passed all layers & retriving DATA from CRM & Displaying on Custom JSP.
    Now what is the intresting point i am facing is the EAR which has been deployed successfully & Running before Server Restart is only Working.
    , when i Create new EAR ( with Same context node) & deploy , after launching that Application this Errors Come( yes i have undeployed the Working EAR as the context node is same)
    500 Internal Server Error
    SAP J2EE Engine/6.40
    Application error occurred during request processing.
    Details: Error [com.sap.engine.services.servlets_jsp.server.exceptions.WebServletException:
    Error while servlet [action] is initialized with a run-as identity.],
    with root cause [java.security.PrivilegedActionException: null].
    Exception id: [0002A56BEBF7005700000112000007A400041641E2ED396E]
    Now it the same case with each n every EAR with different contextnode which i create through isa build tool ( but earlier it was not the case though i am following same procedure for creating ear)
    What is going Wrong !!!!!!!!!!!!!.
    Is there is any problem with SDM !!!!.
    When i have gone to Logs isaerror.log
    #1.5#0002A56BEBF7003E00000039000007A400041642BB7830DC#1150375776023#bccom.sapmarkets.isa.core.cache.CacheInitHandler#sap.com/crm.b2c_b2cApp#bccom.sapmarkets.isa.core.cache.CacheInitHandler#J2EE_ADMIN#542##ilggladev04_C4D_4756250#Guest#65318570fc6d11dac2c90002a56bebf7#SAPEngine_Application_Thread[impl:3]_19##0#0#Error#1#/#Plain###[undefined|system.cache.exception] An error occurred in the core cache "region 'XCM_SESSION_SCOPE' already exists in cache"# #1.5#0002A56BEBF7003E0000003A000007A400041642BB7A1624#1150375776132#bccom.sapmarkets.isa.core.cache.CacheInitHandler#sap.com/crm.b2c_b2cApp#bccom.sapmarkets.isa.core.cache.CacheInitHandler#J2EE_ADMIN#542##ilggladev04_C4D_4756250#Guest#65318570fc6d11dac2c90002a56bebf7#SAPEngine_Application_Thread[impl:3]_19##0#0#Error#1#/#Plain###[undefined|system.cache.exception] An error occurred in the core cache "region 'XCM_APP_SCOPE' already exists in cache"# #1.5#0002A56BEBF7003E0000003B000007A400041642BE2515F7#1150375820912#bccom.sapmarkets.isa.core.init.InitializationHanlder.performInitialization#sap.com/crm.b2c_b2cApp#bccom.sapmarkets.isa.core.init.InitializationHanlder.performInitialization#J2EE_ADMIN#542##ilggladev04_C4D_4756250#Guest#65318570fc6d11dac2c90002a56bebf7#SAPEngine_Application_Thread[impl:3]_19##0#0#Error#1#/#Plain###[undefined|system.initFailed] Initalization of com.sapmarkets.isa.core.xcm.init.ExtendedConfigInitHandler failed
    java.lang.StackOverflowError #
    then I have come to Point that there is somthing wrong with Cach Control Configuration .
    with errors as follows
    An error occurred in the core cache "region 'XCM_SESSION_SCOPE' already exists in cache"#
    An error occurred in the core cache "region 'XCM_APP_SCOPE' already exists in cache"#
    Initalization of com.sapmarkets.isa.core.xcm.init.ExtendedConfigInitHandler failed
    I tried to clear the cache through http://localhost:50000/b2c_b2cApp/admin/index.jsp
    but the page comes blank without any links
    Initially this was not the Problem , now how it is Coming !!!! But as far as i know , once our Development Server was Restarted .( not just j2ee Server)
    Now after that whatever new EAR i m building ( locally) is not coming Properly
    Please can u throw some Light on that.
    pls help me , i believe , u all can solve my problem
    Please Reply Soon
    Thanks & Regards
    Ravi Sah

    Hi
         can some body look at this issue .
    I will be very thankful to you all.
    Thanks & regards
    Ravi Sah

  • Interface mapping Object does not exist in runtime cache

    I am getting the following error after importing IR into our test system (PI7.0 SP10).
    Interface mapping Object ID 19C3AC9D13B03787AEEB85169D0B6900 Software Component 8C51B2209F3C11DB94CEEB180DDF0074 does not exist in runtime cache Exception of class CX_XMS_SYSERR_MAPPING
    You want to execute interface mapping Object ID 19C3AC9D13B03787AEEB85169D0B6900 Software Component 8C51B2209F3C11DB94CEEB180DDF0074 .     However,the data of this interface mapping is missing in the runtime cache. Activate the interface mapping in the Integration Repository.
    I cannot change the mapping and reactivate - as this cannot be changed.
    I have run SXI_Cache, Cleared SLD caches on IR and ID and run cacherefresh=full, but no luck!
    The mapping is there and I can test it in the IR.
    Any thoughts?

    I had this problem today, maybe this helps someone when searching about this (at least this is the first hit at a very big search engine when searching for interface mapping does not exist...)
    I have a RFC => PI => File scenario. I was aware that this would need to be asynchronous so I set up the message interface (service interface for PI > 7.0) as asynchronous inbound. This is the file receiver part of the interface.
    Hints on the error: Audit Log in message details of RWB showed a line like this: RFC adapter received sRFC for ZMY_FM from <sender SID>/<sender client>. Attempting to send message synchronously. This of course could not work as file is asynchronous by default.
    Bottom line however was, to make the call of the sender RFC asynchronous by using "in background task" like so:
    CALL FUNCTION 'ZMY_FM'
       IN BACKGROUND TASK
       DESTINATION 'PI_DEST'
       EXPORTING
         t_file = lt_file.
    COMMIT WORK.
    Don't forget the commit work here.
    Hope this helps.
    Cheers
    Jens

  • What else are stored in the database buffer cache?

    What else are stored in the database buffer cache except the data blocks read from datafiles?

    That is a good idea.
    SQL> desc v$BH;
    Name                                                                                                      Null?    Type
    FILE#                                                                                                              NUMBER
    BLOCK#                                                                                                             NUMBER
    CLASS#                                                                                                             NUMBER
    STATUS                                                                                                             VARCHAR2(10)
    XNC                                                                                                                NUMBER
    FORCED_READS                                                                                                       NUMBER
    FORCED_WRITES                                                                                                      NUMBER
    LOCK_ELEMENT_ADDR                                                                                                  RAW(4)
    LOCK_ELEMENT_NAME                                                                                                  NUMBER
    LOCK_ELEMENT_CLASS                                                                                                 NUMBER
    DIRTY                                                                                                              VARCHAR2(1)
    TEMP                                                                                                               VARCHAR2(1)
    PING                                                                                                               VARCHAR2(1)
    STALE                                                                                                              VARCHAR2(1)
    DIRECT                                                                                                             VARCHAR2(1)
    NEW                                                                                                                CHAR(1)
    OBJD                                                                                                               NUMBER
    TS#                                                                                                                NUMBERTEMP      VARCHAR2(1)      Y - temporary block
    PING      VARCHAR2(1)      Y - block pinged
    STALE      VARCHAR2(1)      Y - block is stale
    DIRECT      VARCHAR2(1)      Y - direct block
    My question is what are temporary block and direct block?
    Is it true that some blocks in temp tablespace are stored in the data buffer?

  • Desktop AIR app debug build running from cache?

    I'm new to flash builder (using 4.5 for os x) and I've been working on a desktop AIR app for the last week.  I've been running into a strange issue when deugging my app.  Every once and a while (maybe 4-5 times a day) after I make changes to my code and I make a new debug build, a much older version of the app runs when I run the app with or without the debugger, or even if I export for release.  It's as though its running (or building) from the cache, except I'm building a desktop app and I'm not testing the swf on a browser.  I've turned off "Build Automatically", cleaned the project and build again but no changes are reflected.  I can't figure out how, but after cleaning, quitting flash builder, restarting, cleaning, building again, etc.. numerous times suddenly I will see the current version of the app back up and running.  I cannot for the life of me figure out how to quickly resolve the issue, or what exactly is fixing it. Every time it seems like something else triggers FB to refresh the build.  I can even run the debugger and step through my current code while seeing completely different results on the screen.
    Has anyone else run into this issue?  Anyone know what I may be missing?  Are there settings I need to change besides "Build Automatically"?  Thanks for your help,
    Nick

    Thanks for the answer.  How exactly Flash Builder is running is a little clearer to me now.  I checked and the timestamps were indeed being updated correctly.
    This helped me to look elsewhere for the issue.  I actually now think it may have to do with mobile home sync that I have going through OS X.  Whenever the sync runs, FB seems to launch an outdated (as in hours ago) version of the app.  Despite the fact that the sync is not pulling in new files, it seems to be the issue.  If i stop the sync I start seeing the current version of the app again when I run the debugger.  So I think its just the OS causing my problem (although I still don't completely understand why exactly the issue would manifest itself in FB).  Fortunately I can recreate the issue every time I run the sync, so the problem is consistent at least!
    Thanks again for your help.

  • How can I store in cache an special object

    Hi,
         I am trying to store in coherence an OMElement object (axis2)
         the object is something like this:
         <tns:record mlns:tns="urn:mycompany.com:eng/myproj/myver">
         <tns:logRecord>
         <tns:event>
         <tns:id>1111111</tns:id>
         <tns:eid>5003</tns:eid>
         </tns:event>
         </tns:logRecord>
         </tns:record>
         but I get this error when I try to store it in the cache
         Exception
         java.lang.IllegalArgumentException: Resource is not serializable: Key=1111111, Value=<tns:record mlns:tns="urn:mycompany.com:eng/myproj/myver"><tns:logRecord><tns:event><tns:id>1111111</tns:id><tns:eid>5003</tns:eid></tns:event></tns:logRecord></tns:record>
              at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.updateResource(ReplicatedCache.CDB:7)
              at com.tangosol.coherence.component.util.CacheHandler.put(CacheHandler.CDB:11)
              at com.tangosol.coherence.component.util.CacheHandler.put(CacheHandler.CDB:1)
              at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
              at com.adteractive.idservice.caching.TimeExpirableCoherenceCache.put(TimeExpirableCoherenceCache.java:46)
              at com.adteractive.idservice.service.SetGetSessionData_Cache.testSetGetSessionData(SetGetSessionData_Cache.java:65)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at junit.framework.TestCase.runTest(TestCase.java:164)
              at junit.framework.TestCase.runBare(TestCase.java:130)
              at junit.framework.TestResult$1.protect(TestResult.java:110)
              at junit.framework.TestResult.runProtected(TestResult.java:128)
              at junit.framework.TestResult.run(TestResult.java:113)
              at junit.framework.TestCase.run(TestCase.java:120)
              at junit.framework.TestSuite.runTest(TestSuite.java:228)
              at junit.framework.TestSuite.run(TestSuite.java:223)
              at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
              at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
              at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
         public class CoherenceCache {
              private NamedCache cache = CacheFactory.getCache("VirtualCache");
              public void put(IdKey element, Object sessionObject) {
              this.cache.put(element.getId(), sessionObject, this.expirationTimePeriodInMillis);
         Is there any way I can trick him to store this object in the cache?

    Hi Momo,
         I don't exactly understand. Do you want to store the data represented by the OMElement into the cache or not?
         If you do, then the next question is can you from your code iterate over all its fields, and most importantly, are you able to recreate an identical object from those data manuallly, or not?
         If you are not able to do that, then you will not be able to put that object in the cache, or most particularly you will not be able recreate it upon getting it from the cache.
         As the OMElement and its family is an interface representing Axis2-specific stuff, you should try to find a way in Axis2 documentation to serialize data to a stream AND deserialize it back from the stream to a new object. If you cannot find such a way, there is probably a reason to that.
         If you can find a way, then you just serialize to a byte[] with the help of a ByteArrayOutputStream and in the writeExternal method you simply write that byte[] to the DataOutput via the ExternalizableHelper.writeByteArray() method. Similarly, you can read back the byte[] from the DataInput via the ExternalizableHelper.readByteArray() method, and then deserialize from a ByteArrayInputStream constructed with that byte[].
         Of course I may be wrong.
         Best regards,
         Robert

  • Distributed Cache Errors in WFE

    Unexpected error occurred in method 'Put' , usage 'Distributed Logon Token Cache' - Exception 'Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0016>:SubStatus<ES0001>:The
    connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown. ---> System.TimeoutException: The socket was aborted because an asynchronous receive
    from the socket did not complete within the allotted timeout of 00:02:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.TimeoutException:
    The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:02:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.Sockets.SocketException: The
    I/O operation has been aborted because of either a thread exit or an application request   
     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()   
     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     -
    -- End of inner exception stack trace ---   
     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)   
     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)   
     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     -
    -- End of inner exception stack trace ---   
     at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)   
     at System.ServiceModel.Channels.StreamConnection.EndRead()     -
    -- End of inner exception stack trace ---   
     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)   
     at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndReceive(IAsyncResult result)   
     at Microsoft.ApplicationServer.Caching.WcfClientChannel.CompleteProcessing(IAsyncResult result)     -
    -- End of inner exception stack trace ---   
     at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)   
     at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region,
    IMonitoringListener listener)   
     at Microsoft.ApplicationServer.Caching.DataCache.<>c__DisplayClass25.<Put>b__24()   
     at Microsoft.ApplicationServer.Caching.DataCache.Put(String key, Object value, TimeSpan timeout)   
     at Microsoft.SharePoint.DistributedCaching.SPDistributedCache.Put(String key, Object value)'.

    Hi Amol,
    check those links, contains similar issues and resolution
    https://habaneroconsulting.com/insights/sharepoint-2013-distributed-cache-bug#.VJAjsyuUdP0
    http://blogs.msdn.com/b/sambetts/archive/2014/05/28/troubleshooting-appfabric-timeouts-on-sharepoint.aspx
    http://sharepointchips.com/distributed-cache-errors-in-the-uls-log/
    https://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/2fad2277-8f5f-4323-8c18-621ae4bfe11a/refresh-the-sp2013-distributed-cache-services-logon-token-cache?forum=sharepointgeneral
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Purge Cache Crashes

    SYS: Win7  APP:Cs4
    All things work in Preferences/Cache except for Purge Cache. When i try it, Bridge crashes. How can i delete these old thumbnails?

    Close Bridge and Photoshop, then go to the cache folder (in Windows Explorer) an delete all it's contents.

  • One to many values relationship

    Hello Everyone ,
    I am working on an exception management project.  I am having some difficulty showing one to many relationship from multiple tables . I used listagg function and was able to use show the one to many relationship via a select query . However , as our application maybe housed on sql-sever , i was told to find a workaround without the oracle specific function. I ll explain the relationship between exceptions and its ids
    Exception 100 has 5 ids which has 2 distinct entity types
    EXCEPTION  ID     ENTITY TYPE
    100               1        SECURITY 
    100               2        SECURITY
    100               3        SECURITY
    100               4        BOND
    100               5        BOND
    The desired output is
    Exception        Entity_type
    100                  Security,Bond
    I have tried to use the case condition in select
    case
    when
    count(distinct link.entity_type_id) > 1
    then
    null  ----------------- ( need to use something in select )
    else
    max(entity_type_def.name)
    end
    Is it possible to do the following
    1) Use a subquery to get comma separated values ?
    2) If option 1 is not possible, any function which can be used in both sql server and oracle ?

    Trying to write a single piece of code to work on different platforms is a sure way to end up with lengthy, complicated and poorly performing code in a lot of cases.
    You would be better having two versions of the code, one written for Oracle to utilize it's power to achieve the task and one written for SQL Server to utilize it's power to achieve the same.
    PL/SQL and T-SQL are completely different languages, and whilst a lot of things are common amongst the SQL functionality, the more complex tasks tend to be better done using their own methods.
    Could you write a single piece of SQL to work on both... yes, in this case I'm sure you could... but "should" you write a single piece of SQL to work on both is probably a better question to ask.

Maybe you are looking for

  • Dbms-alerts

    I regeisted an alert using the following syntax in oracle DECLARE msg VARCHAR2 (10) := NULL; status VARCHAR2 (10) := NULL; BEGIN DBMS_ALERT.REGISTER('ALERT1234'); LOOP EXIT WHEN (msg IS NOT NULL); DBMS_ALERT.waitone ('ALERT1234', msg, status, 10); EN

  • Convert Movie for iPod-sound disappeared

    I tried to convert a video for iPod by using "Advanced/Convert Selection to iPod". After it's converted, the sound is gone. Any idea why? Also, the video quality is bad when I view it in iPod, anyway I can adjust it? Thanks!!

  • Auto Active Refresh Trust point in dns

    Hi i have problem with dnssec trust anchors, My problem is that the .(root) anchor is not refreshed automatically, now i have to go dns console and right click on Trust points and select Initiate Active Refresh. Why do need to do this every day, shou

  • Update JNLP File

    Hi, in the sap note 716604 recommend me that i make the update of the version of Sun J2SE version(1.4.2_20 b04) and i have to download an archive with extension JNLP but i dont know hoy i can update this version with this file Any ides for this issue

  • Fit Image to Screen

    I am using this code to make a screen saver that fades an image in then fades to another image. I would like to be able to set those images to full screen in case they are to large or to small for the current screen resolution. Any suggestions? Thank