Thread creates problem

i have got these four basic classes: for rmi
1. client
2.server
3.serverInterface
4.serverImplement.
at serverImplement , in one of the function i have started a new thread..(its runnable implement being another class) .....but when i call this
function from client i get this:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableE
xception: surve.rotate // this being my runnable class
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:157)
at surve.serverImplement_Stub.rightCon(Unknown Source)
at surve.client.continuos_actionPerformed(client.java:167)
at surve.client.access$200(client.java:11)
what is that i am doing wrong?.........i have to get that thread working for my program to work........

Some people cannot understand a hint.
No one can help you if you don't post some code. But, before doing so, read the forum instructions on how to post code and only post small amounts.

Similar Messages

  • JNDI lookup fails in a thread created by J2EE application on WAS 8.0.0.4 running on Red Hat Enterprise Server 5.8(2.6.18-308.e15).

    I am using Jackrabbit Repository (jcr's implementation) as backend in my Web Appl.Whose data persists on Oracle Database. To make connection with Oracle database jackrabbit provide provision of JNDI Lookup to read the data source defined in WAS (using WAS 8.0.0.4 as App Server).
    I am able to perform JNDI Lookup everywhere in my application,But in a flow where i am creating a Thread using Java Concurrent Api and insidethread's call() method when I am trying for JNDI Look following exception occurs –
    [8/20/13 10:57:35:163 IST] 000000dd System Out     O ERROR 20-08 10:57:35,163 (DatabaseFileSystem.java:init:209)            failed to initialize file system
    javax.jcr.RepositoryException: JNDI name not found: java:comp/env/jdbc/ofsds
    at org.apache.jackrabbit.core.util.db.ConnectionFactory.getJndiDataSource(ConnectionFactory.java:295)
    at org.apache.jackrabbit.core.util.db.ConnectionFactory.createDataSource(ConnectionFactory.java:233)
    at org.apache.jackrabbit.core.util.db.ConnectionFactory.getDataSource(ConnectionFactory.java:166)
    at org.apache.jackrabbit.core.fs.db.DbFileSystem.getDataSource(DbFileSystem.java:226)
    at org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSystem.java:190)
    at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$6.getFileSystem(RepositoryConfigurationParser.java:1057)
    at org.apache.jackrabbit.core.config.RepositoryConfig.getFileSystem(RepositoryConfig.java:911)
    at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:285)
    at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:605)
    at org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:232)
    at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:280)
    at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:376)
    at com.mmpnc.icm.server.repository.RepositoryStartupService.newSession(RepositoryStartupService.java:408)
    at com.mmpnc.icm.server.repository.RepositoryStartupService.newSession(RepositoryStartupService.java:355)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
    at com.mmpnc.icm.server.repository.RepositoryStartupService_$$_javassist_1.newSession(RepositoryStartupService_$$_javassist_1.java)
    at com.mmpnc.icm.server.repository.ICMHouseKeepingSessionManager.create(ICMHouseKeepingSessionManager.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
    at com.mmpnc.icm.server.repository.ICMHouseKeepingSessionManager_$$_javassist_8.create(ICMHouseKeepingSessionManager_$$_javassist_8.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)
    at org.jboss.seam.Component.callComponentMethod(Component.java:2171)
    at org.jboss.seam.Component.callCreateMethod(Component.java:2094)
    at org.jboss.seam.Component.newInstance(Component.java:2054)
    at org.jboss.seam.Component.getInstance(Component.java:1948)
    at org.jboss.seam.Component.getInstance(Component.java:1910)
    at org.jboss.seam.Component.getInstance(Component.java:1904)
    at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2271)
    at org.jboss.seam.Component.getValueToInject(Component.java:2223)
    at org.jboss.seam.Component.injectAttributes(Component.java:1663)
    at org.jboss.seam.Component.inject(Component.java:1481)
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:61)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
    at com.mmpnc.icm.server.repository.ICMHouseKeepingRepository_$$_javassist_7.create(ICMHouseKeepingRepository_$$_javassist_7.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)
    at org.jboss.seam.Component.callComponentMethod(Component.java:2171)
    at org.jboss.seam.Component.callCreateMethod(Component.java:2094)
    at org.jboss.seam.Component.newInstance(Component.java:2054)
    at org.jboss.seam.Component.getInstance(Component.java:1948)
    at org.jboss.seam.Component.getInstance(Component.java:1910)
    at org.jboss.seam.Component.getInstance(Component.java:1904)
    at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2271)
    at org.jboss.seam.Component.getValueToInject(Component.java:2223)
    at org.jboss.seam.Component.injectAttributes(Component.java:1663)
    at org.jboss.seam.Component.inject(Component.java:1481)
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:61)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
    at com.mmpnc.icm.server.repository.ICMHouseKeepingManager_$$_javassist_6.create(ICMHouseKeepingManager_$$_javassist_6.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)
    at org.jboss.seam.Component.callComponentMethod(Component.java:2171)
    at org.jboss.seam.Component.callCreateMethod(Component.java:2094)
    at org.jboss.seam.Component.newInstance(Component.java:2054)
    at org.jboss.seam.Component.getInstance(Component.java:1948)
    at org.jboss.seam.Component.getInstance(Component.java:1910)
    at org.jboss.seam.Component.getInstance(Component.java:1904)
    at org.jboss.seam.Component.getInstance(Component.java:1899)
    at com.mmpnc.icm.server.concurrent.PerformCloseTask.call(PerformCloseTask.java:136)
    at com.mmpnc.icm.server.concurrent.PerformCloseTask.call(PerformCloseTask.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
    at java.util.concurrent.FutureTask.run(FutureTask.java:149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
    at java.lang.Thread.run(Thread.java:770)
    Caused by:
    javax.naming.ConfigurationException: A JNDI operation on a "java:" name cannot be completed because the server runtime is not able to associate the operation's thread with any J2EE application component.  This condition can occur when the JNDI client using the "java:" name is not executed on the thread of a server application request.  Make sure that a J2EE application does not execute JNDI operations on "java:" names within static code blocks or in threads created by that J2EE application.  Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on "java:" names. [Root exception is javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".]
    at com.ibm.ws.naming.java.javaURLContextImpl.throwExceptionIfDefaultJavaNS(javaURLContextImpl.java:522)
    at com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS(javaURLContextImpl.java:552)
    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:481)
    at com.ibm.ws.naming.java.javaURLContextRoot.lookupExt(javaURLContextRoot.java:485)
    at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:370)
    at org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
    at javax.naming.InitialContext.lookup(InitialContext.java:436)
    at org.apache.jackrabbit.core.util.db.ConnectionFactory.getJndiDataSource(ConnectionFactory.java:280)
    ... 114 more
    Caused by:
    javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:".
    at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1969)
    at com.ibm.ws.naming.ipbase.NameSpace.retrieveBinding(NameSpace.java:1376)
    at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1219)
    at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:1141)
    at com.ibm.ws.naming.urlbase.UrlContextImpl.lookupExt(UrlContextImpl.java:1436)
    at com.ibm.ws.naming.java.javaURLContextImpl.lookupExt(javaURLContextImpl.java:477)
    ... 119 more

    Okay "damorgan", you seem to have me confused with a newbie. All I'm posting is the info that I got from my Sys Admin on the fix to my problem I encountered when trying to install Oracle 11g (11.2.0.0) on Red Hat Linux Enterprise 5. Since we're mouting onto an NFS, these are the steps he took. I'm not trying to "hide" information or post as little as possible. What other info do you want? I don't know what you are referring to when you mention "Filer, make, model, software version"? Please elaborate. I was just trying to post to others that may have encountered this problem, and I get somewhat attacked by you. I don't assume anyone can read my mind (especially you).

  • Thread concurrency problem - how to know when thread is dead?

    My applet uses a thread to draw an iteration graph step by step.
    The user as the option of pressing two buttons:
    - PLAY button - iteration Points are stored in an arrayList and drawn step by step (a sleeping time follows each step) (drawIterations thread)
    - TO_END button - iteration Points are all stored in the arrayList (swingworker thread) and after all of them have been stored the graph is drawn instantly.
    I have problems in this situation:
    When executing the PLAY-button thread, if the user presses TO_END button, the remaining graph lines should draw instantly. Sometimes I get more points on the graph than I should. It seems that the PLAY thread, which I stop when TO_END buton is pressed, still remains storing new points into the arrayList concurrently to the new thread created after TO_END button was pressed .
    Any ideas?
    I'm already using synchronization.
    private volatile Thread drawIterations;
    public void playButtonClick(JToggleButton btn) {
         pointSet1 = new ArrayList<Point2D.Double>();
         if (drawIterations == null) drawIterations = new Thread(this,   "drawIterations");
         drawIterations.start();
    public void toEndButtonClick(JToggleButton btn) {
         stopThread() ;
         pointSet1 = new ArrayList<Point2D.Double>();
         computeIterationGraphPointsAndRefreshGraph();
    public synchronized void stopThread() {
         drawIterations = null;
         notify();
    private void computeIterationGraphPointsAndRefreshGraphs() {
         SwingWorker worker = new SwingWorker() {
              public Object construct() {
                   // compute all iteration points
                         //repaint graph
         worker.start();
    }Is there a way of testing if a thread is actually dead after setting the thread object to null??

    In general, a Thread keeps running until it's run
    method completes. Threads don't stop when their
    handle is set to null. Your run method should
    constantly be checking on a variable to know when to
    stop running and exit the run method. In this case,
    you could check on the drawIterations variable to see
    if it's null.<br>
    <br>Even using the following line on my run method I get the the same problem:
    <br>
    <br>while (myThread == drawIterations && drawIterations!=null && halfStep < 2 * totalIterations) {
    <br>...
    <br>
    <br>Here's the whole method:
    <br>(actually there are 2 graphs being drawn and the second is only refreshed every 2 steps:)
    <br>
    <br>     <br>public void run() {
         <br>  Thread myThread = Thread.currentThread();
         <br>  int totalIterations = transientIterations +iterationsToDraw ;
              <br>  while (myThread == drawIterations && drawIterations!=null && halfStep < 2 * totalIterations) {
              <br>     computeNextHalfIterationGraphPoint( );
              <br>      if (!TRANSIENT_IS_ENABLED || halfStep >= 2*transientIterations ) {// is     not in transient calculations
              <br>                       graphArea1.repaint();
              <br>                       if (halfStep%2 ==0 ) graphArea2.repaint();
              <br>                       if (halfStep < 2*totalIterations){//no need to execute the following block if at last iteration point
                   <br>                         if (lastIterationPointsFallOutsideGraphArea(toEndCPButtonActive)) break;
                        <br>          try {
                             <br>                      Thread.sleep(sleepingTimeBetweenHalfIterationRendering);
                             <br>                      if (threadInterrupted ){//if clause included to avoid stepping into a synchronized block if unnecessary
                                  <br>                        synchronized (this) {
                                       <br>                          while (threadInterrupted && myThread==drawIterations ) wait();
                                                      <br>    }
    <br>                                               }
         <br>                                   } catch (InterruptedException e) {
              <br>                                     break;
                   <br>                         }     
                        <br>               }
    <br>                            }
         <br>        stopThread();
         <br>     }
    <br>

  • Selector create problem during simulatenious access...

    Hello guys,
    in my application I want to use one common selector for registering the new connection at the same time accessing channels which are registered to it , trying to read from that.
    But when any new connection arrives it is not able to read from there means not able to register the new connection and that;s why not creating new channel for the new connection..
    I have tried to use different selector but at reading time it open so many umnecessary port at server side..
    to escape from this i have used same selector also at reading time but in this case i found no connection problem..
    i read API for selector in that they have mentioned that
    Selectors are themselves safe for use by multiple concurrent threads; their key sets, however, are not.
    Is this the case which interrupt me to go ahead in my application...
    how can i resolve this application...
    please help me out...

    Here in my application for socket channel connection I have taken one selector.
    sel = Selector.open();
    SelectionKey acceptKey = server.register(sel, SelectionKey.OP_ACCEPT );
    while(acceptKey.selector().select( ) > 0 )
    //here using iterator we manage new connection as well as read and write from
    //particular channel.
    This I have written in the run method of a Thread..
    Now at the same time another thread also using this selector for selecting channel from the selector to read and write...
    selector=sel;
    SelectionKey sel_KEY= client.register(selector, SelectionKey.OP_READ);
    while (sel_KEY.selector().select() > 0)
    // read from the channel...
    Now this thing not create problem until new connection is come for the same connection which is done by the first thread..
    using the same selector in both thread stopping to accept new connection..
    if i try to use different selector for second thread than it will create some extra
    ports on server side...
    what is the reason..when i see the api for selector there is written that ,selector can be used by multiple thread but key set can not...
    is this the problem????????
    please help me out....

  • I want to go back to the previous 2014.2 version.  .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    2014 .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    You didn't mention what error(s) you've encountered? A workaround for the most commonly hit problem is here Re: error in Muse : Object UID:U6875 has two (or more) owners: U3633 and U3165
    If you have a copy of your .muse file that has not been saved using 2014.3, you can downgrade by uninstalling Muse and then choose Previous Version in the Filters drop down in the Apps panel of the Creative Cloud desktop app. There will be a popup next to Muse where you can select a prior version to install.

  • When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on running javascript

    When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on executing javascript and raising errors.

    What are the error messages you are seeing?

  • HT1386 I replaced my iPad and now don't see the iPad backup in iTunes.  Any advice?  Should I use my latest iPhone backup or will that create problems?

    I swapped out my broken iPad for a new one, and went to sync in iTunes and only see my iPhone backups.  Should I use those to back it up (most of the apps are the same across both, and same with the email, calendar, and contacts settings).  Will that create problems if I use the same backup for two devices?  Thanks!

    No it will not create problems but if the iPad that you got is running an iOS less than what you are running on the iPhone, you will have to update the iPad first, before you can restore from the phone backup. You can't use the backup of a newer iOS on a device running an older iOS without updating the device first.

  • I wish to rename my drive letter & not create problems

    I had an SSD installed on my PC.  The SSD is 'C' & kept for programs only. The other drive  letters I have currently got displayed don't make much sense.I started with CD burner & Blu-ray burner & got them away from my own files by changing the drive letters to Y & Z.   A USB drive which is red in color is not R drive.
    I want to give the drive that has all of my music files & its catalog data another letter.  I want to do this without having problem with file associations etc.  How is this done without creating problems?  My photos are also on this drive but I know that I can just direct that program to its catalog location.
    Since an SSD is fast enough it apparently doesn't need to be indexed.  What I have done is plugged a couple of my external drives into the PC & had Windows index every drive except 'C'.  I don't know is indexing will automatically updated the index to reflect the new drive letter for my music files but it It doesn't I'll ask for it to be done again.
    Thanks in advance

    Just before I did this I when I opened iTunes I got the message that said that I must have changed by burner or something to the effect & that I had to re install the program.
    I held of doing this because I wanted to change the drive letter first.  This I did & that appears to have worked.
    I hadn't made any changes to DVD burning software.  I did see that there was a new 64 bit version available so I downloaded & installed it.
    The next time I opened the program I got the same message that I needed to re install the program.  When I went to tell it where the library.itl I must have directed it to the wrong library as it asked me again about my account details & wanted my credit cards details.  Only after I give this information did I find that the library that I had nominated was in fact the account for my wife's iPad.
    So now I have 2 major problems firstly I'm linked to my wife's account where it displays the few things she purchased.  My library was make up 100% from all of my old CD's that I had ripped. nothing else.  How do I connect to the other library.itl file?
    The second problem is that even though I downloaded & & installed a new version of iTunes I'm getting the message that I need to reinstall because my burning software has changed & it hasn't.  How do I get past these problems?
    Thanks in advance

  • Hi, I have a macbook pro 17" 2.4ghz intel core 2 duo 2007, will upgrading to Yosemite slow me down or create problems with my Iphone or other app ?

    Hi, I have a macbook pro 17" 2.4ghz intel core 2 duo 2007, will upgrading to Yosemite slow me down or create problems with my Iphone or other app ?

    Yes, i do not suggest upgrading right now. There is some software malfunction or glitch that spontaneously shuts down this specific model. I upgraded and it was a pain to downgrade and make my mac usable again.

  • Can 119 phantom asslys at one bom level  create problem in product costing

    I am going through a scenario where there r 119 phantom assemlies at one bom level. Can this create problem in product costing? It has been told to me by somebody that there can not be more than 99 phantom asslys at one level of bom? Is that true? My problem is that when i am doing product costing it is showing error-" too many dummies at bom level". Is this related to no. of phantom asslys at one bom level?

    HI bala,
    all the materials are costing relevent. I thik this problem is releteted with no. of phantom assemlies allowed at one bom level.
    I had 119 phantom assemlies at bom level 3 of a varient material. At that time it gives me abap runtime error during product costing.
    Now I have removed special procurment key 50 from material master of 20 number of phantom asslys. so now there r now 99 phantom assemlies at bom level 3.
    I have taken costing run and its not giving error.
    so i reached to conclusion that statndard limit of no. of phantom assemlies at one bom level can not exeed 99.
    Now customer requires 119 phantom assleys at this level 3 of bom.
    So can u suggest me whether i should contact sap to increase this limit for this perticular case?
    will they solve my problem or there is any other solution to this?
    please reply.
    nitin

  • Finding association rule (creating problem)

    sir i m working on xquery for finding assocation rule using xquery i complete the conding for how i write xquery for that. but now i found a problem that they give me error that _"Unexpected token "declare function" beyond end of query_" i send me coding part for u plz help me out for how i do.........i m using oxygen xml developer for running the xquery my simple query running proper but we use more than one function in recursive manner they create problem give error Unexpected token "declare function" beyond end of query.
    (: You can activate the content completion by pressing the Ctrl+Space keys. :)
    xquery version "1.0";
    (: Namespace for the <oXygen/> custom functions and variables :)
    declare namespace oxy="http://www.oxygenxml.com/xquery/functions";
    declare namespace global="http://www.oxygenxml.com/xquery/functions";
    (: The URI of the document that is to be queried :)
    declare variable $oxy:document-uri as xs:string := "transaction.xml";
    declare variable $oxy:document-to-query as xs:string := "transaction.xml";
    declare variable $local:document-to-query as xs:string := "transaction.xml";
    declare variable $oxy:document as document-node() := doc($oxy:document-uri);
    let $src := doc("transaction.xml")//items
    let $minsup:=2
    let $total:=count($src)*1.00
    let $c:=distinct-values($src/*)
    let $l:=(for $itemset in $c
    let $items:=(for $item in $src/*
    where $itemset=$item
    return $item)
    let $sup:=(count($items)+1)
    where $sup>=$minsup
    return <largeItemset>
    <items> {$items} </items>
    <support> {$sup} </support>
    </largeItemset>)
    let $L:=$l
    return <largeItemsets>{oxyl:FP-growth($l,$L,$minsup,$total,$src)}
    </largeItemsets>
    _/////that part is fine but we we use next fp-growth function they give same error
    plz sir help me for solving this////*
    declare function oxy:FP-growth(element $l, element $L, element $minsup, element $total, element $src)
    returns element {
    let $f-item:= first item in $L
    let $l-item:= last item in $L
    let $T:=oxy:getl-itemsets($src, $total, $minsup)
    return <items>
    {oxy:join ($l-item, $T)}
    </items>
    let $l:=$l-items
    let $L:=oxy:remove($l)
    for f-item in $L
    where $f-item != $l-item
    return oxy:FP-growth($l, $L, $minsup, $total, $src)
    declare function oxy:getl-itemsets(element $src, element $total, element $minsup)
    returns element {
    let $l:=(for $itemset in $src
    where $itemset=$l-item
    return $itemset)
    let $sup:=(count($l)+1
    where $sup>=$minsup
    return <largeItemset>
    <items> {$item} </items>
    <support> {$sup} </support>
    </largeItemset>
    declare function oxy:join(element $X, element $Y) returns element {
    let $items := (for $item in $Y
    where every $i in $X satisfies
    $i != $item
    return $item)
    return $X union $items
    declare function oxy:removeDuplicate(element $C) returns element
    for $itemset1 in $C
    let $items1 := $itemset1/*
    let $items :=(for $itemset2 in $C
    let $items2 := $itemset2/*
    where $itemset2>>$itemset1 and
    count($items1) =
    count(commonIts($items1, $items2))
    return $items2)
    where count($items) = 0
    return $itemset1
    input file for this xquery is:=
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/css" href="personal-schema.css"?>
    <transactions>
    <transaction id="1">
    <items>
    <title>The Green Mile</title>
    <author>Stephen King</author>
    <item>a</item>
    <item>d</item>
    <item>e</item>
    </items>
    </transaction>
    <transaction id="2">
    <items>
    <title>The Green Mile</title>
    <author>J. D. Salinger</author>
    <item>b</item>
    <item>c</item>
    <item>d</item>
    </items>
    </transaction>
    <transaction id="3">
    <items>
    <title>The Green Mile</title>
    <author>Issac Asimov</author>
    <item>a</item>
    <item>c</item>
    <item>e</item>
    </items>
    </transaction>
    <transaction id="4">
    <items>
    <title>The Green Mile</title>
    <author>Isaac Asimov</author>
    <item>b</item>
    <item>c</item>
    <item>d</item>
    </items>
    </transaction>
    <transaction id="5">
    <items>
    <title>The Green Mile</title>
    <author>Oscar Wilde</author>
    <item>a</item>
    <item>b</item>
    </items>
    </transaction>
    </transactions>
    Edited by: 920412 on Mar 12, 2012 11:26 PM
    Edited by: 920412 on Mar 14, 2012 10:57 PM
    Edited by: 920412 on Mar 14, 2012 11:17 PM

    thank u sir my code is running
    but there is one problem the result he regerate is not correct sir
    i send the complete information to u my input file my project code my output file and my actual output that i need ......plz sir chek it where is he logical mistak in code i completely chek lots of time i m not able to find where is the logical mistak plz sir help me
    input file "transactions.xml"
    <?xml version="1.0" standalone="yes"?>
    <transactions>
    <transaction id="1">
    <items>
    <item>a</item>
    <item>d</item>
    <item>e</item>
    </items>
    </transaction>
    <transaction id="2">
    <items>
    <item>b</item>
    <item>c</item>
    <item>d</item>
    </items>
    </transaction>
    <transaction id="3">
    <items>
    <item>a</item>
    <item>c</item>
    <item>e</item>
    </items>
    </transaction>
    <transaction id="4">
    <items>
    <item>b</item>
    <item>c</item>
    <item>d</item>
    </items>
    </transaction>
    <transaction id="5">
    <items>
    <item>a</item>
    <item>b</item>
    </items>
    </transaction>
    </transactions>
    coding :=
    xquery version "1.0";
    declare namespace local = "http://www.w3.org/2003/11/xpath-local-functions";
    declare function local:join($X as element()*, $Y as element()*) as element()* {
    let $items := (for $item in $Y
    where every $i in $X satisfies
    $i != $item
    return $item)
    return $X union $items
    declare function local:commonIts($X as element()*, $Y as element()*) as element()* {
    for $item in $X
    where some $i in $Y satisfies $i = $item
    return $item
    declare function local:removeIts($X as element()*, $Y as element()*) as element()* {
    for $item in $X
    where every $i in $Y satisfies $i != $item
    return $item
    declare function local:candidateGen($l as element()*) as element()* {
    for $freqSet1 in $l
    let $items1 := $freqSet1//items/*
    for $freqSet2 in $l
    let $items2 := $freqSet2//items/*
    where $freqSet2 >> $freqSet1 and
    count($items1)+1 = count($items1 union $items2)
    and local:prune(local:join($items1,$items2), $l)
    return
    <items>{local:join($items1,$items2)}</items>
    declare function local:prune($X as element()*, $Y as element()*) as xs:boolean
    every $item in $X satisfies
    some $items in $Y//items satisfies
    count(local:commonIts(local:removeIts($X,$item),$items/*))
    = count($X) - 1
    declare function local:removeDuplicate($C as element()*) as element()*
    for $itemset1 in $C
    let $items1 := $itemset1/*
    let $items :=(for $itemset2 in $C
    let $items2 := $itemset2/*
    where $itemset2>>$itemset1 and
    count($items1) =
    count(local:commonIts($items1, $items2))
    return $items2)
    where count($items) = 0
    return $itemset1
    declare function local:getLargeItemsets($C as element()*, $minsup as xs:decimal, $total as xs:decimal, $src as element()*) as element()*
    for $items in $C
    let $trans := (for $tran in $src
    where every $item1 in $items/* satisfies
    some $item2 in $tran/*
    satisfies $item1 = $item2
    return $tran)
    let $sup := (count($trans) * 1.00) div $total
    where $sup >= $minsup
    return <largeItemset> {$items}
    <support> {$sup} </support>
    </largeItemset>
    declare function local:fp-growth($l as element()*, $L as element()*, $minsup as xs:decimal, $total as xs:decimal, $src as element()*) as element()*
    let $C := local:removeDuplicate(local:candidateGen($l))
    let $l := local:getLargeItemsets($C, $minsup, $total, $src)
    let $L := $l union $L
    return if (empty($l)) then
    $L
    else
    local:fp-growth($l, $L, $minsup, $total, $src)
    let $src := doc("transactions.xml")//items
    let $minsup := 0.5
    let $total := count($src) * 1.00
    let $C := distinct-values($src/*)
    let $l :=(for $itemset in $C
    let $items := (for $item in $src/*
    where $itemset = $item
    return $item)
    let $sup := (count($items) * 1.00) div $total
    where $sup >= $minsup
    return <largeItemset>
    <items> {$itemset} </items>
    <support> {$sup} </support>
    </largeItemset>)
    let $L := $l
    return <largeItemsets> { local:fp-growth($l, $L,$minsup, $total, $src) }
    </largeItemsets>
    output that is get for running the query:=
    <?xml version="1.0" encoding="UTF-8"?>
    <largeItemsets>
    <largeItemset>
    <items>a</items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <items>d</items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <items>b</items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <items>c</items>
    <support>0.6</support>
    </largeItemset>
    </largeItemsets>
    but sir i want my output like that:=
    <?xml version="1.0" standalone="yes"?>
    <largeItemsets>
    <largeItemset>
    <Items>
    <item>a</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>d</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>b</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>c</item>
    </Items>
    <support>0.6</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>d</item>
    <item>b</item>
    </Items>
    <support>0.4</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>b</item>
    <item>c</item>
    </Items>
    <support>0.4</support>
    </largeItemset>
    <largeItemset>
    <Items>
    <item>d</item>
    <item>c</item>
    <item>b</item>
    </Items>
    <support>0.4</support>
    </largeItemset>
    </largeItemsets>
    sir i want that out which i shown last help me sir how i sort out this problem
    thank i advance

  • Printer Dialog Box through SDK creating problem

    Hello Experts,
    I have created a addon for printing Invoice Report in which i have given the option of Printer Dialog Box .
    Through sdk i have called that printer dialog box in the addon .It's running well in the server showing the Printer Dialog Box
    but while running the addon in client machine first two to three times printer dialog box appears after that while pressing the
    print button of my addon form Printer dialog box is not appearing .
    Then after restarting the machine Printer dialog box shows which is creating problem for the client use .
    Suggest the right way to sort out the problem .
    If anyone need to see the code which i have written i can post that code.
    Thanks
    Amit

    Hello Janos,
    Following code i have write for prrinter dialog box to open
    Public Sub ShowPrintDialogBrowser()
    Dim MyProcs() As System.Diagnostics.Process
    FileName = ""
    Dim PrintFile As New PrintDialog
    Try
    PrintFile.AllowSelection = True
    PrintFile.ShowNetwork = True
    MyProcs = Process.GetProcessesByName("SAP Business One")
    Dim UserName = Environment.UserName
                 For i As Integer = 0 To UBound(MyProcs)
                    If GetProcessUserName(MyProcs(i)) = UserName Then
                        GoTo NEXT_STEP
                    End If
                Next
                sbo_application.MessageBox("Unable to determine Running processes by UserName!")
                GC.Collect()
                Exit Sub
    NEXT_STEP:
    For i As Integer = 0 To MyProcs.Length - 1
    Dim MyWindow As New WindowWrapper(MyProcs(i).MainWindowHandle)
    Dim ret As DialogResult = PrintFile.ShowDialog(MyWindow)
    If ret = DialogResult.OK Then
    File_Directory = PrintFile.PrinterSettings.PrinterName
    PrintFile.Dispose()
    ElseIf ret = DialogResult.Cancel Then
    File_Directory = ""
    System.Windows.Forms.Application.ExitThread()
    Else
    File_Directory = ""
    System.Windows.Forms.Application.ExitThread()
    End If
    Next
    End If
    Catch ex As Exception
    SBO_Application.MessageBox(ex.Message)
    FileName = PrintFile.PrinterSettings.PrinterName
    Finally
    PrintFile.Dispose()
    End Try
    End Sub
    Imports System.Management
    Private Function GetProcessUserName(ByVal Process As Process) As String
            Dim sq As New ObjectQuery("Select * from Win32_Process Where ProcessID = '" & Process.Id & "'")
            Dim searcher As New ManagementObjectSearcher(sq)
            If searcher.Get.Count = 0 Then Return Nothing
            For Each oReturn As ManagementObject In searcher.Get
                Dim o As String() = New String(1) {}
                'Invoke the method and populate the o var with the user name and domain                        
                oReturn.InvokeMethod("GetOwner", DirectCast(o, Object()))
                Return o(0)
            Next
        End Function
    Regards,
    Amit

  • Master /Detail create problem

    hi,everyone:
    Firstly to say sorry for my bad English.
    Now I have a question:
    I'm working in JDeveloper 10.1.3 .The model layer is SessionEJB /Toplink ,and the view layer is JSF. I have a data structure :
    HrUnit : Master
    HrHuman : detail
    HrKnowledge : detail
    the <HrHuman>'s PRIMARYKEY is <ID>,and the <HrKnowledge>'s FOREIGN KEY is <RYID>.
    and I want to make a page to insert a new row on <HrKnowledge>. I drag the <hrKnowledgeCollectionIterator> into the page as <ADF Creation Form>, the page run fine.
    next step, I make <persistEntity> binding to the <submit button> and the parameters(entity) is
    ${bindings.hrKnowledgeCollectionIterator.currentRow.dataProvider}.
    when i run the page , i get a wrong . i get the SQL in the <Unit of work > is
    "INSERT INTO HrUnit ....."
    i create a direct mapping for the detail's foreginkey in toplink,and when i "rebuild" the map ,it gives me a warning. This warning affect my custom code in EJB,it can't work correctly. So i can't use this way in my question.
    Re: Master /Detail  create problem
    I beg your help.
    Thanks. and very very thanks.

    Hi,
    I am not an expert in TopLink, but it appears to me that the TopLink model is causes your problems not ADF. There is a TopLink forum here on OTN that could give you a helping hand on this issue.
    The following tutorial explains the use of TopLink in ADF
    http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_adftoplink/master-detail-edit_page_adf_toplink.htm
    Frank

  • When i make my fire fox off if not ask me to save my exis tab , then i have to make all the off , its creat problem

    when i make my fire fox off if not ask me to save my exist tab , then i have to make all the off , its create problem. I am not able to pause my work.

    Yes.
    Did you before "purchase" a free app and then make in-app purchases.? Many free apps have in-app purchases the cost money. Did you pursue with iTunes the "unauthorized" purchases that you sad you did not make?
    Contact iTunes

  • Is ios8 creating problem in iphone 4s like hanging and speed slow

    Is ios8 creating problem in iphone 4s like hanging and speed slow

    Abisawave wrote:
    what's interesting, is that before the phone was purchased, literally everything was replaced, and in the back camera, instead of it just being black, it has a green tint.. although why is it showing up on my iphone.. and on my front facing camera.. which does not have a green tint to it?
    Does it need a trip to the Apple Store?
    Where did you get all of this work done on the phone? If you did not have it serviced by Apple, taking it to an Apple store will not do you any good if was opened by anyone else but Apple. They will no longer service the device, even for out of warranty replacement.
    It does seem to me however, that the camera sounds like it is failing.

Maybe you are looking for