Assignment in java3d

hi friends
i am preparing or constructing a game using java3d
details: the main aim of my game is
the cats will move on the floor in a room ...so that the rat have to move from one end to other end of the room with out any collision to cats.
every thing i have done except collision i.e when rat hits cat
i have a problem there...
here is the code
import com.sun.j3d.utils.behaviors.mouse.*;
import javax.vecmath.*;
import com.sun.j3d.utils.geometry.*;
import javax.media.j3d.*;
import javax.swing.JFrame;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.image.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.loaders.objectfile.ObjectFile;
import com.sun.j3d.loaders.Scene;
import com.sun.j3d.loaders.ParsingErrorException;
import com.sun.j3d.loaders.IncorrectFormatException;
import java.util.Enumeration;
import com.sun.j3d.utils.behaviors.keyboard.*;
import java.awt.event.*;
import java.awt.AWTEvent;
import java.util.Enumeration;
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;
public class objload1 extends Applet
private BranchGroup objects;
public objload1()
objects = new BranchGroup();
TransformGroup tg = new TransformGroup();
     ObjectFile OBJECT1 = new ObjectFile(ObjectFile.RESIZE);
     Scene SCENE1 = null;Scene SCENE2= null;Scene SCENE3= null;
     Scene SCENE4 = null;Scene SCENE5= null;Scene SCENE6= null;
     Scene SCENE7 = null;Scene SCENE9 =null;Scene SCENE10 =null;
try
     SCENE1 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
     SCENE2 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
     SCENE3 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
     SCENE4 = OBJECT1.load(ClassLoader.getSystemResource("objects/earthelemental.obj"));     
     SCENE5 = OBJECT1.load(ClassLoader.getSystemResource("objects/drak.obj"));
     SCENE6 = OBJECT1.load(ClassLoader.getSystemResource("objects/drak.obj"));
     SCENE7 = OBJECT1.load(ClassLoader.getSystemResource("objects/drak.obj"));
     SCENE9 = OBJECT1.load(ClassLoader.getSystemResource("objects/fat cat.obj"));
     SCENE10 = OBJECT1.load(ClassLoader.getSystemResource("objects/earthelemental.obj")); //rat the main object
          catch (FileNotFoundException e)
          System.err.println(e);
          System.exit(1);
          catch (ParsingErrorException e)
          System.err.println(e);
          System.exit(1);
          catch (IncorrectFormatException e)
          System.err.println(e);
          System.exit(1);
// LOADING OBJECT1
TransformGroup obj11 = new TransformGroup();
obj11.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
obj11.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
TransformGroup obj1 = new TransformGroup();
obj1.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj1.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj11.addChild(SCENE1.getSceneGroup());
Transform3D t3d1 = new Transform3D();
     Alpha transAlpha1 = new Alpha(-1,
                    Alpha.INCREASING_ENABLE |
                    Alpha.DECREASING_ENABLE,
                    0, 0,
                    6000, 0, 0,
                    1000, 0, 0);
     t3d1.rotY(-Math.PI/-60.0);
               PositionInterpolator translator1 =
     new PositionInterpolator(transAlpha1, obj11,t3d1,5.0f,10.0f);
               BoundingSphere bounds1 =
     new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
     translator1.setSchedulingBounds(bounds1);
     obj11.addChild(translator1);
     // translating the object
     Transform3D t3d11 = new Transform3D();
          t3d11.setTranslation(new Vector3f(-12.0f,1.0f,5.5f));
     obj1.setTransform(t3d11);
     obj1.addChild(obj11);     
     tg.addChild(obj1);
// LOADING OBJECT-2     
TransformGroup obj21 = new TransformGroup();
obj21.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
obj21.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
TransformGroup obj2 = new TransformGroup();
obj2.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj2.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj21.addChild(SCENE2.getSceneGroup());
Transform3D t3d2 = new Transform3D();
     Alpha transAlpha2 = new Alpha(-1,
                    Alpha.INCREASING_ENABLE |
                    Alpha.DECREASING_ENABLE,
                    0, 0,
                    10000, 0, 0,
                    1000, 0, 0);
     t3d2.rotX(-Math.PI/-60.0);
               PositionInterpolator translator2 =
     new PositionInterpolator(transAlpha2, obj21,t3d2,2.0f,10.0f);
               BoundingSphere bounds2 =
     new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
     translator2.setSchedulingBounds(bounds2);
     obj21.addChild(translator2);
     // translating the object2
     Transform3D t3d21 = new Transform3D();
          t3d21.setTranslation(new Vector3f(-12.0f,1.0f,9.5f));
     obj2.setTransform(t3d21);
     obj2.addChild(obj21);     
     tg.addChild(obj2);
