JPA with GridRead configuration throws the exception

Hi,
I used the JPA entities and tried to cache the entities with GridRead configuration. I deployed the following share libraries.
coherence3.6.jar
toplink-grid-11.1.1.5.0.110305.jar
active-cache-1.0.jar
Oracle Weblogic PS5
and eclipselink is in the classpath of the application.
When I execute the read query, i faced the below exception.
Caused by: java.lang.NoSuchMethodError: org.eclipse.persistence.internal.libraries.asm.ClassWriter.<init>(Z)V
     at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.generateWrapper(WrapperGenerator.java:104)
     at oracle.eclipselink.coherence.integrated.internal.cache.WrapperGenerator.createWrapperFor(WrapperGenerator.java:96)
     at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.defineWrapperClass(CoherenceCacheHelper.java:573)
     at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.initializeForDescriptor(CoherenceCacheHelper.java:304)
     at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.initializeForDescriptor(CoherenceCacheHelper.java:299)
     at oracle.eclipselink.coherence.integrated.internal.cache.CoherenceCacheHelper.getNamedCache(CoherenceCacheHelper.java:241)
     at oracle.eclipselink.coherence.integrated.internal.querying.CoherenceRedirector.getNamedCache(CoherenceRedirector.java:51)
     at oracle.eclipselink.coherence.integrated.querying.ReportQueryFromCoherence.invokeQuery(ReportQueryFromCoherence.java:117)
     at org.eclipse.persistence.queries.DatabaseQuery.redirectQuery(DatabaseQuery.java:1862)
     at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:777)
     at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1108)
     at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:392)
     at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1196)
     at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2875)
     at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1602)
     at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1584)
     at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1549)
     at org.eclipse.persistence.internal.jpa.QueryImpl.executeReadQuery(QueryImpl.java:231)
     at org.eclipse.persistence.internal.jpa.QueryImpl.getResultList(QueryImpl.java:411)
     at oracle.communications.activation.beans.NetworkTargetEJBBean.queryByRange(Unknown Source)
     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:597)
     at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
     at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
     at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
     at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
     at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at $Proxy171.queryByRange(Unknown Source)
     at oracle.communications.activation.beans.NetworkTargetEJB_zhfqs_NetworkTargetEJBImpl.__WL_invoke(Unknown Source)
     at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
     ... 398 more
