Configuring toplink.weaving="static": Cannot apply class transformer?

All,
I have managed to successfully run TopLink Essentials build 2.0_49 in JTA mode from within the web container of Sun Java System Application Server 8.1EE by providing appropriate implementations for ServerPlatform and TransactionController as described in Wonseok Kim's blog entry at:
http://jroller.com/page/guruwons?entry=use_glassfish_java_persistence_provider
My issue now is that - as I cannot use dynamic weaving based on the agent in this environment - I would like to configure static weaving.
Using no weaving at all, my application deploys and runs fine, but when changing
<property name="toplink.weaving" value="false" /> to
<property name="toplink.weaving" value="static" />I receive the following exception and stack trace:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Cannot apply class transformer without LoadTimeWeaver specified
Caused by: java.lang.IllegalStateException: Cannot apply class transformer without LoadTimeWeaver specified
        at org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.addTransformer(SpringPersistenceUnitInfo.java:67)
        at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:208)
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:218)
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:251)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4010)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4522)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:811)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:646)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1322)
        at com.sun.enterprise.web.HttpServiceWebContainer.loadWebModule(HttpServiceWebContainer.java:880)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1038)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:246)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
        at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
        at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
        at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:639)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
        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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
        at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
        at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
        at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
        at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:264)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:178)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:178)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
        at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:234)
        at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2143) My expectation was that when toplink.weaving is set to "static",
EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:208)should not call back into PersistenceUnitInfo to add a transformer, as none is needed at runtime any more...
Is this an issue with Spring's JPA module or with TopLink Essentials?
Thanks in advance & best regards,
Andreas

Citing from a mail by Tom Ware/Oracle:
"There is likely a bug in the static weaving code that attempts to add the transformer even though it will not be used. The reason we have not discovered this issue until now is that in most situations the fact that that transformer gets added despite the fact that we are statically weaving just gets ignored and the application functions. In Spring, apparently that is not the case."
So I have just created
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3146
for this.issue.
Thanks for your help with this, Tom!
Best regards,
Andreas