// LOADING OBJECT-3     
TransformGroup obj31 = new TransformGroup();
obj31.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
obj31.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
TransformGroup obj3 = new TransformGroup();
obj3.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj3.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj31.addChild(SCENE3.getSceneGroup());
Transform3D t3d3 = new Transform3D();
     Alpha transAlpha3 = new Alpha(-1,
                    Alpha.INCREASING_ENABLE |
                    Alpha.DECREASING_ENABLE,
                    0, 0,
                    1000, 0, 0,
                    1000, 0, 0);
     t3d3.rotY(-Math.PI/-60.0);
               PositionInterpolator translator3 =
     new PositionInterpolator(transAlpha3, obj31,t3d3,2.0f,10.0f);
               BoundingSphere bounds3 =
     new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
     translator3.setSchedulingBounds(bounds3);
     obj31.addChild(translator3);
     // translating the object3
     Transform3D t3d31 = new Transform3D();
          t3d31.setTranslation(new Vector3f(-8.0f,1.0f,11.5f));
     obj3.setTransform(t3d31);
     obj3.addChild(obj31);     
     tg.addChild(obj3);
// LOADING OBJECT-4
               TransformGroup obj41 = new TransformGroup();
obj41.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
obj41.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
TransformGroup obj4 = new TransformGroup();
obj4.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj4.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj41.addChild(SCENE4.getSceneGroup());
Transform3D t3d4 = new Transform3D();
     Alpha transAlpha4 = new Alpha(-1,
                    Alpha.INCREASING_ENABLE |
                    Alpha.DECREASING_ENABLE,
                    0, 0,
                    9000, 0, 0,
                    1000, 0, 0);
     t3d4.rotY(-Math.PI/-60.0);
               PositionInterpolator translator4 =
     new PositionInterpolator(transAlpha4, obj41,t3d4,5.0f,10.0f);
               BoundingSphere bounds4 =
     new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
     translator4.setSchedulingBounds(bounds4);
     obj41.addChild(translator4);
     // translating the object
     Transform3D t3d41 = new Transform3D();
          t3d41.setTranslation(new Vector3f(-9.0f,1.0f,-1.5f));
     obj4.setTransform(t3d41);
     obj4.addChild(obj41);     
     tg.addChild(obj4);
// LOADING OBJECT-5
               TransformGroup obj51 = new TransformGroup();
obj51.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);     
obj51.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
TransformGroup obj5 = new TransformGroup();
obj5.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj5.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj51.addChild(SCENE5.getSceneGroup());
Transform3D t3d5 = new Transform3D();
     Alpha transAlpha5 = new Alpha(-1,
                    Alpha.INCREASING_ENABLE |
                    Alpha.DECREASING_ENABLE,
                    0, 0,
                    6000, 0, 0,
                    1000, 0, 0);
     t3d5.rotY(-Math.PI/-60.0);
               PositionInterpolator translator5 =
     new PositionInterpolator(transAlpha5, obj51,t3d5,5.0f,10.0f);
               BoundingSphere bounds5 =
     new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);// bounds are must
     translator5.setSchedulingBounds(bounds5);
     obj51.addChild(translator5);
     // translating the object
     Transform3D t3d51 = new Transform3D();
          t3d51.setTranslation(new Vector3f(-5.0f,1.0f,-3.5f));
     obj5.setTransform(t3d51);
     obj5.addChild(obj51);     
     tg.addChild(obj5);
