Need help in solving complex Calc Script
Gurus
I am working on a calc script which involves complex calculations. I got struck at the following. Please help me with your ideas...
we have 4 dimensions and values for some of their members as follows.
--------------------------------------------------------Dim3.mem1->Dim4-----------------Dim4.mem1->Dim3
Dim1.mem1->Dim2.mem1-------------------------------0.6---------------------------------------100
Dim1.mem1->Dim2.mem2-------------------------------0.6---------------------------------------200
Dim1.mem1->Dim2.mem3-------------------------------0.6---------------------------------------300
Dim1.mem1->Dim2.mem4------------------------------#MI---------------------------------------400
Dim1.mem2->Dim2.mem1-------------------------------0.6---------------------------------------500
Dim1.mem2->Dim2.mem2-------------------------------0.4 --------------------------------------600
Dim1.mem2->Dim2.mem3-------------------------------0.4---------------------------------------700
Now I want to add only particular values of the second column. For example all the values whose respective value in first column are equal.
so here it is
Value1=100+200+300+500(because 0.6 is common and different from 0.4/#MI)
Value2=400(because #MI is common or different from 0.6/0.4)
Value3=600+700 (because 0.4 is common and different from 0.6/#MI)
Like this we have so many members in all the four dimensions.
Thanks in advance.
MP
Gurus
I am working on a calc script which involves complex calculations. I got struck at the following. Please help me with your ideas...
we have 3 dimensions and values for some of their members as follows.
-------------------------------------------------------------Dim3.mem1---------------------------Dim3.mem2
Dim1.mem1->Dim2.mem1-------------------------------0.6---------------------------------------100
Dim1.mem1->Dim2.mem2-------------------------------0.6---------------------------------------200
Dim1.mem1->Dim2.mem3-------------------------------0.6---------------------------------------300
Dim1.mem1->Dim2.mem4------------------------------#MI---------------------------------------400
Dim1.mem2->Dim2.mem1-------------------------------0.6---------------------------------------500
Dim1.mem2->Dim2.mem2-------------------------------0.4 --------------------------------------600
Dim1.mem2->Dim2.mem3-------------------------------0.4---------------------------------------700
Now I want to add only particular values of the second column. For example all the values whose respective value in first column are equal.
so here it is
Value1=100+200+300+500(because 0.6 is common and different from 0.4/#MI)
Value2=400(because #MI is common or different from 0.6/0.4)
Value3=600+700 (because 0.4 is common and different from 0.6/#MI)
Like this we have so many members in all the four dimensions.
Hope this one is clear..
Thanks in advance.
MP
Similar Messages
-
Need Help In Solving Writing To Queue Problem
Hi Guys,
I have two threads that are adding to the same message queue. The first one is suppose to add four integers consecutively. Meanwhile the second thread add an integer in between the four integers. Because of that my application is not working properly. I would like that when a thread is adding then the other must wait before it adds. The method that the threads call to add to the queue are all synchronized, but it is still behaving like that.
I need help in solving it.
Thanks.
Edited by: kap on Aug 9, 2010 5:22 AMkap wrote:
Please what do you mean by synchronizing on the same object? Can you explain it to me?
When you synchronize a block of Java code, you synchronize on a particular object, which is called the Monitor.
The effect is only to prevent another thread running this, or another block of code synchronized on the same object.
If you use synchronized methods, then the monitor is the object to which the method belongs (or the class if the method is static). The same synchronized method can be executed simultaneously on a different instance of the object. -
Need help in solving java.io.NotSerializableException
Hi,
Weblogic 9.2
I need help in solving the java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
I dont know why ApplicationNamingNode has to be serialized.
Full stack trace will be provided if needed.
thank youHere is the stack trace
Remote service [com.gfs.corp.component.price.customerbid.PCBMaint] threw exception
weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
at com.gfs.corp.component.price.maint.customerbid.ejb.PCBMaint_q9igfc_EOImpl_922_WLStub.createBid(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:585)
at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:107)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:75)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy47.createBid(Unknown Source)
at com.gfs.corp.bid.price.controller.DefaultBidPriceUpdater.awardBid(DefaultBidPriceUpdater.java:83)
at com.gfs.corp.bid.price.ejb.AwardQueueMessageHandler.onMessage(AwardQueueMessageHandler.java:98)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:441)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.transaction.internal.PropagationContext.readRollbackReason(PropagationContext.java:804)
at weblogic.transaction.internal.PropagationContext.readExternal(PropagationContext.java:376)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.rmi.provider.BasicServiceContext.readExternal(BasicServiceContext.java:56)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
at weblogic.rjvm.MsgAbbrevInputStream.readExtendedContexts(MsgAbbrevInputStream.java:224)
at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:188)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:435)
... 7 more
Caused by: java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.jndi.internal.WLContextImpl.writeExternal(WLContextImpl.java:453)
at weblogic.jndi.internal.WLEventContextImpl.writeExternal(WLEventContextImpl.java:422)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.transaction.internal.PropagationContext.convertRollbackReasonToBytes(PropagationContext.java:735)
at weblogic.transaction.internal.PropagationContext.writeRollbackReason(PropagationContext.java:819)
at weblogic.transaction.internal.PropagationContext.writeExternal(PropagationContext.java:183)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rmi.provider.BasicServiceContext.writeExternal(BasicServiceContext.java:48)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
at weblogic.rjvm.MsgAbbrevOutputStream.marshalCustomCallData(MsgAbbrevOutputStream.java:319)
at weblogic.rjvm.MsgAbbrevOutputStream.transferThreadLocalContext(MsgAbbrevOutputStream.java:149)
at weblogic.rmi.internal.BasicServerRef.postInvoke(BasicServerRef.java:606)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:455)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:58)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:975)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
2007-10-18 08:38:04,931 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean - Could not invoke 'remove' on remote EJB proxy
weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
at com.gfs.corp.component.price.maint.customerbid.ejb.PCBMaint_q9igfc_EOImpl_922_WLStub.remove(Unknown Source)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.removeSessionBeanInstance(AbstractRemoteSlsbInvokerInterceptor.java:227)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.releaseSessionBeanInstance(SimpleRemoteSlsbInvokerInterceptor.java:118)
at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:95)
at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy47.createBid(Unknown Source)
at com.gfs.corp.bid.price.controller.DefaultBidPriceUpdater.awardBid(DefaultBidPriceUpdater.java:83)
at com.gfs.corp.bid.price.ejb.AwardQueueMessageHandler.onMessage(AwardQueueMessageHandler.java:98)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:441)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.transaction.internal.PropagationContext.readRollbackReason(PropagationContext.java:804)
at weblogic.transaction.internal.PropagationContext.readExternal(PropagationContext.java:376)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.rmi.provider.BasicServiceContext.readExternal(BasicServiceContext.java:56)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
at weblogic.rjvm.MsgAbbrevInputStream.readExtendedContexts(MsgAbbrevInputStream.java:224)
at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:188)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:435)
... 7 more
Caused by: java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.jndi.internal.WLContextImpl.writeExternal(WLContextImpl.java:453)
at weblogic.jndi.internal.WLEventContextImpl.writeExternal(WLEventContextImpl.java:422)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.transaction.internal.PropagationContext.convertRollbackReasonToBytes(PropagationContext.java:735)
at weblogic.transaction.internal.PropagationContext.writeRollbackReason(PropagationContext.java:819)
at weblogic.transaction.internal.PropagationContext.writeExternal(PropagationContext.java:183)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rmi.provider.BasicServiceContext.writeExternal(BasicServiceContext.java:48)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
at weblogic.rjvm.MsgAbbrevOutputStream.marshalCustomCallData(MsgAbbrevOutputStream.java:319)
at weblogic.rjvm.MsgAbbrevOutputStream.transferThreadLocalContext(MsgAbbrevOutputStream.java:149)
at weblogic.rmi.internal.ReplyOnError.run(ReplyOnError.java:54)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
2007-10-18 08:38:05,244 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean - Could not connect to remote EJB [com.gfs.corp.component.price.customerbid.PCBMaint] - retrying
org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [com.gfs.corp.component.price.customerbid.PCBMaint]; nested exception is weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
thank you -
Need Help In Solving Positioning Problem
Hi Guys,
I have a 3 X 3 grid of JLabels of images. I constructed the grid using the grid layout.
I would like to move a round object which represents a car and place that object in a particular cell. So the grid will be like a background.
My questions are these:
1) How can i position this object in a specific cell based on the rows and column values? for instance if i want to put the object in [1][0].
2) How do i move this object to a different cell using the rows and column values. for instance if i want to move the object in [1][0] to [2][1]
Thank you all for your helpThis question has nothing to do with Java 2D. I've removed the second thread you started in that forum.
Thank you for providing a link to this thread in the cross post.
db
kap wrote:
Hi Guys,
I have posted a question in the Java Programming forum. This is the link :
[positioning object|http://forums.sun.com/thread.jspa?threadID=5447680&tstart=0]
I added the link to avoid double posts
I am asking if someone can help me out because i need an urgent help. Some people have giving some ideas but i don't understand what they mean.
Need help in solving it.
Thanks.
Edited by: kap on Aug 14, 2010 6:59 PM -
Need help in writing a vbs script
I am very new to scripting and need help in scripting the following:
When the Windows 7 machine boots up or a user logs on (easy to do with GPO), I want to execute a script that starts some services
ONLY if the length of the computer name is less than or equal to 15 else it should exit. It has to be done in the background without any user interaction.
The script should be able to work for both x86 and x64 version of Win7.
Any help would be greatly appreciated.
Thanks in advance.
JD
JDHi,
I highly recommend that you skip VBScript and learn PowerShell instead. This is pretty trivial in PowerShell:
If ($env:COMPUTERNAME.Length -le 15) {
# Do stuff
# HINT: Look into Start-Service
Write-Host "Under limit: $env:COMPUTERNAME"
} Else {
# Do optional stuff
Write-Host "Over limit: $env:COMPUTERNAME"
(OT: jrv - happy? =])
If you must stick with VBScript for some odd reason, here's an example to get you started:
Set wshNetwork = WScript.CreateObject( "WScript.Network" )
strComputerName = wshNetwork.ComputerName
If Len(strComputerName) <= 15 Then
'Do stuff here when the name is short enough
WScript.Echo "Under limit: " & strComputerName
Else
'Do stuff here when the name is too long (only if you want to)
WScript.Echo "Over limit: " & strComputerName
End If
http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/services/
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing) -
I need help to modify my AS script
I have the following script and I would like to modify it:
1.On this file I need to type the name of some video Albums in order to be displayed in the SWF file.
2. What I wanr is that this file read the specific folder and read the directories which they will be the names of the Albums
How can I do this?
One more thing is that this file was created to work with Flas CS3 and I am trying to test it with CS5.
I really appreciate the whole help I can get.
I don't know anything about AS2 nor AS3, I only know hoe to modify the files by following comments and other samples from all around the web.
Thanks and I hope someone can help me, I've been trying few thing but I just stuck. So I really need help.
// Set the path to the External Parameters file relative to the *.swf file.
// If this file cannot be found or if it contains errors, the
// Internal Parameters(the parameters below) will be used.
//var ParametersFile = "MyControls.xml";
var ParametersFile = "XML_Files/MyControls.xml";
// Set the path to the Theme file relative to the *.swf file.
// If this file cannot be found or if it contains errors, the
// Default Grey skin will be used instead.
// To learn how to edit Themes, please refer to the 'Help' folder.
// next line commented by SAMY
//var ThemeFile = "Theme.xml";
// NEXT LINE ADDED BY SAMY
var ThemeFile = "FLASH_DIR/3D_GALLERY/BlueTheme.xml";
// To learn more about how to add albums, please refer to the
// 'Help' folder. This line says that replace and modify the name of the title album and the xml file which is as shown here
var AlbumLabel_1 = "Pastor Alejandro Bullon";//<-- This is the typical line that I want to be input from the external folder name *
//var AlbumDataFile_1 = "Videos/Alejandro_B/Alejandro_Bullon.xml";
// next line for website configuration typical
//var AlbumDataFile_1 = "Media/Media.xml";
//next line works fine locally
//var AlbumDataFile_1 = "Videos/Videos_website.xml";
var AlbumDataFile_1 = "FLASH_DIR/3D_GALLERY/Videos/Alejandro_B/Alejandro_B.xml";
var AlbumLabel_2 = "Pastor Stephen Bohr";// <-- *
// next line commented by samy
var AlbumDataFile_2 = "FLASH_DIR/3D_GALLERY/Videos/Stephen_B/Stephen_Bohr.xml";
// next line added by samy for website configuration typical for all albums
//var AlbumDataFile_2 = "Videos/Videos.xml";
var AlbumLabel_3 = "Pastor Caleb Jara";
var AlbumDataFile_3 = "FLASH_DIR/3D_GALLERY/Videos/Caleb_Jara/Caleb_Jara.xml";
//var AlbumDataFile_3 = "City/City.xml";
var AlbumLabel_4 = "Pastor Doug_Batchellor";
var AlbumDataFile_4 = "FLASH_DIR/3D_GALLERY/Videos/Doug_B/Doug_Batchellor.xml";
//var AlbumDataFile_4 = "FLASH_DIR/3D_GALLERY/City/City.xml";
var AlbumLabel_5 = "Musica";
var AlbumDataFile_5 = "FLASH_DIR/3D_GALLERY/Musica/Musica.xml";
//var AlbumDataFile_5 = "Landscape/Landscape.xml";
var AlbumLabel_6 = "Powerpoint";
var AlbumDataFile_6 = "FLASH_DIR/3D_GALLERY/Powerpoint/Powerpoint.xml";
var AlbumLabel_7 = "Escuela Sabatica '10";
var AlbumDataFile_7 = "FLASH_DIR/3D_GALLERY/Escuela_Sab/Esc_Sab_2010.xml";
var AlbumLabel_8 = "Escuela Sabatica '11";
var AlbumDataFile_8 = "FLASH_DIR/3D_GALLERY/Escuela_Sab/Esc_Sab_2011.xml";
var AlbumLabel_9 = "Test Nature";
var AlbumDataFile_9 = "Nature/Nature.xml";
// Select wether to enable or disable error messages created
// due to 'file not found' , 'format not supported' or 'corrupted
// XML files' type of errors.
// Note: There error messages are automatically disabled when you
// export your *.swf file.
var EnableErrorMessages = "yes";//[Yes , No]
// Set parameters for items.
var ItemWidth = 170;
var ItemHeight= 130;
var ShowItemNumber = "yes";
//var ShowItemNumber = "no";
// Select fitting technique , stretch the thumb picture to fit the item
// or crop it from the top left.
var ThumbFittingMethod = "stretch";
// Select what to do when the file preview is clicked, either to enlarge
// the preview or navigate to the URL provided for the current item in
// the XML data file of the current album
var WhenPreviewIsClicked = "Enlarge";//[Enlarge , GetUrl]
// Select the window target, '_blank' to open a new window or '_self' to
// navigate to the URL in the same window
var WindowTarget = "_blank";
// Select wether to show the information of the item or not
var ShowItemInfo = "yes";
// Select wether to show the albums menu or not
var ShowAlbumsMenu = "yes";
// Select wether to show the video controller or not
var ShowVideoController = "yes";
// Select wether to show the autoplay option or not
//var ShowAutoplayButton="no";
var ShowAutoplayButton="yes";
// Set the delay time for autoplay, this will be used for pictures only
var AutoplayDelayTime = 5;
// Set the spinning speed of a single wheel
//var WheelSpinningSpeed = 5;
var WheelSpinningSpeed = 2;
// Select direction of scrolling of pages
var DefaultDirection = "LeftToRight";
// Select wether you want to disable one of the wheels
var DisableWheel = "none";
// Set the maximum number of items to be loaded on a single wheel
var MaximumLoadOnEachWheel = 10;
// Select how you want the wheel to interact with the mouse
// Refer to the 'Help' folder for more information.
var ScrollingStyle = "2";
// Select wether to enable tool tips or not.
var EnableToolTips = "yes";
// Set the delay time for the tool tips to appear
var ToolTipsDelayTime = 1;
// This is like a shortcut, set this parameter to 'Name' to display
// the name of the item as a tool tip.......
var ToolTipsContent = "tooltips";//[ToolTips , Name , FileType]
// Select wether to enable or disable visual effects.
var EnableDepthOfField = "yes";
var EnableMotionBlur = "yes";
Message was edited by: samy4moviesThis is a web-based app. And the application is for a carrousel video gallery.
I already figure out the auto XML generator with php, but I think I want to get all in one process. Meaning that I only want to upload my videos and run php codes by themselves and not to worry in adding or modifying the *.fla file everytime that I insert a new folder ("Album").
This is the link for the project I am working
http://anaheimspanish.net/index.php?option=com_content&view=article&id=98&Itemid=124
It's called 3D Video Gallery, I bought the component through a website for flash components, but their support is not very good, that's why I want to fix as much as I need.
Thanks in advance for your help
If you need a full zip project to test it, let me know. -
I NEED HELP TO SOLVE MY SANDY BRIDGE CHIPSET ISSUE !!!
Hi,
I need help from somebody to receive the updated part for my Pavilion Dv7 4290us !!!.
This is one of the machines affected by the Sandy Bridge issue, I checked many times...
I already registered the Laptop
Thanks in advance
Manuel Ramirez
This question was solved.
View Solution.The product number of your laptop is XZ037UA#ABA (Here ABA means this particular model was sold in US only) . Where was this laptop purchased exactly and Where are you currently located?
HP provides a global warranty and ideally this should be covered at no additional cost. You can find more info at below link
http://h10025.www1.hp.com/ewfrf/wc/document?docname=bpr01266&cc=us&dlc=en&lc=en&jumpid=reg_R1002_USE...
//Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
I am an HP employee!! -
Need help in writinf a stop script for a production server
can somebody help me with a stop script which stops a jrun
production server.
jrun -stop production
this command should work but how do i use this in a script .
ThanksHi,
I highly recommend that you skip VBScript and learn PowerShell instead. This is pretty trivial in PowerShell:
If ($env:COMPUTERNAME.Length -le 15) {
# Do stuff
# HINT: Look into Start-Service
Write-Host "Under limit: $env:COMPUTERNAME"
} Else {
# Do optional stuff
Write-Host "Over limit: $env:COMPUTERNAME"
(OT: jrv - happy? =])
If you must stick with VBScript for some odd reason, here's an example to get you started:
Set wshNetwork = WScript.CreateObject( "WScript.Network" )
strComputerName = wshNetwork.ComputerName
If Len(strComputerName) <= 15 Then
'Do stuff here when the name is short enough
WScript.Echo "Under limit: " & strComputerName
Else
'Do stuff here when the name is too long (only if you want to)
WScript.Echo "Over limit: " & strComputerName
End If
http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/services/
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing) -
Need help to redesign legacy SQL Script
Hello Experts,
I have the below code which produces a CREATE TRIGGER statement. as of now this does for updating. I need to re-design this code to add for inserting and deleting as well. I just need help in the structuring wise. I can build the logic for inserting and updating inside. I want to know how i can continue to get for "inserting" and "deleting" as well.
you will understand my question better if you go through main code, present output and required output format below.
I know this is a bad design first of all. but the below code is a legacy one. so i cant change the entire structure of the code :-( all i can do is to continue designing it to add new changes. Hence sought help from you all.
please help
SQL CODE:
WITH audit_tables
AS
(SELECT object_name,
MIN (column_id) min_col,
MAX (column_id) max_col
FROM user_objects o,
user_tab_columns c
WHERE o.object_name = 'CHR_VAL_DESC_A_T'
AND o.object_name = c.table_name
GROUP BY object_name
SELECT txt
FROM (
SELECT ' CREATE OR REPLACE TRIGGER ' || REPLACE(object_name,'_A_T') || '_ADT_TRG' || CHR(13) ||
' AFTER INSERT ' || CHR(13) ||
' OR UPDATE ' || CHR(13) ||
' OR DELETE ' || CHR(13) ||
' ON ' || REPLACE(object_name,'_A_T','_T') || CHR(13) ||
' FOR EACH ROW ' || CHR(13) ||
' DECLARE ' || CHR(13) ||
' BEGIN ' || CHR(13) ||
' IF updating THEN ' || CHR(13) ||
' INSERT INTO ' || object_name || CHR(13) ||
' (' txt, object_name, 1 disp_order, 0 column_id
FROM audit_tables
UNION ALL
SELECT txt, object_name, disp_order, column_id
FROM (SELECT
CASE
WHEN max_col = column_id THEN
' '||column_name
ELSE
' '||column_name || ','
END AS txt, object_name, 2 disp_order, column_id
FROM audit_tables t,
user_tab_columns C
WHERE c.table_name = t.object_name
ORDER BY c.column_id ASC)
UNION ALL
SELECT ' )' || CHR(13) ||
' VALUES ' || CHR(13) ||
' (', object_name, 3 disp_order, 0
FROM audit_tables t
UNION ALL
SELECT txt, object_name, disp_order, column_id
FROM (SELECT
CASE
WHEN max_col = column_id THEN
CASE
WHEN SUBSTR(column_name,1,2) = 'N_' THEN
' :NEW.'||decode(substr(column_name,1,2),'N_',substr(column_name,3))||');'
WHEN SUBSTR(column_name,1,2) = 'O_' THEN
' :OLD.'||decode(substr(column_name,1,2),'O_',substr(column_name,3))||');'
WHEN min_col = column_id THEN
' 1'
WHEN column_id = 2 THEN
' ''I'''
WHEN column_id = 3 THEN
' SYSDATE'
ELSE
' :NEW.'||column_name||');'
END
ELSE
CASE
WHEN SUBSTR(column_name,1,2) = 'N_' THEN
' :NEW.'||decode(substr(column_name,1,2),'N_',substr(column_name,3))||','
WHEN SUBSTR(column_name,1,2) = 'O_' THEN
' :OLD.'||decode(substr(column_name,1,2),'O_',substr(column_name,3))||','
WHEN min_col = column_id THEN
' 1'||','
WHEN column_id = 2 THEN
' ''I'''||','
WHEN column_id = 3 THEN
' SYSDATE' ||','
ELSE
' :NEW.'||column_name||','
END
END AS txt,object_name, 4 disp_order, column_id
FROM audit_tables t,
user_tab_columns c
WHERE c.table_name = t.object_name
ORDER BY c.column_id ASC)
UNION ALL
SELECT 'END '||REPLACE(object_name,'_A_T') || '_ADT_TRG;' || CHR(13),
object_name, 5 disp_order, 0
FROM audit_tables)
ORDER BY object_name, disp_order, column_id
PRESENT OUTPUT:
CREATE OR REPLACE TRIGGER CHR_VAL_DESC_ADT_TRG
AFTER INSERT
OR UPDATE
OR DELETE
ON CHR_VAL_DESC_T
FOR EACH ROW
DECLARE
BEGIN
IF updating THEN
INSERT INTO CHR_VAL_DESC_A_T
TXN_ID,
TXN_TYP,
ADT_DTTM,
CHR_VAL_DESC_ID,
CHR_VAL_ID,
LANG_ID,
DESC_ID,
O_CHR_VAL_DESC,
N_CHR_VAL_DESC,
O_TRANS_STATE,
N_TRANS_STATE,
CRTD_BY,
CRTD_DTTM,
O_UPD_BY,
N_UPD_BY,
O_UPD_DTTM,
N_UPD_DTTM,
O_LOCK_NUM,
N_LOCK_NUM
VALUES
1,
'I',
SYSDATE,
:NEW.CHR_VAL_DESC_ID,
:NEW.CHR_VAL_ID,
:NEW.LANG_ID,
:NEW.DESC_ID,
:OLD.CHR_VAL_DESC,
:NEW.CHR_VAL_DESC,
:OLD.TRANS_STATE,
:NEW.TRANS_STATE,
:NEW.CRTD_BY,
:NEW.CRTD_DTTM,
:OLD.UPD_BY,
:NEW.UPD_BY,
:OLD.UPD_DTTM,
:NEW.UPD_DTTM,
:OLD.LOCK_NUM,
:NEW.LOCK_NUM);
END CHR_VAL_DESC_ADT_TRG;
REQUIRED OUTPUT FORMAT:
CREATE OR REPLACE TRIGGER TRIGGER_NAME
AFTER INSERT
OR UPDATE
OR DELETE
ON TABLE_NAME
FOR EACH ROW
DECLARE
BEGIN
IF updating THEN
INSERT TABLE_NAME
list of column names
VALUES
IF inserting THEN
INSERT TABLE_NAME
list of column names
VALUES
IF deleting THEN
INSERT TABLE_NAME
list of column names
VALUES
END TRIGGER_NAME;can anyone please help?
i tried adding with inserting and updating also..but when i tried to add deleting part the final output not comes in proper structure.
WITH audit_tables
AS
(SELECT object_name,
MIN (column_id) min_col,
MAX (column_id) max_col
FROM user_objects o,
user_tab_columns c
WHERE o.object_name IN ('CHR_VAL_DESC_A_T', 'CHR_VAL_A_T')
AND o.object_name = c.table_name
GROUP BY object_name
SELECT txt
FROM (
SELECT ' CREATE OR REPLACE TRIGGER ' || REPLACE(object_name,'_A_T') || '_ADT_TRG' || CHR(13) ||
' AFTER INSERT ' || CHR(13) ||
' OR UPDATE ' || CHR(13) ||
' OR DELETE ' || CHR(13) ||
' ON ' || REPLACE(object_name,'_A_T','_T') || CHR(13) ||
' FOR EACH ROW ' || CHR(13) ||
' DECLARE ' || CHR(13) ||
' BEGIN ' || CHR(13) ||
*' IF inserting THEN '* || CHR(13) ||
' INSERT INTO ' || object_name || CHR(13) ||
' (' txt, object_name, 1 disp_order, 0 column_id
FROM audit_tables
UNION ALL
SELECT txt, object_name, disp_order, column_id
FROM (SELECT
CASE
WHEN max_col = column_id THEN
' '||column_name
ELSE
' '||column_name || ','
END AS txt, object_name, 2 disp_order, column_id
FROM audit_tables t,
user_tab_columns C
WHERE c.table_name = t.object_name
ORDER BY c.column_id ASC)
UNION ALL
SELECT ' )' || CHR(13) ||
' VALUES ' || CHR(13) ||
' (', object_name, 3 disp_order, 0
FROM audit_tables t
UNION ALL
SELECT txt, object_name, disp_order, column_id
FROM (SELECT
CASE
WHEN max_col = column_id THEN
CASE
WHEN SUBSTR(column_name,1,2) = 'N_' THEN
' :NEW.'||decode(substr(column_name,1,2),'N_',substr(column_name,3))||');'
WHEN SUBSTR(column_name,1,2) = 'O_' THEN
' NULL'||');'
WHEN min_col = column_id THEN
' 1'
WHEN column_id = 2 THEN
' ''I'''
WHEN column_id = 3 THEN
' SYSDATE'
ELSE
' :NEW.'||column_name||');'
END
ELSE
CASE
WHEN SUBSTR(column_name,1,2) = 'N_' THEN
' :NEW.'||decode(substr(column_name,1,2),'N_',substr(column_name,3))||','
WHEN SUBSTR(column_name,1,2) = 'O_' THEN
' NULL'||','
WHEN min_col = column_id THEN
' 1'||','
WHEN column_id = 2 THEN
' ''I'''||','
WHEN column_id = 3 THEN
' SYSDATE' ||','
ELSE
' :NEW.'||column_name||','
END
END AS txt,object_name, 4 disp_order, column_id
FROM audit_tables t,
user_tab_columns c
WHERE c.table_name = t.object_name
ORDER BY c.column_id ASC)
UNION ALL
SELECT txt, object_name, disp_order, column_id
FROM(SELECT *' ELSIF updating THEN '* || CHR(13) ||
' INSERT INTO ' || object_name || CHR(13) ||
' (' txt, object_name, 5 disp_order, 0 column_id
FROM audit_tables
UNION ALL
SELECT txt, object_name, disp_order, column_id
FROM (SELECT
CASE
WHEN max_col = column_id THEN
' '||column_name
ELSE
' '||column_name || ','
END AS txt, object_name, 6 disp_order, column_id
FROM audit_tables t,
user_tab_columns C
WHERE c.table_name = t.object_name
ORDER BY c.column_id ASC)
UNION ALL
SELECT ' )' || CHR(13) ||
' VALUES ' || CHR(13) ||
' (', object_name, 7 disp_order, 0
FROM audit_tables t
UNION ALL
SELECT txt, object_name, disp_order, column_id
FROM (SELECT
CASE
WHEN max_col = column_id THEN
CASE
WHEN SUBSTR(column_name,1,2) = 'N_' THEN
' :NEW.'||decode(substr(column_name,1,2),'N_',substr(column_name,3))||');'
WHEN SUBSTR(column_name,1,2) = 'O_' THEN
' :OLD.'||decode(substr(column_name,1,2),'O_',substr(column_name,3))||');'
WHEN min_col = column_id THEN
' 1'
WHEN column_id = 2 THEN
' ''U'''
WHEN column_id = 3 THEN
' SYSDATE'
ELSE
' :NEW.'||column_name||');'
END
ELSE
CASE
WHEN SUBSTR(column_name,1,2) = 'N_' THEN
' :NEW.'||decode(substr(column_name,1,2),'N_',substr(column_name,3))||','
WHEN SUBSTR(column_name,1,2) = 'O_' THEN
' :OLD.'||decode(substr(column_name,1,2),'O_',substr(column_name,3))||','
WHEN min_col = column_id THEN
' 1'||','
WHEN column_id = 2 THEN
' ''U'''||','
WHEN column_id = 3 THEN
' SYSDATE' ||','
ELSE
' :NEW.'||column_name||','
END
END AS txt,object_name, 8 disp_order, column_id
FROM audit_tables t,
user_tab_columns c
WHERE c.table_name = t.object_name
ORDER BY c.column_id ASC)
UNION ALL
SELECT 'END IF;' || CHR(13) ||
'END '||REPLACE(object_name,'_A_T') || '_ADT_TRG;' || CHR(13),
object_name, 9 disp_order, 0
FROM audit_tables)
ORDER BY object_name, disp_order, column_id) -
Dear All,
I'm learning to use iCal v.5.0.3 on a Mac Pro (2,1) 2x3 Ghz Quad-Core Intel Xeon, running Lion OSX10.7.5.
I need to find or write a script which, when I create a new iCal timed event, will automatically send me an email and give a screen alert 24 hours before - plus on the morning of the appointment, plus 2 hours beforehand. I'm wondering if such a script exists already or can be adapted. I've searched various forums and am unable to find specific simple instructions on how to create such a thing in Applescript or Automator or whatever. So I've really tried to find out on my own.
Can anyone direct me to a set of instructions? This can't be so hard, can it? To clarify, when I create an "event" with a time (an appointment), I want to hit a button which tells iCal to send me these reminders without my having to set multiple reminders in iCal for each of my new "events".
I'd be most grateful for any advice at all.
Many thanks for taking the trouble to read this. Hope you can set me on the right course. I have no knowledge of Applescript or Automator, but am ready to learn. I am very stupid, so instruction has to be in language comprehensible by a small hamster.
Best wishes,
Harry.Doing a shell script to burn a DVD from a folder (for example) is pretty challenging. The reason is that you need to execute the entire script in one shot, because making a burned disk is a 3 part affair with each part of the operation taking time. The problem with executing separate commands is that Applescript can't wait around until a shell command is finished, while a shell script will not proceed to the next command until the previous command is completed.
Burning disk takes these 3 parts:
1) Create an empty diskimage of your desired size
2) Mount the empty and copy your stuff to it
3) Burn and eject
There may be a shortcut by burning an existing folder but you don't say exactly what you're doing. See the hdutil command for more information:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/hdiutil. 1.html -
Need Help in creating Unix Shell Script for database
Would be appreciable if some one can help in creating unix shell script for the Oracle DB 10,11g.
Here is the condition which i want to implement.
1. Create shell script to create the database with 10GB TB SPACE and 3 groups of redo log file(Each 300MB).
2. Increase size of redolog file.
3. Load sample schema.
4. dump the schema.
5. Create empty db (Script should check if db already exists and drop it in this case).
6. Create backup using rman.
7. restore backup which you have backed up.This isn't much of a "code-sharing" site but a "knowledge-sharing" site. Code posted me may be from a questioner who has a problem / issue / error with his code. But we don't generally see people writing entire scripts as responses to such questions as yours. There may be other sites where you can get coding done "for free".
What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
But the expectation here is for you to write your own code.
Hemant K Chitale -
i am getting error as Redo sequence 9165 no longer available in online logs for thread 1 without ... without archiving enabled, SQL <SELECT MAX(sequence#) FROM v$log WHERE thread# = :ora_thread AND status ... 'CURRENT', 'ACTIVE')>, error retrieving redo file name for sequence 16, archived = 1, use_alternate = 0Not
actually it was capturing till a date, but after that extraction has stopped and i see this error,
please can anyone help in solving this issuewill you please elaborate your query? not able to understand.
-
Need help with TB Average Calc
Im trying to calculate a ratio (MER) which is budget->revenue / budget->benefits and use that ratio to derive an estimate for forecasted revenue called Sneak Peak revenue. The calculation works at level zero and across the time dim and across the cost center dim, but at upper level members of other dims it totals the ratio instead of using the average and calcs incorrectly. I cant figure a method to prevent this. I have a 6 dim outline vs 6.5.4 as follows:<BR><BR>Year (D) Dymanic Calc<BR>Accounts (S) Dymanic Calc<BR>Market (D) Dymanic Calc<BR>Region (S)<BR>Scenario (S)<BR>Cost Center (S)<BR><BR>Here is the calc:<BR><BR>/* calculate MER from Plan 2005 */<BR><BR>FIX ("SNEAK PEAK", Apr<img src="i/expressions/face-icon-small-happy.gif" border="0">ec, @RELATIVE ("MARKET",0), @RELATIVE (REGION,0), @RELATIVE ("COST CENTER",0))<BR> MER = "BENEFITS"->"PLAN 2005" / "REVENUE"->"PLAN 2005";<BR>ENDFIX;<BR><BR>/* calculate revenue in sneak peak */<BR><BR>FIX ("SNEAK PEAK", Apr<img src="i/expressions/face-icon-small-happy.gif" border="0">ec, @RELATIVE ("MARKET",0), @RELATIVE (REGION,0), @RELATIVE ("COST CENTER",0))<BR> REVENUE = "BENEFITS"->FCST / MER->"SNEAK PEAK";<BR>ENDFIX;<BR><BR>The member MER is in the Accounts dim and is set as Time Balance Average and Two Pass.<BR><BR><BR>
What I ended up doing is taking the MER ratio calc out of the calc script and making it a mbr fmla with two-pass, dynmaic calc. Two-pass on the Market dim didn't work, but this does. Now my only remianing questions is this. While the ratio portion of the calc works correctly at upr lvl mbrs, that is, it is the average ratio, the dollar amt being calc'd is the sum of the children, which makes sense. Unless what I want is to use the average ratio in the calc, say Q1's ratio / by benefits = x. What I have now shows the average ratio, say 75%, but the sum of the children for the same data intersection. It just looks weird and I'm wondering if I can get Essbase to use the average ratio to calc the dollar instead of adding up the children. Make sense?<BR><BR>I have this:<BR><BR>FIX ("SNEAK PEAK", Apr : Dec, @IDESC ("MARKET",0), @IDESC (REGION,0), @IDESC ("COST CENTER",0)) <BR>REVENUE = "BENEFITS"->FCST / MER->"SNEAK PEAK"; <BR>ENDFIX; <BR><BR>But I also want this calc to use "BENEFITS"->FCST at the upr lvl mbrs / TB Average for MER->"SNEAK PEAK"; <BR><BR>It is not a big deal, just trying to see if there is a way to simply do this. THANKS!<BR><BR>
-
Need help to solve update querry for multiple records.
Could any of you please provide update querry for the following scenario.
Requiremnt:
1. Update the UNIQUE_ID of record ( same Identifier and Identifier_code
where END_Date is not null) with the UNIQUE_ID of the record (( same Identifier and Identifier_code
where END_Date is null).
2. If More than one NULL in END_date then update UNIQUE_ID with max(EFFective_Date) of UNIQUE_ID
Source data
UNIQUE_ID
Identifier
Identifier_code
EFFective_Date
END_Date
1
777
abc
2/14/2014 11:15
2/28/2014 9:00
1
777
abc
2/21/2014 9:00
3/7/2014 9:02
2
777
abc
2/28/2014 9:00
3/14/2014 9:02
2
777
abc
3/7/2014 9:02
3/14/2014 9:02
2
777
abc
3/14/2014 9:02
NULL
5
888
xyz
2/14/2014 11:15
2/28/2014 9:00
5
888
xyz
2/21/2014 9:00
3/7/2014 9:02
5
888
xyz
2/28/2014 9:00
3/14/2014 9:02
6
888
xyz
3/7/2014 9:02
NULL
7
888
xyz
3/14/2014 9:02
NULL
OutPUT .
UNIQUE_ID
Identifier
Identifier_code
EFFective_Date
END_Date
2
777
abc
2/14/2014 11:15
2/28/2014 9:00
2
777
abc
2/21/2014 9:00
3/7/2014 9:02
2
777
abc
2/28/2014 9:00
3/14/2014 9:02
2
777
abc
3/7/2014 9:02
3/14/2014 9:02
2
777
abc
3/14/2014 9:02
NULL
7
888
xyz
2/14/2014 11:15
2/28/2014 9:00
7
888
xyz
2/21/2014 9:00
3/7/2014 9:02
7
888
xyz
2/28/2014 9:00
3/14/2014 9:02
7
888
xyz
3/7/2014 9:02
NULL
7
888
xyz
3/14/2014 9:02
NULL
Thanks in advance.Hi Vikash,
This query will not produce results as per requirement:
Try it with following data
Insert into @TempTABLE values (1,777,'abc','2/14/2014 11:15','3/14/2014 9:02')
Insert into @TempTABLE values (1,777,'abc','2/21/2014 9:00','3/14/2014 9:02')
Insert into @TempTABLE values (2,777,'abc','2/28/2014 9:00','3/14/2014 9:02')
Insert into @TempTABLE values (2,777,'abc','3/7/2014 9:02','3/14/2014 9:02')
Insert into @TempTABLE values (2,777,'abc','3/14/2014 9:02',NULL)
Insert into @TempTABLE values (5,888,'xyz','2/14/2014 11:15','3/14/2014 9:02')
Insert into @TempTABLE values (5,888,'xyz','2/21/2014 9:00','3/14/2014 9:02')
Insert into @TempTABLE values (5,888,'xyz','2/28/2014 9:00','3/14/2014 9:02')
Insert into @TempTABLE values (7,888,'xyz','3/7/2014 9:02',NULL)
Insert into @TempTABLE values (6,888,'xyz','3/14/2014 9:02',NULL)
as per the problem statement, all records having 888,'xyz' should be updated with 6 not 7 as max effective date is associated with 6 not 7.
Ashutosh
Nope.
can you check the original post first. It clearly states output as having 7 as id for all the records with 888,xyz
also your above posted sample data is different from original sample data as you've dates jumpled up for the records with ids 6 and 7
Please see the illustration for original sample data
--sample table for illustration
declare @t table
(UNIQUE_ID int,Identifier int,Identifier_code varchar(100),EFFective_Date datetime ,END_Date datetime)
--populate original sample data
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (1, 777, N'abc', CAST(0x0000A2D200B964F0 AS DateTime), CAST(0x0000A2E0009450C0 AS DateTime))
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (1, 777, N'abc', CAST(0x0000A2D9009450C0 AS DateTime), CAST(0x0000A2E70094DD60 AS DateTime))
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (2, 777, N'abc', CAST(0x0000A2E0009450C0 AS DateTime), CAST(0x0000A2EE0094DD60 AS DateTime))
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (2, 777, N'abc', CAST(0x0000A2E70094DD60 AS DateTime), CAST(0x0000A2EE0094DD60 AS DateTime))
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (2, 777, N'abc', CAST(0x0000A2EE0094DD60 AS DateTime), NULL)
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (5, 888, N'xyz', CAST(0x0000A2D200B964F0 AS DateTime), CAST(0x0000A2E0009450C0 AS DateTime))
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (5, 888, N'xyz', CAST(0x0000A2D9009450C0 AS DateTime), CAST(0x0000A2E70094DD60 AS DateTime))
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (5, 888, N'xyz', CAST(0x0000A2E0009450C0 AS DateTime), CAST(0x0000A2EE0094DD60 AS DateTime))
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (6, 888, N'xyz', CAST(0x0000A2E70094DD60 AS DateTime), NULL)
INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (7, 888, N'xyz', CAST(0x0000A2EE0094DD60 AS DateTime), NULL)
--do the update
UPDATE t
SET UNIQUE_ID = MaxID
FROM
SELECT MAX(CASE WHEN END_DATE IS NULL THEN UNIQUE_ID END) OVER (PARTITION BY Identifier,Identifier_code) AS MaxID,UNIQUE_ID
FROM @t
)t
WHERE UNIQUE_ID <> MaxID
AND MaxID IS NOT NULL
--now check the output
SELECT * FROM @t
The output is as below
UNIQUE_ID Identifier Identifier_code EFFective_Date END_Date
2 777 abc 2014-02-14 11:15:00.000 2014-02-28 09:00:00.000
2 777 abc 2014-02-21 09:00:00.000 2014-03-07 09:02:00.000
2 777 abc 2014-02-28 09:00:00.000 2014-03-14 09:02:00.000
2 777 abc 2014-03-07 09:02:00.000 2014-03-14 09:02:00.000
2 777 abc 2014-03-14 09:02:00.000 NULL
7 888 xyz 2014-02-14 11:15:00.000 2014-02-28 09:00:00.000
7 888 xyz 2014-02-21 09:00:00.000 2014-03-07 09:02:00.000
7 888 xyz 2014-02-28 09:00:00.000 2014-03-14 09:02:00.000
7 888 xyz 2014-03-07 09:02:00.000 NULL
7 888 xyz 2014-03-14 09:02:00.000 NULL
Now compare it with original output and you'll find they're the same
UNIQUE_ID Identifier Identifier_code EFFective_Date END_Date
2 777 abc 2/14/2014 11:15 2/28/2014 9:00
2 777 abc 2/21/2014 9:00 3/7/2014 9:02
2 777 abc 2/28/2014 9:00 3/14/2014 9:02
2 777 abc 3/7/2014 9:02 3/14/2014 9:02
2 777 abc 3/14/2014 9:02 NULL
7 888 xyz 2/14/2014 11:15 2/28/2014 9:00
7 888 xyz 2/21/2014 9:00 3/7/2014 9:02
7 888 xyz 2/28/2014 9:00 3/14/2014 9:02
7 888 xyz 3/7/2014 9:02 NULL
7 888 xyz 3/14/2014 9:02 NULL
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Need help in converting BSO calc in to MDX in ASO
Hi,
Please find the calc that calcs Cash App Write Offs in calc script in BSO cube
Fix(Feb,FY11,Actual,allocation,@levmbrs("All End Users",0),@levmbrs("All Sold To",0));
"Cash App Write Offs"
IF ("Invoice Price Gross Sales"->"All Products"->"BW_Input" ==#missing)
"Cash App Write Offs" = "Allocation_Input_Cash_Writeoff";
ELSE
"Cash App Write Offs"->"Allocation" = "Product_Pct_of_Invoiced_Sales"->"BW_Input" *"Allocation"->"Allocation_Input_Cash_Writeoff"->"No Product";
ENDIF
Endfix
Please let me know whether the below logic is correct for ASO cube through MDX for the above calc in BSO
Case When IS([Scenario].currentmember,[Actual]) and IS([Dimension].currentmember,[Allocation]) and IS
([Years].currentmember,[FY11]) and IS ([Time].currentmember,[Feb]) and IsLevel([All End Users].CurrentMember, 0)
and IsLevel([All Sold To].CurrentMember, 0) and ([Invoice Price Gross Sales],[All Products],[BW_Input])=#Missing))
Then
[Cash App Write Offs]=[Allocation_Input_Cash_Writeoff]
Else
([Cash App Write Offs],[Allocation])=([Product_Pct_of_Invoiced_Sales],[BW_Input])*([Allocation],
[Allocation_Input_Cash_Writeoff],[No Product])
End
Thanks in advance....
Edited by: 848657 on Mar 30, 2011 9:40 AMhi,
chk this code.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = amount
currency = 'EUR'
filler = ' '
language = 'E' => give the language as italian
IMPORTING
in_words = amountrs.
rgds
anver
pls mark all hlpful answers
Maybe you are looking for
-
Query to mimic the items tab of the Sales Analysis report.
Hi there, I'm currently looking to create a query that mimics the behaviour of the Sales Analysis report in B1. The items tab of the Sales Analysis report provides all the data I require - the only issue is that I would like to merge this data with s
-
Ipod touch (2G) stuck in "restore" mode. Need HELP please
I have contacted Apple support several times since Friday and was just hung up on by an extremely rude lady in customer support. I am really frustrated and just trying to get my 5 yr old little boys ipod touch working again. The situation is that our
-
Help required with (soundcard) connection / settings, thanks in advan
Help required with connection / settings between a Creative Sound Blaster Audigy Platinum EX (soundcard) and a Creative DTT3500 Digital (5. speakers). The problem No sound from any of the speakers. (Exception can plug in headphones at front) Backgrou
-
Wireless connection to. Rhapsody
Can I transmit Rhapsody music from my Ipad to my sound system wirelessly using my Apple TV?
-
Need knowledge on sap upgrade 4.7 to ecc 6.0 in abap reports and sap query
please give me some ideas and useful links on sap upgrade 4.7 to ecc 6.0 in abap reports and sap query