Similar Messages

  • I cannot get the transform skew feature to apply

    i cannot get hte transform skew feature to apply

    After dragging the corners or the middle handles horizontally or vertically, click the green check mark then crop and save.

  • Weaving (static and dynamic)

    I'm having a lot of difficulty setting up weaving (for entities with OneToOne lazy load relationships). I have searched all day on forums here and else where but to no avail on how to get this correctly setup.
    I am using Netbeans 5.5.1 for a standalone Java SE desktop applications, with JPA and toplink for the database access. This is what I have tried so far:
    1) Dynamically weaving using the <property name="toplink.weaving" value = "true" /> in the persistence.xml file and the "-javaagent:C:\libs\toplink-essentials-agent.jar" as the VM option at runtime. When doing this, the program begins but as soon as something is done to query an entity with a OneToOne relationship, an exception is thrown because methods on the "woven" entities are not found. It appears that the entity's methods are changed in one place but not in another perhaps?
    However, I would really like to statically weave these entities since ultimately deployment will be done using Java WebStart. I have tried to create an ant script to do this in the netbeans project build.xml file. This is what I have so far:
    <target name="define.task" description="New task definition for toplink static weaving">
    <taskdef name="weave" classname="oracle.toplink.essentials.weaving.StaticWeaveAntTask"
    classpath="libs/toplink-essentials.jar"/>
    </target>
    <target name="weaving" description="perform weaving" depends="define.task">
    <weave source="C:/JavaDev/projectName/dist/projectName.jar"
    target="C:/JavaDev/projectName/dist/projectName1.jar"
    loglevel="FINER">
    <classpath>
    <pathelement path="C:/JavaDev/projectName/libs/toplink-essentials.jar"/>
    </classpath>
    </weave>
    </target>
    (I am working of an example from an Oracle page.) The problems that I am running into with this are as follows:
    1) I don't really know what I am supposed to put in the <classpath> tag.
    2) When I run this through Netbeans (right click -> Run Target) it tries to run but at the first entity that it tries to weave none of the annotations appear to be recognized because it complains about the entity not having an @Id, etc.
    I am REALLY stumped on this and have spent a lot of time. Any help in regards to setting up static weaving with a Netbeans project would be GREATLY appreciated.
    Thanks in advance!

    Thanks for your response Doug.
    I have run it with that logging option and didn't notice anything out of the ordinary. The log says that it creates a temporary class loader, overrides load class for collection members (true), the weaver processes my classes, and registers a transformer.
    When I try to load an entity that has a OneToOne relationship, I get a:
    Exception [TOPLINK-0] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.IntegrityException
    followed by a:
    Exception [TOPLINK-60] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: The method [_toplink_setpatronData_vh] or [_toplink_getpatronData_vh] is not defined in the object [edu.byui.fitnesscommon.model.FitnessPerson].
    Internal Exception: java.lang.NoSuchMethodException: edu.byui.fitnesscommon.model.FitnessPerson._toplink_getpatronData_vh()
    Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[patronData]
    Descriptor: RelationalDescriptor(edu.byui.fitnesscommon.model.FitnessPerson --> [DatabaseTable(FITNESS_PERSON)])
    Which gives a NullPointer runtime exception.
    I took out the fetch = FetchType.LAZY from the OneToOne mapping, and the program executes just fine.
    Thanks for your help on this. (Also if anyone knows anything about the static weaving, any help would be greatly appreciated.)

  • Java teststand - Error 1500 Cannot find class

    Hi everyone,
    I am using TestStand 2010 and Java 1.7.
    I try to add a java class in the Computer example folder, and call the method.
    The java class is simply like below, because I just want to try calling my own java class.
    I have set the Class Path in Start JVM to the directory where the Computer example (which is also the directory where I put my java class) are located.
    TestStand can call the Computer's methods, but not mine (got error Error 1500 Cannot find class). I put my my java method calling among the defaults Computer example calls.
    Furthermore I have read similiar threads but still I cannot solve the error.
    Where is the part I miss, actually? Please share some insights.
    Note: I even try to leave the Class Path empty, but TestStand still can call the Computer's methods. Why?
    public class TestJava {
    public static void main(String[] args) {
    public String returnString(boolean a){
    return "success";
    Solved!
    Go to Solution.

    In order to load a class that is inside a package you have to use the package notation (or modify the example in order to use it). The path to the class is passed directly to the JVM in order to load the class, but really what is needed is the package from the class path including the full path to the class. 
    That means you have to do the following:
    1. Set the class path to the base directory where you built all your classes, if you have the following structure:
    MyFile.java
    builds
    MyPackage
    MyFile.class
    You have to set the classpath to the builds directory
    2. When you configure your steps, you have to set the path to the class in your Java steps to MyPackage/MyFile.class (note separator is a slash, not the usual Windows backslash, so the browse button doesn't quite help with that). 
     Another important thing is that when you set the classpath you are deleting the normal class path in Java, if you are using Java classes from the default libraries you might have to add <jre directory>\lib\rt.jar

  • Toplink.weaving=true gives PersistenceException; for Lazy Loading config.

    I could use some help configuring my persistence.xml file, trying to make sure Lazy loading is configured properly. What I see in the logs normally is that Toplink defaults to Eager fetching on my JPA objects. So according to
    http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html
    I need to set toplink.weaving=true in persistence.xml, however I get the Exception below when I make the call to get the EntityManager for the first time.
    I'm using OC4J standalone 10.1.3.3 with JDK 1.5.0_13 and the latest Toplink (as you can see in the stack trace below). An excerpt from my persistence.xml is below that.
    Caused by: Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: xyx-dal-webservice.root:0.0.0
    Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28020] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exc
    eptions.EntityManagerSetupException
    Exception Description: Value [true] for the property [toplink.weaving] is incorrect when global instrumentation is null, value should either be null or false. at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:59)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
    at gov.dhs.visit.ident.dal.jpa.entity.cvt.util.EntityManagerHelper.<clinit>(EntityManagerHelper.java:20)
    ... 43 more
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28020] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.E
    ntityManagerSetupException
    Exception Description: Value [true] for the property [toplink.weaving] is incorrect when global instrumentation is null, value should either be null or false.
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:151)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:239)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
    ... 46 more
    Caused by: Exception [TOPLINK-28020] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Value [true] for the property [toplink.weaving] is incorrect when global instrumentation is null, value should either be null or false.
    at oracle.toplink.essentials.exceptions.EntityManagerSetupException.wrongWeavingPropertyValue(EntityManagerSetupException.java:244)
    ... 50 more
    SEVERE: Caught exception while handling request: oracle.oc4j.rmi.OracleRemoteException: java.lang.ExceptionInInitializerError; nested exception is:
    java.lang.ExceptionInInitializerError oracle.oc4j.rmi.OracleRemoteException: java.lang.ExceptionInInitializerError; nested exception is:
    java.lang.ExceptionInInitializerError
    persistence.xml
      <persistence-unit name="PUName" transaction-type="JTA">
         <provider>oracle.toplink.essentials.PersistenceProvider</provider>
              <jta-data-source>jdbc/mydb</jta-data-source>
    <class>....a whole lotta JPA classes...</class>
        <properties>
             <property name="toplink.logging.level" value="FINE" />
             <property name="toplink.logging.timestamp" value="true"/>
               <property name="toplink.target-database" value="Oracle"/>
               <property name="toplink.target-server" value="OC4J_10_1_3" />
               <property name="toplink.weaving" value="true"/>
                    <property name="toplink.cache.shared.default" value="false"/>
        </properties>
      </persistence-unit>

    This error confuses me...
    Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
    Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28020] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Value [true] for the property [toplink.weaving] is incorrect when global instrumentation is null, value should either be null or false.
         at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)I'm using TopLink from regular ol' Java SE (not container managed environment).
    http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html gives some hints, though, especially if you're operating outside of a container (seems like you gotta weave yourself). See http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html#LazyLoading
    Seems the command-line arg "-javaagent:toplink-essentials-agent.jar" is critical if you're running outside a container.

  • Cannot applied to Boolean integer?

    import javax.swing.JOptionPane; /* Import this to use the interface */
    public class aRRnum /* Class name */
       public static void main(String[] args)  /* Main name */
          int[] number = new int[5]; /* Declare array integer with size of 5 */
          for (int i = 0; i < number.length; i++) /* Use for loop to loop 5 times */
                /* Parse the number into Integer straightaway */
             number[i] = Integer.parseInt(JOptionPane.showInputDialog("Please enter the number:"));
             if ( 10 <= number[i] <= 100 ) {
                  if ( number[i] != number[i] ){
                       for ( i = 0; i < number.length; i++){
                            JOptionPane.showMessageDialog(null, " The numbers are: " + number, " Answer ", JOptionPane.PLAIN_MESSAGE);
    My error is
    <= cannot applied to boolean integer for line
    if ( 10 <= number[i] <= 100 ) {
    I just want to make it If numbers entered are within 10 and 100, and that it cannot be the same number,
    Print all the numbers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

       if ( 10 <= number[i] <= 100 ) the left part is first evaluated 10 <= number to a boolean value. This boolean can not be < then an int.
    but you can have two expressions 10 <= number[i] && number[i] <= 100
    the && means "and"
    the expression( number[i] != number[i] ) will never be true...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Date format in Apply SQL Transformation

    I'm trying to read data from an Azure SQL database to an ML Studio experiment and do a SQL transformation on it. 
    The data has a DateTime column in the following format: YYYY-MM-DDTHH:MM:SS.SSS, but as it gets passed to the Apply SQL Transformation module it somehow changes into the 12-hour format: DD/MM/YYYY HH:MM:SSAM/PM
    This means that I cannot use the strftime()-function in the SQL module. Any way to get around this?

    We're working on fixing the DateTime handling in SQL module. Meanwhile you can try the following workaround:
    1) Before using Apply SQL module, convert dates into strings with format “yyyy-mm-dd” that SQLite can parse.
    2) Use SQLite date() function to convert those strings back to dates
    The step 1) can be accomplished using Execute Python module (here “DateTime” is the name of column with dates), for example:
    import datetime as dt
    import pandas as pd
    def azureml_main(dataframe1 = None, dataframe2 = None):
        c= dataframe1['DateTime']
        cs = []
        for elem in c:
            cs.append(str(dt.date.fromtimestamp(elem)))
        return pd.DataFrame({"DateTime":cs}),
    The SQL script in step 2 would look like, for example:
    select * from t1 where date(t1."DateTime") < "2005-07-25" ;

  • Cannot process argument transformation on parameter 'Identity'.

    Hi,
    When using remote exchange powershell I get this error:
    $MB = Get-Mailbox -Database MyDataBase 
    $MB | foreach-object { $user = Get-User -identity $_ | select DisplayName }
    Cannot process argument transformation on parameter 'Identity'. Cannot convert the " " value of type "
    Deserialized.Microsoft.Exchange.Data.Directory.Management.Mailbox" to type "Microsoft.Exchange.Configuration.Tasks.User
    IdParameter".
        + CategoryInfo          : InvalidData: (:) [Get-User], ParameterBindin...mationException
        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-User
    If I run this directly on the exchange server it works fine. both powershell versions are the same.
    Regards.

    Hi,
    I have made some changes to the script, so now I get the displayname, but still getting the same error message, when trying to get user mailbox statistics
    $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
    http://exchangeserver/PowerShell/ -Authentication Kerberos -Credential (Get-Credential)
    Import-PSSession $s
    $MB = Get-Mailbox -Database MyDatabase
    $MB | foreach-object {
    $user = Get-User -identity $_ | select DisplayName
    $mailbox = get-mailboxstatistics $_ |select-object TotalItemSize, TotalDeletedItemSize
    $mbx = $_ | select Alias, PrimarySmtpAddress, DistinguishedName, UseDatabaseQuotaDefaults, IssueWarningQuota, ProhibitSendQuota
    $ADSPath = "LDAP://" + $mbx.DistinguishedName
    $ADUser = [ADSI]$ADSPath
    $Description = [String]$ADUser.Description
    $mbx | add-member -type noteProperty -name MailboxSize -value $mailbox.totalitemsize.value.ToMB()
    $mbx | add-member -type noteProperty -name DumpsterSize -value $mailbox.TotalDeletedItemSize.value.ToMB()
    $mbx | add-member -type noteProperty -name DisplayName -value $User.DisplayName
    $mbx | add-member -type noteProperty -name Description -value $Description
    $mbx | Select-object DisplayName, Alias, PrimarySmtpAddress, Description,UseDatabaseQuotaDefaults, IssueWarningQuota, ProhibitSendQuota, MailboxSize, DumpsterSize}

  • Cannot apply the signed patch 118855-36

    I cannot apply the signed patch 118855-36 because of bad signature.
    I have installed Solaris from original DVD,
    exported proper Root CA:
    # pkgadm listcert
    Enter Keystore Password:
        Keystore Alias: /C=US/O=VeriSign, Inc./OU=Class 2 Public Primary Certification Authority - G2/O
           Common Name: /C=US/O=VeriSign, Inc./OU=Class 2 Public Primary Certification Authority - G2/O
      Certificate Type: Trusted Certificate
    Issuer Common Name: /C=US/O=VeriSign, Inc./OU=Class 2 Public Primary Certification Authority - G2/O
        Validity Dates: <May 18 00:00:00 1998 GMT> - <Aug  1 23:59:59 2028 GMT>
       MD5 Fingerprint: 2D:BB:E5:25:D3:D1:65:82:3A:B7:0E:FA:E6:EB:E2:E1
      SHA1 Fingerprint: B3:EA:C4:47:76:C9:C8:1C:EA:F2:9D:95:B6:CC:A0:08:1B:67:EC:9DThe patch was downloaded via Update Manager.
    But:
    # patchadd 118855-36.jar
    Validating patches...
    Loading patches installed on the system...
    Done!
    Loading patches requested to install.
    Done!
    Checking patches that you specified for installation.
    Done!
    Approved patches will be installed in this order:
    118855-36
    Verifying signed patch <118855-36>...
    Enter keystore password:
    Verifying digital signature for signer <es-signature>
    Digital signature for signer <es-signature> verified.
    Verifying contents of signed patch </var/sadm/spool/118855-36.jar>
    ERROR: File <118855-36/prepatch> in patch </var/sadm/spool/118855-36.jar> has different digest and may have been altered (<OZwjYrSlDGqyPj8RGf9c+3K+saA=> != <Dcu2A5syfryGIoCm2J06v3pGPm8=>).
    ERROR: Signer <es-signature> recorded bad signature for file <118855-36/prepatch> in patch </var/sadm/spool/118855-36.jar>
    ERROR: Unable to verify signature for signer <es-signature>
    Signature invalid on signed patch <118855-36>.
    Patchadd is terminating.Although I have no problem with another patches.
    What is a problem with this one?
    Message was edited by:
    elisey

    Yes - I am having this problem getting this patch to stick, however it seems that my issue is with the cert.
    I get the following message:
    Verifying signed patch <118855-36>...
    Verifying digital signature for signer <es-signature>
    ERROR: Signature verification failed while verifying certificate <subject=Sun Microsystems Inc Root CA, issuer=/C=US/O=Verisign, Inc./OU=Class2 Public Primary Certification Authority - G2/O:<unable to get local issuer certificate>.
    ERROR: Unable to verify signature for signer <es-signature>
    Signature invalid on signed patch <118855-36>.
    Look familar?

  • Configuring Toplink Cache Coordination using JMS

    After having spent one whole day reading documentation on the above topic, I did not get anywhere. I am looking for a direction to start aquainting myself with Oracle JMS basics to enable me with the configuration in toplink. I hope someone could please help me in getting started, direct me to documentation and/or examples and then I could have some specific and meaningful questions to ask.
    As of now, I have these questions.
    1) In order to configure Toplink Cache Coordination using JMS, do I use Oracle AS JMS or OJMS provider?
    2) Should I be configuring OJMS before I could use Oracle AS JMS?
    3) If I am using Oracle 10.1.2 Application Server, will OJMS Database Schema be defined and the resource adapter deployed by default or is there a way I check this using Oracle Enterprise Manager Console.
    4) Should I be adding a JMS provider within the OC4J for the application I am using before I do any of the above?
    Any help will be highly appreciated.
    Thanks
    Swapna

    Ok. I found my answers
    1) In order to configure Toplink Cache Coordination using JMS, do I use Oracle AS JMS or OJMS provider?
    Either of the one can be used. Here is what I found regarding the trade off
    OJMS and OracleAS JMS are both J2EE 1.3 compliant JMS providers from Oracle. OJMS has been integrated into OracleAS 10g using the JCA adapter while at the same time leveraging Advanced Queuing in the Oracle Database for persistence and recoverability. If database recoverability guarantees, SQL queriability, transparent application failover, message transformation, propagation are required then Oracle recommends using OJMS as the JMS provider.
    OracleAS JMS is a lightweight, in-memory/file based queuing system that provides a complete J2EE 1.3 JMS implementation. It is suited for applications that do not require Oracle specific JMS extensions or the recoverability guarantees that OJMS provides.
    2) Should I be configuring OJMS before I could use Oracle AS JMS?
    No. OracleAS JMS is always provided and preconfigured, except for the topics and queues, with the OC4J installation.
    3) If I am using Oracle 10.1.2 Application Server, will OJMS Database Schema be defined and the resource adapter deployed by default or is there a way I check this using Oracle Enterprise Manager Console.
    No. The schema needs to be created by the admin and OJMS needs to be configured as the JMS Provider using this schema.
    4) Should I be adding a JMS provider within the OC4J for the application I am using before I do any of the above?
    Yes, if not using Oracle AS JMS.
    Hope that was accurate.

  • How to configure Toplink Webclient on Oracle

    i have installed toplink sample application on Oracle10g app server.
    to profile the sample app, i installed toplink webclient but when i try to invoke the toplink webclient, toplink webclient page flases and then show a blank page with HTTP 500 error.
    can any one please tell me how to configure the toplink webclient on oracle server.
    the steps that i followed to install the toplink webclient are as follows
    1) downloaded the toplink_webclient.zip file from the oracle site
    2) unzipped and ran the assembleWebClient.cmd file and got the toplinkwc.ear file
    3) installed the ear file and tried to invoke the toplink webclient by the url
    http://<appserver>:7777/toplinkwc
    please let me know if i need to do some more configuration
    Thanks
    Raghav

    Hi
    I see that TopLinkServlet refers to the "oracle.toplink.webclient.control.TopLinkServlet" class file which is not available in the application jar. could this be the issue ?
    how do i get these class files.
    when we run the ant on webclient downloaded from the oracle website, these class files are not compiled.
    here is the web.xml file of toplink webclient
    D:\OraHome\j2ee\home\applications\toplinkwc\toplinkwc\WEB-INF\web.xml
         <servlet>
              <servlet-name>Controller</servlet-name>
              <display-name>Controller</display-name>
              <servlet-class>oracle.toplink.webclient.control.Controller</servlet-class>
         </servlet>
         <servlet>
              <servlet-name>TopLinkServlet</servlet-name>
              <display-name>TopLinkServlet</display-name>
              <servlet-class>oracle.toplink.webclient.control.TopLinkServlet</servlet-class>
         </servlet>
    ****************

  • Applying Inline Transformation

    Hello,
    I have a custom XSL which generates a CSV out of XML in a specific format. If I use it in BLS and save the file on hard drive, it works fine but it never works if i apply it for a query as an Inline transformation. There is no error thrown also. The output of Inline transformation is always as if i have not applied the transformation at all. There is no input parameter required by XSL.
    If i apply it on a static XML using "xml-stylesheet" then also it works fine.
    Is there any change in XSL to make it work as an Inline Transformation?
    Regards,
    Yogendra Sharma

    Hi,
        You can not transform XML output of Query Templates to CSV by Inline Transformation.
    but you can test by this URL.
    http://<servername>/Lighthammer/Illuminator/IllumXSLTServlet?URL=<XML doc OR URL reference>&Transform=<XSLReference>
    Cheers
    Dhanabal T
    Edited by: Dhanabal Thangavel on Feb 22, 2008 7:14 AM

  • Steps to configure Toplink 11g(11.1.1.0.1) on OC4J 10.

    Please inform detailed steps to configure Toplink 11g(11.1.1.0.1) on OC4J 10.1.3.4

    Prashant,
         Hi, Also, Try one of the following 2 configuration options for eclipselink.jar on OC4J
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Option_1:_Add_an_eclipselink_shared-library_to_OC4J_-_recommended
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Option_2:_Add_a_versioned_new_EclipseLink_shared-library_module_-similarto_option_1
         The applib option is not recommended without some javax and jdbc reconfiguration and associated classloader positioning.
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Option_3:_eclipselink.jar_in_applib_-notrecommended
         You may refer to the following post for more details.
    Re: How to verify OC4J uses Oracle Toplink 10.x and not Toplink Essentials
         thank you
         /michael
    http://www.eclipselink.org

  • Cannot access class java.nio.ByteBuffer

    Hi All -
    I'm trying to compile a java sample code.
    I keep getting the error described in the subject line
    cannot access class java.nio.ByteBuffer; file java\nio\ByteBuffer.class not found
    I have un-ziped the java sdk 1.4.1 src.zip to a directory under c:\ and added the java\nio directory to the project setting and compile with jdk runtime 1.4.1 and yet get the same error....
    I've tried by redirecting to src.zip and didn't work either....
    I would appreciate your feedbacks and sorry for the lame question, consider it as a newcomer to Java world.
    thanks in advance

    You test it by running the following line....
    java java.nio.ByteBuffer
    If it says "main not found" then your problem has nothing to do with the java install nor the classpath. The code you are trying to compile is wrong.
    If it says class not found then you use this line next....
    java -version
    If this returns nothing then you are not using the Sun VM (you are using the MS one.) If it returns a version below 1.4 then your PATH statement is wrong (and you should uninstall all sun versions then reinstall.) You can fix the MS VM problem by altering the path so the java path is first.
    If it does say 1.4 then you need to uninstall and reinstall because something is messed up.

  • Configuring toplink with EJB to transactional control "CMT"

    I try to use the EJB transaction CMT but I need to configure toplink to use a transactional control of my EJB container. some body knows how can i do this? and how can I configure the toplink to get JNDI datasource?
    Best Regards

    I dont think there is anything in Toplink you need to configure for CMT. All the transactional attributes are specified in the ejb-jar.xml file and I dont think you can edit this file using the Workbench or the Sessions Editor. With CMP the Workbench gives you an option to either overwrite this file or update but there is no way to "update" for transactional attributes. You can look at the examples for CMP (under folder advanced) that shows you how to use entity beans with Toplink in a CMP environment and you can look at the ejb-jar.xml file for more information.
    Configuring Toplink to get JNDI data source is easy-thats defined in the sessions.xml. Just open the sessions.xml using the sessions editor and click on login tab and then enter in the data source information.
    I try to use the EJB transaction CMT but I need to
    configure toplink to use a transactional control of
    my EJB container. some body knows how can i do this?
    and how can I configure the toplink to get JNDI
    datasource?
    Best Regards

Maybe you are looking for

  • Unable to send files as attachments in email

    I have been trying to send a page document that I created and saved. I attached it as an attachment to an email and it comes back as below...I tried several times...any ideas or suggestions...the email will go as a test without an attachment but not

  • Datafile creation in Oracle

    Hi All, I am going to create a datafile in Oracle database by using this syntax. ALTER DATABASE CREATE DATAFILE 'c:\oracle\oradata\orabase\uwdata03.dbf' SIZE 1G AS 'UWDATA'; Does the creation of the datafile will hamper the default datafiles of oracl

  • Time remaining for a query

    Hi, I want to find the estimated time remaining for the SQL that is running, when I try to query from v$sesion_longops, it is not returning anything even though i see the session running in v$session. Why am not getting any output from v$session_long

  • WCS Utilization Reports

    Does anyone know what commands are run at the controller and/or AP level when WCS runs reports for utilization?  I'm trying to run those reports manually on a single AP.  I'd ultimately like to know how I can get similar information by using an SNMP

  • Jobs running in parallel

    Hi every body I have scheduled a job to be executed every 5 minutes. The problem is that when the job is delayed two instances of the jobs are running in parallel and I want to avoid this, only one instance of the job can be running. How can I do tha