// LOADING OBJECT-6
TransformGroup obj6 = new TransformGroup();
obj6.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj6.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj6.addChild(SCENE6.getSceneGroup());
Transform3D t3d6 = new Transform3D();
Alpha alpha6 = new Alpha(-1,12000);
Point3f[] positions = new Point3f[6];
float[] knots = {0.0f,0.2f,0.4f,0.6f,0.8f,1.0f};
AxisAngle4f axis = new AxisAngle4f(1.0f,0.0f,0.0f,0.0f);
t3d6.set(axis);
positions[0] = new Point3f(-12.0f,1.0f,-20.0f);
positions[1] = new Point3f(12.0f,1.0f,-15.0f);
positions[2] = new Point3f(-12.0f,1.0f,2.0f);
positions[3] = new Point3f(12.0f,1.0f,12.0f);
positions[4] = new Point3f(-12.0f,1.0f,17.0f);
positions[5] = new Point3f(-12.0f,1.0f,-20.0f);
PositionPathInterpolator pospath = new PositionPathInterpolator(
     alpha6, obj6, t3d6,knots,positions);
pospath.setSchedulingBounds(new BoundingSphere());
obj6.addChild(pospath);
tg.addChild(obj6);
// LOADING OBJECT-7
TransformGroup obj7 = new TransformGroup();
obj7.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj7.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj7.addChild(SCENE7.getSceneGroup());
Transform3D t3d7 = new Transform3D();
Alpha alpha7 = new Alpha(-1,13000);
Point3f[] positions7 = new Point3f[11];
float[] knots7 = {0.0f,0.1f,0.2f,0.3f,0.4f,0.5f,0.6f,0.7f,0.8f,0.9f,1.0f};
AxisAngle4f axis7 = new AxisAngle4f(1.0f,0.0f,0.0f,0.0f);
t3d7.set(axis7);
positions7[0] = new Point3f(-14.0f,1.0f,-20.0f);
positions7[1] = new Point3f(14.0f,1.0f,-20.0f);
positions7[2] = new Point3f(0.0f,1.0f,-10.0f);
positions7[3] = new Point3f(-14.0f,1.0f,-10.0f);
positions7[4] = new Point3f(0.0f,1.0f,-5.0f);
positions7[5] = new Point3f(14.0f,1.0f,-5.0f);
positions7[6] = new Point3f(0.0f,1.0f,0.0f);
positions7[7] = new Point3f(-14f,1.0f,-3f);
positions7[8] = new Point3f(-7f,1.0f,13f);
positions7[9] = new Point3f(7f,1.0f,13f);
positions7[10] = new Point3f(-14.0f,1.0f,-20.0f);
PositionPathInterpolator pospath7 = new PositionPathInterpolator(
     alpha7, obj7, t3d7,knots7,positions7);
pospath7.setSchedulingBounds(new BoundingSphere());
obj7.addChild(pospath7);
tg.addChild(obj7);
// LOADING OBJECT-9
TransformGroup obj9 = new TransformGroup();
obj9.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj9.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj9.addChild(SCENE9.getSceneGroup());
Transform3D t3d9 = new Transform3D();
Alpha alpha9 = new Alpha(-1,7000);
Point3f[] positions9 = new Point3f[11];
float[] knots9 = {0.0f,0.1f,0.2f,0.3f,0.4f,0.5f,0.6f,0.7f,0.8f,0.9f,1.0f};
AxisAngle4f axis9 = new AxisAngle4f(1.0f,0.0f,0.0f,0.0f);
t3d9.set(axis9);
positions9[0] = new Point3f(-12.0f,1.0f,-20.0f);
positions9[1] = new Point3f(12.0f,1.0f,-20.0f);
positions9[2] = new Point3f(0.0f,1.0f,-10.0f);
positions9[3] = new Point3f(-12.0f,1.0f,-10.0f);
positions9[4] = new Point3f(0.0f,1.0f,-5.0f);
positions9[5] = new Point3f(12.0f,1.0f,-5.0f);
positions9[6] = new Point3f(0.0f,1.0f,0.0f);
positions9[7] = new Point3f(-12f,1.0f,-3f);
positions9[8] = new Point3f(-10f,1.0f,13f);
positions9[9] = new Point3f(10f,1.0f,13f);
positions9[10] = new Point3f(-12.0f,1.0f,-20.0f);
PositionPathInterpolator pospath9 = new PositionPathInterpolator(
     alpha9, obj9, t3d9,knots9,positions9);