[2012-09-10T19:59:54.700+05:30] [AdminServer] [ERROR] [] [oracle.adf.controller.internal.metadata.xml.NamedParameterXmlImpl] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: admin] [ecid: 5b83b42475bd3aac:-7180ba2c:139b090e706:-8000-000000000000005b,0] [APP: oms] ADFc: /WEB-INF/oracle/communications/activation/ui/flow/activation/create-edit-networktarget-flow.xml#create-edit-networktarget-flow:
[2012-09-10T19:59:54.703+05:30] [AdminServer] [ERROR] [ADFC-52009] [oracle.adf.controller.internal.metadata.xml.NamedParameterXmlImpl] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: admin] [ecid: 5b83b42475bd3aac:-7180ba2c:139b090e7
Please let me know if require further info.
Thanks
Shri
Edited by: user10385259 on Sep 11, 2012 7:06 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

The below message shown up when start the server.
Oracle Coherence Version 3.6.0.4 Build 19111
Grid Edition: Development mode
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
2012-09-11 16:19:24.879/48.286 Oracle Coherence GE 3.6.0.4 <Info> (thread=[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded Reporter configuration from "jar:file:/opt/oracle/NIinstallables/osminstallation/bin/coherence.jar!/reports/report-group.xml"
2012-09-11 16:19:26.015/49.422 Oracle Coherence GE 3.6.0.4 <D4> (thread=[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): TCMP bound to /ip:7001 using SystemSocketProvider
2012-09-11 16:19:26.015/49.422 Oracle Coherence GE 3.6.0.4 <Warning> (thread=[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): PreferredUnicastUdpSocket failed to set receive buffer size to 1428 packets (1.99MB); actual size is 25%, 357 packets (512KB). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
2012-09-11 16:19:29.427/52.834 Oracle Coherence GE 3.6.0.4 <Info> (thread=Cluster, member=n/a): Created a new cluster "CoherenceCluster" with Member(Id=1, Timestamp=2012-09-11 16:19:26.019, Address=ip:7001, MachineId=54761, Location=site:cim.com,machine:ip,process:7843, Role=WeblogicServer, Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1) UID=0x0AB16EE900000139B4F2AB03D5E91B59
2012-09-11 16:19:29.433/52.840 Oracle Coherence GE 3.6.0.4 <Info> (thread=[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Started cluster Name=CoherenceCluster
WellKnownAddressList(Size=1,
WKA{Address=ip, Port=7001}
MasterMemberSet
ThisMember=Member(Id=1, Timestamp=2012-09-11 16:19:26.019, Address=ip:7001, MachineId=54761, Location=site:cim.com,machine:ip,process:7843, Role=WeblogicServer)
OldestMember=Member(Id=1, Timestamp=2012-09-11 16:19:26.019, Address=ip:7001, MachineId=54761, Location=site:idc.oracle.com,machine:ip,process:7843, Role=WeblogicServer)
ActualMemberSet=MemberSet(Size=1, BitSetCount=2
Member(Id=1, Timestamp=2012-09-11 16:19:26.019, Address=ip:7001, MachineId=54761, Location=site:cim.com,machine:ip,process:7843, Role=WeblogicServer)
RecycleMillis=1200000
RecycleSet=MemberSet(Size=0, BitSetCount=0
TcpRing{Connections=[]}
IpMonitor{AddressListSize=0}
2012-09-11 16:19:29.499/52.906 Oracle Coherence GE 3.6.0.4 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
2012-09-11 16:19:29.686/53.093 Oracle Coherence GE 3.6.0.4 <Info> (thread=[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)', member=1): Loaded cache configuration from "zip:/opt/oracle/beahome/user_projects/domains/osm730/servers/AdminServer/tmp/_WL_user/oms/gam4uw/security.jar!/osm-coherence-cache-config.xml"
Thanks
Shri
Edited by: user10385259 on Sep 21, 2012 7:05 AM
Edited by: user10385259 on Sep 21, 2012 7:07 AM

Similar Messages

  • Ant throws the exception when builds B2B

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP4, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool, j2sdk1.4.2_07.
    Any help will be appreciated.
    Regards,
    Roman Babkin

    Hi,
    have you tried to urlencode the hash char?
    Might be interesting as well if the problem also occours when you point to a local script in your url. The script should then contain a static link to your xml file.
    cheers,
    jossif

  • Ant throws the exception when builds B2B (E-selling of CRM-ISA)

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
    Any help will be appreciated.
    Regards,
    Roman Babkin

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
    Any help will be appreciated.
    Regards,
    Roman Babkin

  • I have an ut ipad 2 with no configuration for the i cloud. I have follow the instructions of synch the ipad with itunes v 10.6 in my pc, but i can not get the display of the cloud icon in the general settings of the ipad. appreciate any help

    I have an ut ipad 2 with no configuration for the i cloud. I have follow the instructions of synch the ipad with itunes v 10.6 in my pc, but i can not get the display of the cloud icon in the general settings of the ipad. appreciate any help

    I'm asking because ios5 introduced iCloud. You have to have updated to ios5 to see it.

  • Problems with Tick Configuration on the x-axis in an XY graph

    I have set up an XY graph in LabView 2012. The plot area is 1000x750. The x range min is -15. x range max is 15. y range min is -20. y range max is 20. The x and y range increments are 1. The x and y range minor increments are 0.2. The x range start is -14.
    When I run the vi the graph comes up in the proper size. The minor grid lines for both the x and y ranges are there at every 0.2 units. The major grid lines are correct for the y scale at every 1 unit. The x scale has a major grid lines at -14 and 14, but in between the major grid lines are at -12, -10, -8, -6 ,-4, -2, 0, 2, 4, 6, 8, 10, and 12. This is incorrect. I expect to see them for every 1 unit as they are on the y scale.
    I have change the x range start to -15 keeping all other properties the same. When I do this the major grid lines on the x scale are at -13, -11, -9, -7, -5, -3, -1, 1, 3, 5, 7, 9, 11, 13. Again every 2 units.
    I have tried changing the width of the graph along with many of the other properties. Nothing has worked.
    Why is this happening? Why does the y scale set up properly but the x scale does not?
    I have attached a screenshot of the property node.
    Any help is appreciated.
    Regards-
    john
    John O'C
    Staff Test Systems Engineer
    Woodward, Inc.
    Skokie, Illinois, USA
    "Life is not a journey to the grave with the intention of arriving safely
    in a pretty and well preserved body, but rather to skid in broadside,
    thoroughly used up, totally worn out, and loudly proclaiming...
    Wow...What a Ride!"
    Attachments:
    Plot_grid_config.jpg ‏39 KB

    Two things to try:
    Use a smaller font for the X-axis.
    Change the display format.
    johnoc wrote:
    I tried expanding the width of the graph. Even to the point that it was the same width as it was tall.
    A vertical axis needs much less space for a tick than a horizontal axis, so that's expected. We really need to see a simplified version of your actual VI (delete everything except the graph and the property nodes).
    LabVIEW Champion . Do more with less code and in less time .

  • Get-ChildItem with -LiteralPath is throwing "The specified wildcard character pattern is not valid" when filenames contain brackets

    I'm trying to get a list of folders in a hierarchy that don't contain any mp3 files. (The goal here is to eventually clean up all the "empty" folders that only have album art, thumbs.db, desktop.ini, etc. files left). So I wrote a quick PowerShell
    command to try to do this. But it doesn't seem to be working.
    I already checked out this thread <Get-ChildItem
    SomeFile[].txt occurs error because of the [brackets]: "specified wildcard pattern not valid"> and I think I'm using LiteralPath correctly. Any other hints for troubleshooting this problem? Here's the command I'm using.
    Get-ChildItem -Recurse -Directory | ?{
    @( @(Get-ChildItem -LiteralPath $_.FullName -Recurse) | ?{
    $_.Extension -eq ".mp3"}).Count -eq 0 }
    This is on the latest version of PowerShell found in Windows Technical Preview.

    Fair enough, but it still doesn't answer the original question- why isn't this working with -LiteralPath when the path contains brackets? 
    Get-ChildItem -Recurse -Directory | ?{
    @( @(Get-ChildItem -LiteralPath $_.FullName -Recurse) | ?{
    $_.Extension -eq ".mp3"}).Count -eq 0 }
    Thanks,
    Ben

  • Problems with jdbc configuration  in the config.cfg file

    Hi to all,
    I need to change my oracle database ucm user from idc_orcl to idc_oracle for example but i dont know how to generate the encrypted password of the user in the config.cfg file
    if I let the configuration like below (plain text password and JdbcPassword commnetend) it works.
    But it is not an accepted solution for me, leaving the password in plain text.
    +#Database Variables+
    JdbcDriver=oracle.jdbc.OracleDriver
    JdbcConnectionString=jdbc:oracle:thin:@localhost:1521:ucm
    JdbcUser=idc_oracle
    JdbcPassword=idc_oracle
    +#JdbcPasswordEncoding=Intradoc+
    +#DatabasePreserveCase=1+
    Is there any doc or example related.
    Thanks in advance
    Soni

    Resolved using the following link
    http://www.docs.hvacpartners.com/idc/help/troubleshooting/wwhelp/wwhimpl/common/html/wwhelp.htm?context=troubleshooting&file=page_05_12.htm
    Hope it helps someone in the future!

  • Export with BiarEngine.jar works, using the API it throws an exception

    Hello,
    I'm using BiarEngine.jar to export from my CMS. it works fine.
    Now I want to use the API to get someting more handy, but I receive an exception (NoSuchFieldError) as if I had a mismatch between versions.
    I'm stuck with it, if somebody has an idea...
    Thanks a lot.
    Alain
    Here is the java code:
    IExportOptions oExportOptions = BIARFactory.getFactory().createExportOptions();
    oExportOptions.setIncludeSecurity(false);
    oExportOptions.setIncludeDependencies(true);
    oExportOptions.setCallback(
         new IExportCallback()
              public void onSuccess(int id)      {...}
              public void onFailure(int id, BIARException biarException) {...};
    BIAROutput oBIAROutput = new BIAROutput( oEntrepriseSession, "c:\myFile.biar", exportOptions );
    At this point it throws the exception:
    Exception in thread "main" java.lang.NoSuchFieldError: SI_MODELCUID_SET
         at com.businessobjects.sdk.plugin.desktop.deltastore.internal.DeltaStore.setupProperties(DeltaStore.java:188)
         at com.businessobjects.sdk.plugin.desktop.deltastore.internal.DeltaStore.unpack(DeltaStore.java:37)
         at com.crystaldecisions.sdk.occa.infostore.internal.al.continueUnpack(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.al.startUnpack(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.at.query(Unknown Source)
         at com.businessobjects.sdk.biar.internal.XSDManager$RepositoryXSD.retrieveXSDVersions(XSDManager.java:204)
         at com.businessobjects.sdk.biar.internal.XSDManager$RepositoryXSD.<init>(XSDManager.java:194)
         at com.businessobjects.sdk.biar.internal.XSDManager$XSDCache.getXSD(XSDManager.java:365)
         at com.businessobjects.sdk.biar.internal.XSDManager.<init>(XSDManager.java:55)
         at com.businessobjects.sdk.biar.BIAROutput.<init>(BIAROutput.java:73)

    >
    Just need to confirm if the ANT script can be run against individual OSB project than OSB configuration project?
    >
    It is possible. I'm going the same way here. However, I remember I needed to contact support because it was not a standard feature of the Ant task. They provided me with the patch that allowed me to use -configSubProjects parameter in export.
    >
    Can we have multiple OSB configuration projects on the OSB server ?
    >
    I don't think so.

  • GetBlobReferenceFromServerAsync (and non-async) throw an exception with 404 (not found) if the blob doesn't exist.

    I'm trying to determine if a particular file exists in a blob store. I'm using container.GetBlobReferenceFromServerAsync and if the named blob does't exist I get an exception with a 404. ICloudBlob (which is returned by the method) defines an Exists method
    but it's functionally useless because the GetBlobReferenceFromServerAsync method call itself throws the exception. I do get the behavior I'm looking for if I call container.GetBlockBlobReference instead but there's no async version of that method.

    As I said I'd found that GetBlockBlobReference works but there's no async version of that method. I'm trying to determine IF a blob exists not create one. Since the GetBlobReferenceFromServer returns an ICloudBlob and ICloudBlob defines and Exists method
    you'd assume that it could be used to determine if a blob exists. I'd argue that the fact that it throws and exception when the blob does not exist is a bug in the implementation because it makes the Exist method on the ICloudBlob object functionally useless.
    Also, it seems like a fairly significant miss that there's no async version of GetBlockBlobReference. A query to a cloud resource is exactly the perfect use case for the async/await pattern.
    Does anyone know of an async way to check for the existence of a blob that doesn't involve catching a 404 exception?

  • Throwing or handling the exception.

    Hi,
    Which is the good idea.
    *1 .* throwing the exception to the caller method.
    *2 .* handle the exception at the save place.(with the help of try/catch).
    Any pointer will be highly appreciated.
    Regards,
    Alok

    Usually #1, though sometimes you'll wrap it in an exception more appropriate for that layer.
    To handle the exception, you have to truly handle it.You have to provide a correction for whatever went wrong. That might mean retrying or using some default value or calling some other "safe" algorithm. If you can't actually fix it, you have to throw something to let the caller know what went wrong. It's then up to him to determine whether to handle it or throw it to his caller.

  • How to Throw an Exception in a SapServer

    Hello,
    We have successfully implemented SAPServer in our external process.
    The only thinks that doesn't work perfectly is that we can't throw an exception in the implementation of remote function module.
    The ABAP Program that is calling our fontion waits on expetion 0, 1, 2, 3 and 4. But when we throw the exception like this : throw new RfcException( "Error" );
    the ABAP catch this exception, but as exception 4 (others) and not as 3 (Error)
    Can someone help. Thanks

    Hello
    Thanks for the answer.
    In the while we tried the following:
    RfcAbapException( "ERROR" );
    but it doesn't work.
    The solution was to call this method with 2 parameters:
    RfcAbapException( "ERROR", "Some error text...");
    And now OK.

  • I dont want to throw an exception !!

    Hi,
              I have a stateless session bean, that in turn calls BMP entity bean. The
              transaction attribute for session bean is Required and that of entity bean
              is Supports.
              Now if some database error occurs, I want to catch that exception in the
              stateless bean, and dont want to rethrow it. How can I do it. Weblogic still
              throws the exception.
              The code of session bean looks something like this :
              try
              // Call entity bean
              catch (Exception e)
              // Dont do anything !!
              on the client program, that calls the session bean, am getting this
              exception :
              java.rmi.UnexpectedException: Unexpected exception in
              src.com.etouch.scheduler.stateless.schedulerapi.impl.SchedulerApiBean.create
              Schedule():
              javax.transaction.SystemException: Transaction not active
              at weblogic.jts.internal.TxContext.commit(TxContext.java:251)
              at
              weblogic.ejb.internal.StatelessEJBObject.postInvokeOurTx(StatelessEJBObject.
              java:88)
              at weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:758)
              at
              src.com.etouch.scheduler.stateless.schedulerapi.impl.SchedulerApiBeanEOImpl.
              createSchedule(SchedulerApiBeanEOImpl.java:62)
              at
              src.com.etouch.scheduler.stateless.schedulerapi.impl.SchedulerApiBeanEOImpl_
              WLSkel.invoke(SchedulerApiBeanEOImpl_WLSkel.java:88)
              at
              weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
              pter.java, Compiled Code)
              at
              weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
              r.java:77)
              at
              weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
              5)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              ; nested exception is:
              javax.transaction.SystemException: Transaction not active
              javax.transaction.SystemException: Transaction not active
              Exception in thread "main" Process Exit...
              What am I doing wrong here ? The idea is, I dont want the client to know
              about this error.
              Thanks
              Amit
              

    Amit,
              I believe that what is actually happening here is that the transaction is
              not actually being rolled back until the session bean method, which is
              participating in the transaction, is completing. I too am having this
              problem and currently have not found a solution short of adding an extra
              layer which is not an option. You also appear to be having another problem
              with the transaction upon which I cannot comment.
              Any help would be greatly appreciated.
              Regards
              Conrad Rowlands
              Callards Technology.
              "Amit" <[email protected]> wrote in message
              news:[email protected]...
              > Hi,
              > I have a stateless session bean, that in turn calls BMP entity bean. The
              > transaction attribute for session bean is Required and that of entity bean
              > is Supports.
              > Now if some database error occurs, I want to catch that exception in the
              > stateless bean, and dont want to rethrow it. How can I do it. Weblogic
              still
              > throws the exception.
              > The code of session bean looks something like this :
              > try
              > {
              > // Call entity bean
              > }
              > catch (Exception e)
              > {
              > // Dont do anything !!
              > }
              >
              > on the client program, that calls the session bean, am getting this
              > exception :
              >
              > java.rmi.UnexpectedException: Unexpected exception in
              >
              src.com.etouch.scheduler.stateless.schedulerapi.impl.SchedulerApiBean.create
              > Schedule():
              > javax.transaction.SystemException: Transaction not active
              > at weblogic.jts.internal.TxContext.commit(TxContext.java:251)
              > at
              >
              weblogic.ejb.internal.StatelessEJBObject.postInvokeOurTx(StatelessEJBObject.
              > java:88)
              > at weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:758)
              > at
              >
              src.com.etouch.scheduler.stateless.schedulerapi.impl.SchedulerApiBeanEOImpl.
              > createSchedule(SchedulerApiBeanEOImpl.java:62)
              > at
              >
              src.com.etouch.scheduler.stateless.schedulerapi.impl.SchedulerApiBeanEOImpl_
              > WLSkel.invoke(SchedulerApiBeanEOImpl_WLSkel.java:88)
              > at
              >
              weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
              > pter.java, Compiled Code)
              > at
              >
              weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
              > r.java:77)
              > at
              >
              weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
              > 5)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              > ; nested exception is:
              > javax.transaction.SystemException: Transaction not active
              > javax.transaction.SystemException: Transaction not active
              > Exception in thread "main" Process Exit...
              >
              >
              > What am I doing wrong here ? The idea is, I dont want the client to know
              > about this error.
              > Thanks
              >
              > Amit
              >
              >
              >
              

  • Regarding the exception

    java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    The following exception was thrown while displaying the data from XML file in Applet window. The applet window shows the exception above.
    I placed all the files (.java, .xml and .html) in same folder but still the exception continues. What can I do for?

    This has nothing to do with JSP/JSTL.
    The exception simply tells you that JVM is not allowed to read the "user.dir" system property. This is a security issue/configuration at the client side. Most probably you need to sign your applet to get it to work. Google "signed applet" for details.

  • Is it okay practice to have a constructor throw an exception?

    Or is it just plain bad practice and it's better to catch it instead.

    I don't know if there is anything wrong with the/a
    constructor throwing an exception. It is a way to
    inform the user that something "bad" occurred during
    creation of the object.
    I usually don't do it. I have my constructor call a
    method that encapsulates the code that may generate
    an error.
    public class MyExample
    public MyExample()
    try
    aMethodThatPerformsIO();
    catch(IOException ioe)
    n ioe) {ioe.printStackTrace();}
    private void aMethodThatPerformsIO() throws
    ows IOException
    //blah
    Presumably aMethodThatPerformsIO initializes the state of the MyExample being constructed, yes? That's why you call it in a ctor, yes?
    MyExample myEx = new MyExample(); // exception is thrown, stderr gets some bytes, object is not properly initialized, BUT...
    myEx.doSomethingThatAssumesValidState(); // ...this still executes (or tries to) despite the assumption about valid state being violated like godlie at a biker bar.I'd rather have the ctor throw the exception, but that's JMAO.

  • One method throw many exception

    7. Create three new types of exceptions. Write a class with a method that throws all three. In main( ), call the method but only use a single catch clause that will catch all three types of exceptions.
    Ok, I am learning java language from bruce eckel book. That is the exercise. I m having dificulties.
    How can one method throw more than one exception?
    class Satu extends Exception
       Satu() { }
    class Dua extends Exception
       Dua() { }
    class Tiga extends Exception
       Tiga() { }
    class ThisIsIt
       public void f() throws Satu, Dua, Tiga
          throw new Satu();
          throw new Dua();
          throw new Tiga();
    public class Enam
       public static void main( String[] args )
          try
          ThisIsIt a = new ThisIsIt();
          a.f();
          catch( Exception d )
          System.out.println( "Doing something here" );
    }That code won't even compile because :
    Enam.java:21: unreachable statement
    throw new Dua();
    ^
    Enam.java:22: unreachable statement
    throw new Tiga();
    Do I interpret that question wrong????

    The problem you have is that when the code comes to the first 'throw' command it will throw the exception and exit the method (like a return does) so the code after will never be reached. In order to test your code you need to put some 'if's around the throws or give it a parameter from the console. eg.class ThisIsIt
        public void f(int errorType) throws Satu, Dua, Tiga
            if (errorType ==1)
                throw new Satu();
            if (errorType ==1)
                throw new Tiga();
            if (errorType ==1)
                throw new Dua();
    }Ted.

Maybe you are looking for

  • Changing generic selection parameters for Payment advice notes

    Hi, I want to add few more generic selection parameters for Automatic Payment advice notes generation on the seletion screen(f110 - rffoavis_fpaym). Please let me know the config settings for doing this.

  • Detecting the TAB key

    With a recent release of Java, a KeyListener no longer detects the TAB key, which is now apparently considered to be a focus event, not a keyboard event. It is critical to our application, a terminal emulator, that we be able to detect TAB and SHIFT-

  • Sharing Video - BBM or Text must be addressed

    Long time user.  Very happy with the new phone and software. I would like to make a suggestion.  As a loyal BB user and fan, I get frustrated when another device can do something my BB cannot....something that makes sense and is needed (I don't care

  • Captivate 4 Recording stereo in one ear.

    I know Captivate 4 has been out for a while but my company has just upgraded to 4. When we record a simple audio (voice-over) it only records on one channel of audio in stereo (you only hear it in one ear). Is there a way to record in mono? Most peop

  • Unable to Host Video Conference but meet requirements...

    Hello, I currently have a MacBook Pro fully loaded as of less than 1 year ago (2.33GHZ Core 2 Duo, 3GB DDR2 RAM, etc. etc.). February I do believe, actually. Anyways, I more than meet the requirements to host a video conference but when I go to do so