pospath9.setSchedulingBounds(new BoundingSphere());
obj9.addChild(pospath9);
tg.addChild(obj9);
// LOADING 3DS OBJECT-10 main object
TransformGroup obj10 = new TransformGroup();
obj10.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
obj10.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
obj10.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_READ);
     obj10.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_WRITE);
obj10.addChild(SCENE10.getSceneGroup());
Transform3D t3d10 = new Transform3D();
          t3d10.setTranslation(new Vector3f(0.0f,1.0f,15.0f));
     obj10.setTransform(t3d10);
KeyBehavior keyBeh = new KeyBehavior( obj10);
keyBeh.setSchedulingBounds(new BoundingSphere(new Point3d(),1000.0));
obj10.addChild(keyBeh);
tg.addChild(obj10);
//-----------------------------------COLLISION DETECTION------------------------------------
CollisionDetector cd = new CollisionDetector(obj10);
          BoundingSphere bounds =
               new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
               cd.setSchedulingBounds(bounds);
          // Add the behavior to the scene graph
//tg.addChild(obj9);
// ADDING tg TO BRANCHGROUP
objects.addChild(tg);
          public BranchGroup obj()
          return objects;
====================================================
here is collision detection code
import java.util.Enumeration;
import javax.media.j3d.*;
import javax.vecmath.*;
public class CollisionDetector extends Behavior
private boolean inCollision = false;
private WakeupOnCollisionEntry wEnter;
private WakeupOnCollisionExit wExit;
private TransformGroup tg;
     public CollisionDetector(TransformGroup tg)
          this.tg = tg;
          inCollision = false;
     public void initialize()
     tg.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_READ);
     tg.setCapability(TransformGroup.ALLOW_COLLISION_BOUNDS_WRITE);
          wEnter = new WakeupOnCollisionEntry(tg);
          wExit = new WakeupOnCollisionExit(tg);
          wakeupOn(wEnter);
public void processStimulus(Enumeration criteria)
     inCollision = !inCollision;
     if(!inCollision)
     wakeupOn(wEnter);
i tried in so may ways to detect a collision but i dint get it. so i thing any of the members in this forum can help. its urgent for me i have to submit my assignment next week. so plz help
regards
satish

Hi Satish
I am also doing the same Task and stuck with collision part. Plz let me know if you get the same.
Your code is missiting KeyBehavio class can you plz share it.
Santosh
[email protected]

Similar Messages

  • I`m new to java3d and i need an editor

    I need a simple editor which for java3d.By "simple" i mean that when reading the jave3d api tutorial i can start programming.It won`t bug me with special setting that the editor would need or i won`t need another tutorial just for the editor.

    Is the tutorial sun provides for java3d good
    enough for someone to learn?It's as gooder place as any to start.
    I`m asking because a
    project has been assigned to me and i must act fast!Learn the basics first off. I don't think they're a great deal of java3D tutorials available and there certainly aren't any good Java3D books but there is a fair bit of code floating around on the net. The best way to 'act fast' would be isolate the aspects you need to learn for your project then go away and find open source resources that demonstrate some of these principles.

  • Animation in Java3D

    Hi!
    I have an articulated figure. Various transform groups have been assigned at the joints, which cause the legs and arms to move/rotate. Now I have to make the figure move. What could be the best method to achieve this? Is it possible to animate the figure in java3d by defining different posses in walk of this figure? Does any one know about any such example/articles etc. Any help would be of benefit. Thanks

    look at my example and let me know if it helps you,
    Franck
    http://www.geocities.com/calzada_us/Billard3D/Pool.html

  • Error while assigning a character value to a numeric variable.

    I fire a sql statement and check the number of rows returned by the sql.
    I check this result with the application logs.
    The application logs keeps the sqls fired by the application and the no of rows returned, in the example below the sql returned 8454 rows.
    My script compares the two results.
    ***********Application Log***********
    4/14/2008 11:15:01 AM: 0059 SQL SELECT "CLUSTER_CD",
    4/14/2008 11:15:01 AM: 0060 "PRODUCT_DESC",
    4/14/2008 11:15:01 AM: 0061 "TEAM_CD"
    4/14/2008 11:15:01 AM: 0062 FROM "OPS$TMS"."MAP_CLUSTER_TEAM_PROD"
    4/14/2008 11:15:01 AM:      3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD, 8,454 lines fetched
    ***********Application Log***********
    My script:
    #!/bin/ksh
    typeset -i resA
    typeset -i resB
    opstms_conn_string="abc/[email protected]"
    set `sqlplus -s $opstms_conn_string << EOF
    set pages 0
    WHENEVER SQLERROR CONTINUE
    SELECT count(*)
    FROM MAP_CLUSTER_TEAM_PROD;
    exit
    EOF`
    resA=$1 ##returns 8454
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}'`
    ##resB returns 8,454
    ## here i get syntax error
    if [ $resA -eq $resB ]; then
    echo "QA passed for sql1"
    else
    echo "QA failed for sql1"
    fi
    The problem is as resB is integer variable it does not accept character value: 8,454 so returns a syntax error:
    How do I change the value assigned to resB into a numeric variable?
    error:
    + grep 3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD, BCVP_Main_Loader.qvw.log
    run.ksh[52]: 8,454: syntax error

    Change:
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}'`
    to this:
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}' | tr -d ,`
    to drop the comma. Or you could do it in awk(1):
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{ gsub( /,/, "", $10 ); print $10}'`
    Or you could to it all in awk(1):
    resB=`awk '
    /3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD/ {
    gsub( /,/, "", $10 )
    print $10
    ' BCVP_Main_Loader.qvw.log`
    (This example was not tested, it's just for a model.)
    Someone more of an SQL guru than I can probably tell you how to change your numeric locale to avoid presenting those commas in the first place and avoid the problem.
    HTH

  • Cannot assign an empty string to a parameter with JDBC type VARCHAR

    Hi,
    I am seeing the aforementioned error in the logs. I am guessing its happening whenever I am starting an agent instance in PCo. Can somebody explain whats going on?
    Regards,
    Chanti.
    Heres the complete detail from logs -
    Log Record Details   
    Message: Unable to retreive path for , com.sap.sql.log.OpenSQLException: Failed to set the parameter 1 of the statement >>SELECT ID, PARENTID, FULLPATH, CREATED, CREATEDBY, MODIFIED, MODIFIEDBY, REMOTEPATH, CHECKEDOUTBY FROM XMII_PATHS WHERE FULLPATH =  ?  <<: Cannot assign an empty string to a parameter with JDBC type >>VARCHAR<<.
    Date: 2010-03-12
    Time: 11:32:37:435
    Category: com.sap.xmii.system.FileManager
    Location: com.sap.xmii.system.FileManager
    Application: sap.com/xappsxmiiear

    Sounds like a UI browsing bug (when no path is selected from a catalog tree folder browser) - I would suggest logging a support ticket so that it can be addressed.

  • Open and Close Posting Periods According to G/L Account Assignment Objects

    Hi,
    Can anybody please explain me how configurations related to " Open and Close Posting Periods According to G/L Account Assignment Objects " works in SAP FICO? I am confused about this config.
    Regards,
    Mandeep

    Hi Mandeep ,
    First i would like to tell about fiscal year
    fiscal year is nothing but a financial year of company in sap . it contain 12 normal periods and 4 special periods.In genaral we will call like month but that is sap that is a period. so 12 period for 12 months ok next special period will use in all companies for audit and tax adjustment purpose of previous year.
    coming to the open and close periods.in sap for security purpose we have to open one period like this month july so i opened july period only we cant post the pervious month (june)and we cant post future month lik in (Auguest)ok
    You can close and open periods by transaction ob52.
    In transaction ob52 there are account types
    + Valid for all account types
    A Assets
    D Customers
    K Vendors
    M Materials
    S G/L accounts
    V Contract accounts
    + means all types. if you want to open vendor then enter period from and to according to your fiscal year.
    you cant adjust items in closed period. if you want to then you have to open the period
    For your information.....
    posting periods also open user level tc S_ALR_87003642.
    customization levael OB52.
    Regards
    Kumar

  • Wrong GL  has been assigned  to invoice how to change or update?

    Dear Expert,
    Some of transaction are wrongly assign to different GL,
    Customer have to correction in  the some transaction which are in Closed status and some are Open AP and AP invoices
    MY Actual GL is in Expenditure basket but mistakenly it transfer in Liability, bcz of  this P&L is not showing proper figure ?
    Now what to do to ?
    Thanks
    Kevin

    Hi Kevin,
    you cannot change or modify any financially relevant data in a saved invoice/journal entry.
    In order to correct the incorrect postings you need to identify them & then reverse the transactions. For example, if you created an invoice & then based a payment on it, you will need to cancel the payment first, thus releasing the invoice. You then use a credit memo standing on the invoice to cancel it out. Then you should re-enter the invoice with the correct account & create another payment. While doing this, please take particular care with the dates on the documents.
    All the best,
    Kerstin

  • How to use one Assign action to create multiple context variables

    Hello, everyone.
    I read some tips from Oracle documentation that said:
    Avoid creating many OSB context variables that are used just once within another XQuery
    Context variables created using an Assign action are converted to XmlBeans and then reverted to the native XQuery format for the next XQuery. Multiple "Assign" actions can be collapsed into a single Assign action using a FLWOR expression. Intermediate values can be created using "let" statements. Avoiding redundant context variable creation eliminates overheads associated with internal data format conversions. This benefit has to be balanced against visibility of the code and reuse of the variables.
    Oracle® Fusion Middleware Performance and Tuning Guide
    +11g Release 1 (11.1.1)+
    Part Number E10108-03
    But I don't know how to do that. Can you show me ?
    Thank in advance
    Edited by: Doubt_Man on Aug 17, 2011 3:30 PM

    if you return sequences, you can declare the return type of your xquery as xs:double*
    (notice the asterix at the end)
    but I have the impression that in the assign action only the first element will be assigned to the context variable
    (correct me if I am wrong)
    So in fact you might indeed have to transform the sequence into a element()*, or concatenate it into a CVS string - for instance using string-join
    http://www.xqueryfunctions.com/xq/fn_string-join.html

  • VCenter Single Sign-On Permissions Assignment for Members of Multiple AD Groups

    Hi all,
    I ran across an interesting issue whilst assigning permissions using Active Directory groups within vCenter.
    Environment
    1 vCenter Appliance managing 2 Datacenters (1 Datacenter with 2 Clusters, 1 Cluster with 2 Hosts, 1 Cluster with 4 Hosts, 1 Datacenter with 1 Cluster containing 1 host.) 
    vCenter has an SSO Identity Source configured using Active Directory (Integrated Windows Authentication).
    vCenter and all hosts are domain members of child1.parent.com.au
    The Active Directory Forest contains a parent domain, let's call it parent.com.au, and two child domains child1.parent.com.au and child2.parent.com.au.
    Although the Identity Source was configured for my child domain, using child domain credentials it added the parent domain and subsequently both child domains. Okay, so there are trusts, I'm okay with this. The interesting issue is yet to come.
    Two Active Directory Groups were added. Deployment Admins A and Deployment Admins B.
    Two vCenter Roles were created with similar names. VM Deployers A and VM Deployers B
    Deployment Admins A was assigned the Deployers A role to Cluster A (Cluster, VM Folders, Datastore Folders)
    Deployment Admins B was assigned the Deployers B role to Cluster B (Cluster, VM Folders, Datastore Folders)
    Note: No objects overlap. All hosts, vms and datastores are isolated to each cluster.
    So the next step is assign an child1 AD User to the Deployment Admins A group. As expected the user using credentials child1\user can connect to vCenter via the VI Client and see all the relevant objects. Great!
    So now I assign the same child1 AD user to the second AD group Deployment Admins B. Now we wait and nothing happens. The permissions don't change. The user logs out and logs back in using the same credentials and still the permissions don't change.
    So I remove the user from both AD groups and get them to log out and in and sure enough they can't.
    This time I assign the child1\user account the roles as set out previously. So child1\user account is assigned to both roles in place of each AD Group. The expected behaviour is observed. As I add the second permission set, the objects become visible within the VI client.
    Okay so now I remove the explicitly assigned permissions and reassign via the groups and this time I ask the user to log in via the UPN ([email protected]). Whoa! It works.
    So it seems that assigning permissions for the same user in multiple AD groups across multiple roles can only be achieved when the user uses a UPN login to the VI Client.
    Has anybody else found this to be the case?
    If so, were you able to fix it?

    Hello,
    I have found this to be the case and think it is more due to SSO than AD. If you look at how you login as the 'administrator' when you first configure SSO it is in effect using UPN. I would raise this as a case to VMware and make sure they are aware of the issue. There are some issues with SSO being worked each day.
    Best regards,
    Edward L. Haletky
    VMware Communities User Moderator, VMware vExpert 2009, 2010, 2011,2012,2013,2014
    Author of the books 'VMWare ESX and ESXi in the Enterprise: Planning Deployment Virtualization Servers', Copyright 2011 Pearson Education. 'VMware vSphere and Virtual Infrastructure Security: Securing the Virtual Environment', Copyright 2009 Pearson Education.
    Virtualization and Cloud Security Analyst: The Virtualization Practice, LLC -- vSphere Upgrade Saga -- Virtualization Security Round Table Podcast

  • Unable to assign the variable value

    Hi,
    I am trying to capture the error message into a variable using statement in the Refreshing tab :
    Select '<%=odiRef.getPrevStepLog("MESSAGE")%>' from dual
    After getting the error log into variable, I am making a call to Scenario which will generate a file and email it stating the error log.
    Now the issue is when i assign this variable to the Scenario variable it throws the following error:
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Invalid parameter
         at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    If i set the variable with any default value, it successfully makes a call to the scenario and generates the file.
    Please help!
    Thanks,
    Ritika

    Hi,
    i created a variable and assigned the value to another variable in a procedure, am getting the following error, as it says in the error i don't have any ";" that is causing the problem.
    the variable name is table_nm
    inside the procedure am assigning the value to lv_table_nm :=#SESSNAME.table_nm;
    If i change the variable name tos ome constant or any other value, the package is working fine. Any ideas why am getting error assigning the variable?
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    continue avg count current exists max min prior sql stddev
    sum variance execute forall merge time timestamp interval
    date <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively
    java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:

  • Error while creating  a PO with Account assignment

    HI MM Gurus
    In our case, we need to create the STO for account assignment cat `Unknown`.
    In SPRO I maintained combination of account assign cat and item cat.
    Now, while creating  a PO with Account assign U we get Error message -  ME069 :Unknown account assignment not defined for use here.
    Please advise how to resolve this issue.

    Hi
    When you are posting actuals, you need to give true account assignment object. With U (unknown), system cannot identify which account to be posted. Change account assignment in PO to another.
    In standard SAP Unknown account assignment is not allowed in PO's. Only exception is Blanket PO.
    Unknown is allowed only in PR and Blanket PO.
    The reason is logically you are releasing the PO to the external vendor or Plant in this case you must know the account assignment.
    Regards,
    Ninad Kshirsagar

  • Error While Assigning Ad insert contract from Ad insert orders.

    Hi Experts,
    While performing the transaction for u2018Assigning Ad inserts Contracts from Ad Insert ordersu2019, Iu2019m getting the following error.
    Message no. JVSD056
    I did the following steps.
    a) Created a geographical unit.
    b) Assigned that geographical unit in the BP master of the retailer with a newly created assignment type.
    c) Linked the geographical unit in the booking unit for Ad inserts  in MAM .
    d) Created an Ad insert order in MAM by using the booking unit which has the geographical unit assignment.
    Then tried to execute the u2018Assign Ad inserts Contracts from Ad insert orders. The error message is JVSD056.
    Appreciate if anyone can help me in this. This is the first time we are doing this.
    Regards,
    Suresh

    Hi Helios,
    I hav egone through the document.However i have resolved the error ar: illegal option -- F by following the doc id Doc ID 785828.1
    Now i am facing error while relinking
    Relinking module 'FNDCORE.dll' in product fnd ...
    Removing any existing temp directory
    rm -rf temp
    creating the temp directory
    mkdir temp
    changing permissions for the temp directory
    chmod 777 temp
    Getting the object file names for this FNDCORE.dll
    gnumake -f E:/oracle/apps/apps_st/appl/admin/PROD/out/link_fnd_5136.mk fndcore.LIST
    E:/oracle/apps/apps_st/appl/admin/PROD/out/link_fnd_5136.mk:760: *** target pattern contains no `%'. Stop.
    Unable to get the objects for module "FNDCORE.dll".
    See error messages above (also recorded in log file)
    for possible reasons for the failure.
    adrelink is exiting with status 1
    Please advice
    Regards,
    SRK

  • Error while assigning portal custom role

    Hi All,
    We have a custom role which we use to assign to the users.  till now we are able to assign it without any problem.  But now as i need to assign it to someone, i got an error stating that "An error occured while adding user assignments; to see the correct status, perform a new assigned user search".
    Can anybody help us in finding out the reason of the error and in rectifying the error.
    Thanks & Regards,
    Ravi

    Hi Raghu,
    Thanks for your reply..
    This role is existing in the PCD, and this error is coming, while assinging this role any users... it is working fine with the existing users, who are having this role before.  This is happening only when we are assigning this role to some new user. 
    I dont think this has some relation with the backend, as the role assignment is part of the Portal itself.
    And also here we dont have seperate UME, and we are using r3 users only with single sign on.....
    Hi Jithendar,
    Thanks fo your reply.....I will do that backend roles check also for those users and see whether any backend role variations happened for these users.
    Thanks & Regards,
    Ravi

  • Error while assigning Smartform in Sale Order

    Dear All,
    For taking the sale order printout, I do not want to create a SAP SCRIPT Form. So in NACE transaction, I have created one output type 'ZA01' and assigned a new Smartform to that output type.
    Now, after adding this output type in Sale Order, when I am going to print the sale order using ZA01 output type system is giving error that WRITE_FORM is invalid, START_FORM is missing.
    Please tell whether can we assign the Smartform to sale order or not. And if yes then how to correct the error.
    Kind Regards,
    Vishal

    Dear Raghu,
    I have checked it. And the entry is present in that table. But this error is coming only when I am giving Smartform. But system is not giving any error when I am giving script form.
    So the problem is only for SmartForm.
    Regards,
    Vishal

  • Error while assigning external event

    Hi Guys!
    I'm getting error, while trying to assign an external event on table output.
    I've got a button with action POSTPO, that is residing in standalone form. That action should send data form some form and a table to BAPI.
    When I try to configure connector line and assign that *event (from event scope 'any element'), I recieve Internet Explorer's script error " 'length' is null or not an object".
    Here are two screenshots: [1|http://www.dennisk.org/tmp/SAP/event_err.jpg], [2|http://www.dennisk.org/tmp/SAP/event_err_mod.jpg].
    At the same model I can assign that event to different form and table. The only difference is that before that faulty elements there is a chain of two directly connected BAPIs.
    Is there a way to fix it?
    Thanks in advance!
    Regards,
    DK

    anybody?

Maybe you are looking for

  • Clock app crashes every time I try to open it

    First time this morning. I've restarted the phone 5 times now, cleaned the cache, tried to disable and then enable the app but it's not possible. How can I resolve? Solved! Go to Solution.

  • Latest Safari not working on Snow Leopard or Windows XP

    I just updated to lastest version of Safari for Windows, on my work machine running Windows XP SP3, and it will open up and freeze.  The previous version ran just fine! Then I come home to find that the lastets version of Safari (5.1) on my iMac runn

  • Pegging relation for stock got lost once we do changes to the SNP planned order.

    Hello Experts, Pegging relation for stock got lost once we do changes to the SNP planned order. We are using a BAPI  "BAPI_MOSRVAPS_CREATESNPORDER" to make changes to the planned order as per our business requirement. However after changes the peggin

  • Wired network help needed

    hi i'm new to support communities this is my Question:                                i want a wired network for the 2 mac's and the pc desktop, the router is in the hallway and the 2 mac's are in the living room so my idea is to run a cat6 ethernet

  • Java.lang.reflect.InvocationTargetException: Duplicate name

    I have a class and demo program that compile. When I try to run them I get the error "java.lang.reflect.InvocationTargetException: Duplicate name" Can anybody give me an idea of where to start tracking down this problem? I can't see anything that loo