The pacman 3.5 thread (merged threads)
Today "pacman -Syu" offered to upgrade pacman, but failed with a dependency error ":: perl-xyne-arch: requires pacman<3.5".
pacman 3.4.3-1 is installed from [base] and was trying to upgrade to 3.5.0-1 from [testing].
perl-xyne-arch 2011.02.06.1-2 is installed from [community]
Haven't found anything by searching - is this really a bug, or do I have a configuration issue?
Thanks for any hints.
Jack
# Edit: all of the related threads have been merged here...
Last edited by jasonwryan (2011-03-26 05:24:54)
Folks I'm on the same problem as you.
Do you want to remove these packages? [Y/n] y
(1/1) removing yaourt [################################################] 100%
[root@isengard imanewbie]# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: package-query: requires pacman<3.5
[root@isengard imanewbie]# pacman -S yaourt
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: package-query: requires pacman<3.5
[root@isengard imanewbie]# pacman -S yaourt
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] n
error: 'yaourt': could not find or read package
[root@isengard imanewbie]# pacman -S yaourt
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] n
error: 'yaourt': could not find or read package
[root@isengard imanewbie]# pacman -S yaourt
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: package-query: requires pacman<3.5
And now I cant re-install yaourt (no major fuzz I dont plan to install anything new for now). But I'm afraid of removing package-query and mangle my system. What should I do from now?
Similar Messages
-
Need to Return immediately and commit the App Module on a different thread
I have an action that I want to return fast (immediately) but the server processing takes longer than acceptable. The results of the operation don't matter to the page submitting it and I want it to be able to navigate away even if the operation is not complete. I want to either be able to send a non-blocking server event from the browser or on the server side start a new thread that performs the operation allowing the original thread to return immediately. The new thread would need access to an Application Module in order to commit data. How would I go about accomplishing this?
Some thoughts
I've tried creating a ConcurrentLinkedQueue and putting the DataControl on the que, then in the other thread I pull it off the que, process and commit the data. This works unless the page is navigated away from. Then calling dc.getApplicationModule(); returns null.
I thought about using createRootApplicationModule in the new thread (since the new thread has no context) but don't know how that would work
This is the code in the run method of the new thread. In this example, I'm adding data to the app module in the original thread and committing the data in a new thread.
(like I said, it works most of the time.)
Object[] req = (Object[])que.poll();
DCDataControl dc = (DCDataControl)req[0];
try{
ApplicationModule am = dc.getApplicationModule();
if (am != null){
am.getTransaction().commit();
} else{
System.out.println("AM:null unable to commit ");
} catch (Exception e){
e.printStackTrace();
finally{
if (dc!= null){ dc.resetState();} // release app module
}Thanks for the replies. I am aware of the inherent risks of running a separate thread within a managed container.
The use case is a performance logging operation. We have a internal web app used by a network of franchises with over 1000 users. We log response time and performances statistics to the database. When the user clicks to navigate or commit data, the response time that the user experiences is logged after the page has fully rendered either through a PPR or a full submit. This is done by submitting ADFCustomEvent from javascript on the page after rendering is complete.. The event sends up the time difference from when the user first clicked to when the page was fully rendered. This information is then merged with logged events stored on the users Session that shows the name and response time of every query that was executed during the previous request. Depending on the page this could be up to half dozen to a dozen or more queries. The logging operation as experienced by the browser is generally fast (<200ms) but sometimes can be as long as a second or more when the database gets busy. A half second is too long as makes the app appear sluggish if the user can't type or click immediately after the page has finished rendering. The logged data is aggregated so we know exactly how much of the page load was due to a slow browser/network, how much was database time, webservice call time, etc... If it's due to a slow database we can drill down and see which query is the culprit. These performance metrics are critical to operations and are charted throughout the day so we know exactly what our users are experiencing. All of our users use a custom firefox client that we control. Using this logging framework we were able to determine that upgrading to a Firefox 4.0 based client cut browser render time by more than half a second on average. We can also tell what type of hardware the user is running so can place the blame for poor performance where appropriate. We have determined that pages render considerably faster on Windows 7 than on Windows 98 with the same hardware. We are moving the logging tables off of our exadata database to a separate box to remove that load from the application database. Since we expect the other database not to perform as well we don't want it to affect the user experience, hence the need to log asynchronously. I would like to put the data on a queue and have a background daemon process read from the queue and commit to the database. I would like the daemon thread to be able to use BC components. I would prefer not to resort to using a web service because of the inherent overhead. The logging operation is not a long operation but is of high frequency so should be as streamlined as possible. The load is spread over 6 servers with 4 JVM's each (24 weblogic instances). I know it's possible to use BC components from a plain Servlet (which runs on it's own thread) so what I want is to have something like a servlet thread that loops forever processing my logging queue.
One other method I am investigating is using my own non-blocking ajax call that callls a servlet to perform the logging. I will need to pull out the timestamp contained within a client side ADF component along with the pages ctrl-state variable that is included with every ADF request as it uses this as the key to get to the data on the session. ADF really needs a non-blocking ADFCustomEvent for this type of request. (send and don't care about the response)
The client component with the server listener looks like this
<af:outputText value="#{pageFlowScope.perfClientTS}" visible="false"
id="perfClientTSField" clientComponent="true">
<af:serverListener type="logPerfData" method="#{perfLog.logPerfDataAction}"/>
</af:outputText>
The script that queues the ajax call after the page loads looks like this
AdfCustomEvent.queue(perfClientTSField, "logPerfData", {
typeId : typeId,
subTypeId : subTypeId,
responseTime1 : new String(responseTime1),
responseTime2 : new String(responseTime2),
openedVia: via
true);
I also tried calling the noResponseExpected() method on the event before queuing it but it still blocked the UI and caused an additional side effect in that the client sent two ajax requests instead of one. It somehow thought something on the client side needed to be synced with the server.
email me and I can send a doc with more details about how our performance logging framework works.
Edited by: Don Kleppinger on Mar 14, 2012 2:52 PM -
How can I have the most recent message in a thread shown first and not last
Thunderbird (used in conjunction with Gmail - I believe the term is mail client) message threads commence with the oldest; how can I make Thunderbird messages commence with the latest message?
How do I get around this?
'''Workaround:'''
Right Click on the first email in thread and choose:
'open message in Conversation'
This open in a new tab and will include all emails both received and sent by you in that conversation.
It will appear just like the oiginal view with oldest on top.
Then click on the thread icon to remove the 'threaded' view.
in my case the list is then sorted by Date with newest on top. So easily identifying the newest email.
But if required you could clickon Date column header.
Additional:
Note: If the new email in the thread is unread:
View > Threads > Threads with unread
This will produce a list of the received emails in the thread
If you then remove the threaded view by clicking on the thread column header, it will list emails by Date in whatever order you desire.
Unfortunately, this only works with an unread email, so once you have read that email you cannot easily do this again to locate the email in the conversation unless you use the Workaround previously described. -
What is the max. count of internal worker-threads in B1iSN 88?
Hi Experts,
We have an installation of B1iSN 88 with an ECC 6.0 and 54 SAP Business One installation. The Hardware is 8 Core multi-threads processor. 32GB Memory. Now we have a problem with the queuing of Events. What we have found is that the configuration of the internal worker-threads is set to -1(please see below for the settings). We change the settings to xcl.threads=20 and it improves the queuing. My question is what is the max. count of internal worker-threads per core? so that we can know how many worker will set and if we need to upgrade the CPU to 16 Core..
# The max. count of internal worker-threads afforded for the internal Scheduler (defaults to 1)
# The value of 0 means that there is no limit (what in general should not be set up).
# A negative value means the count of threads per available processor
xcl.threads=-1
Regards,
WilsonYou're very welcome.
Yes, they are very nice machines.
What a jump in performance when I swapped out the Pentium 4 620 mine had, for the PD 945, and tossed in 4 GB of memory.
That box will also run the Radeon HD 6570 with no problem too, which is what I put in mine.
The downside of that model is that there are no settings for ahci or raid.
I own or have owned every CMT since the d510 with the exception of the dc7900.
My main PC is now the 8200 Elite CMT which I installed W8.1 on.
It has an i7-2600 processor and 32 GB of memory, 1 TB SATA III hard drive.
I threw in a Radeon HD 6670 in that one.
Best Regards,
Paul -
Why are the Apple mods deleting and locking threads?
I would like an answer as to why the mods are deleting and locking threads that have to do with the error that pervasive in the iPod 1.1 upgrade. It seems that Apple will not acknowledge it but some of us are trying to find an answer and Apple locks the thread and deletes another one. As paying customers, Apple should realize that it is us who keeps the lights on in Cupertino. I think a bit more respect to the paying customer is in order here.
Just post your questions and replies in a calm and concise way Don and follow the guidelines within the Terms of Use;-):
http://discussions.apple.com/help.jspa#adua
Contrary to any belief you may have I can assure you that there are no attempts of covering up any alleged bugs in software or anything else in these fora.
Here's a reframe to your original question - The fact that the thread was locked means that the Hosts have seen the thread. It is reasonable therefore to conclude that they would have allerted the relevant people of the issue and referred them to that thread. -
The official 'Looking for PSN Friends' thread.
The official 'Looking for PSN Friends' thread
Hi all!
I thought it was about time we had an official thread for people who are looking for PSN friends as they seem to pop up quite frequently and it's nice to keep it all in one place!
It's also a handy place for any newcomers to introduce themselves to the community!
To take part is very simple, all you need to do is post:
Your PSN ID
A little bit about yourself
Games you play regularly
Days & Hours you game
Platforms Owned
Fellow forumers can then reply asking if they can add you, remember to mention this thread when submitting a friend request as no-one likes blank requests
I'll start the ball rolling...
PSN ID: Envisager
About me: Community Manager for SCEE, Ex MVP and long time forumer, Lover of music (ex DJ)
Games I play regularly: FIFA 13, Black Ops 2, Far Cry 3 (PS3)
Days & Hours of gaming: Most evenings after 7pm and weekends during the day.
Platforms Owned: PS3 & PS Vita
Hey folks, how you doing? My name is Chris, 26 from Glasgow. I was a very keen gamer at a young age, heavily into my Sega mega Drive and Super Nintendo, i then didnt play much until Sega Dreamcast where I became obsessed with the likes of Shenmue, Jet Set Radio, Skies of Arcadia, i then followed up with a Playstation 2 where I played Final Fantasy 10, Tomb Raider, Reisdent Evil, I also had a Nintendo Gamecube and liked the platformers like Super Mario Sunshine, Zelda, Sonic, Super Monkey Ball, I then drifted off gaming for some reason, mainly lifestyle was more interested in going out being a student etc. I have been hooked back in as I got a Playstation 3 for Christmas, very late I know 7 years oops oh well Im hoping to get a good 2/3 years off this as I have such a back catalouge to play with and PS4 probs wont get going for a year or so and I wont pay launch prices. I have an ecletic taste but I prefer action/adventure, rpgs, platformers a little kiddish I know but its a lot of fun, I prefer more problem solving games but do like instant fix racing games. My PS3 collection (games i got for xmas) is Uncharted 3 (my fave, completed it already but will go back to get Trophys, will be checking out the other 2, love a good story) Final Fantasy 13 i think? Only played an hour of that but might do some of that tonight. Sonic Generations which is what I would say I play when I dont want something too hard, Gran Turismo which is really fun but I know nothing about cars so I only find it semi interesting, Resident Evil 6 which I have played an hour or so off, its still to grip me, I was a huge fan of Code veronica on Dreamcast and Res 4 on Gamecube but this isnt as good for me...yet. And the Tomb Raider trilogy which I love, but I still prefer the original games by Core Design. So please add me folks as I have no online friends, i will be getting more into the online RPG thing in the near future, people have recommended Skyrim to me if you can think of any I would like please give me a shout. I consider myself to be a good gamer, competitive but perhaps a little rusty as i have been out the scene a while. get adding parsonageflat5 bye for now
-
What happened to the Leopard on Powerbooks so far thread ???
What happened to the Leopard on Powerbooks so far thread ???
Where did it go ? Even my post is missing.Well, I can tell you what happened with my neighbors - a complete and utter disaster. It just won't install. I went so far as to reinstall Panther for her (so she can have a working computer) and then try to archive and install. Failed. There's a post about it in the 10.5 forum/installation and set up. It really *****. I don't know what else to do. She's supposed to pay for a license and now, if she doesn't, I'm left holding one with nowhere to put it. Maybe I can just sell it.
This is not cool for Apple. I don't know what they didn't do right, but it ***** and is very disappointing. It's worse because I'm up and running with it on my MacBook so I feel bad for her. -
What happened to the Giant DSR-11 Timecode out thread
What happened to the Giant DSR-11 Timecode out thread? The one about using simple video out to stripe the tape.
people keep asking me how to do it, and I'd love to just send them a link to that thread, but can't find it when I search for it. Anyone have the link?
thanks, timNaa, props like the kind that hold me up when I've had too much to drink.
Or maybe the props that make the plane go.
Or maybe I should have said "mad props."
http://www.randomhouse.com/wotd/index.pperl?date=20010213 -
What is the correct way to destory a Thread?
Just wondering what is the correct way to destroy a thread? I am currently using the stop() method, but i noticed that it has been depreciated (along with other methods used to destroy a thread) when i looked at the thread documentation. Since this is so, then how can one correctly destroy a thread? Thanks in advance for the help.
There is an awful lot of bad advice in this thread about what null does. Please in future check on your own with working code before offering up misguided and very wrong advice. Particularly when your advice contradicts that previously given.
Please compile and run the following
public class Test implements Runnable{
public static void main(String args[])throws Exception{
Test test = new Test();
Thread t= new Thread(test);
t.start();
// have delay wait a few seconds to demonstrate
Thread.sleep(3000);
System.out.println("Setting reference to thread to null");
t = null; // what does this do?
// jack all
System.out.println("Exiting main");
public void run(){
while(true){
System.out.println("Hello from test thread!");
try{ Thread.sleep(750); }catch(InterruptedException iDontCareAboutThis){}
}This will output the following
C:\>java Test
Hello from test thread!
Hello from test thread!
Hello from test thread!
Hello from test thread!
Setting reference to thread to null
Exiting main
Hello from test thread!
Hello from test thread!
Hello from test thread!
Hello from test thread!
Hello from test thread!
Hello from test thread!And continues on endlessly. Setting the reference to null is NOT an answer to this problem. -
Running the TSQCallback function in a different thread?
Hi,
I am looking at the example code directPtrAccess.c where the TSQcallback function is set to be executed in the same thread that generates the data. However, in application, I would like to run the call back function in a separate thread.
I would greatly appreciate if some one can clarify whether this is possible and if yes how it should be done?
Thanks!
SripadIn that example the TSQ callback is not executed in the generation thread: it is executed in the main thread instead.
The generation thread is unknown (the thread ID is not saved in any variable) but is it different from the main thread, which is the one that handles the user interface.
As you can see, the TSQ callbacl is installed receiving CmtGetCurrentThreadID() in Callback Thread ID; that is to say, it receives the ID of the main thread and executes there.This is a very common situation, where generation / acquisition of data and other tasks are executed in a separate thread and presentation of data and UI handling are executed in the main thread.
If you had previously created a different thread and saved its ID, you could pass it in this parameter and obtain the callback to run in that thread.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
JMS error- Exception in thread "Main Thread" java.lang.NoClassDefFoundError
Hi guys,
I am new to JMS programming and i'm have the following error...I have set up a simple weblogic server on my local machine and i am trying to send a message to a queue i've created on a JMS server. I am trying to manually run an example provided by BEA WebLogic... the code follows.
//package examples.jms.queue;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Hashtable;
import javax.jms.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
/** This example shows how to establish a connection
* and send messages to the JMS queue. The classes in this
* package operate on the same JMS queue. Run the classes together to
* witness messages being sent and received, and to browse the queue
* for messages. The class is used to send messages to the queue.
* @author Copyright (c) 1999-2006 by BEA Systems, Inc. All Rights Reserved.
public class QueueSend
// Defines the JNDI context factory.
public final static String JNDI_FACTORY="weblogic.jndi.WLInitialContextFactory";
// Defines the JMS context factory.
public final static String JMS_FACTORY="weblogic.examples.jms.QueueConnectionFactory";
// Defines the queue.
public final static String QUEUE="weblogic.examples.jms.exampleQueue";
private QueueConnectionFactory qconFactory;
private QueueConnection qcon;
private QueueSession qsession;
private QueueSender qsender;
private Queue queue;
private TextMessage msg;
* Creates all the necessary objects for sending
* messages to a JMS queue.
* @param ctx JNDI initial context
* @param queueName name of queue
* @exception NamingException if operation cannot be performed
* @exception JMSException if JMS fails to initialize due to internal error
public void init(Context ctx, String queueName)
throws NamingException, JMSException
qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
qcon = qconFactory.createQueueConnection();
qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queue = (Queue) ctx.lookup(queueName);
qsender = qsession.createSender(queue);
msg = qsession.createTextMessage();
qcon.start();
* Sends a message to a JMS queue.
* @param message message to be sent
* @exception JMSException if JMS fails to send message due to internal error
public void send(String message) throws JMSException {
msg.setText(message);
qsender.send(msg);
* Closes JMS objects.
* @exception JMSException if JMS fails to close objects due to internal error
public void close() throws JMSException {
qsender.close();
qsession.close();
qcon.close();
/** main() method.
* @param args WebLogic Server URL
* @exception Exception if operation fails
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.out.println("Usage: java examples.jms.queue.QueueSend WebLogicURL");
return;
System.out.println(args[0]);
InitialContext ic = getInitialContext(args[0]);
QueueSend qs = new QueueSend();
qs.init(ic, QUEUE);
readAndSend(qs);
qs.close();
private static void readAndSend(QueueSend qs)
throws IOException, JMSException
BufferedReader msgStream = new BufferedReader(new InputStreamReader(System.in));
String line=null;
boolean quitNow = false;
do {
System.out.print("Enter message (\"quit\" to quit): \n");
line = msgStream.readLine();
if (line != null && line.trim().length() != 0) {
qs.send(line);
System.out.println("JMS Message Sent: "+line+"\n");
quitNow = line.equalsIgnoreCase("quit");
} while (! quitNow);
private static InitialContext getInitialContext(String url)
throws NamingException
Hashtable<String,String> env = new Hashtable<String,String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
env.put(Context.PROVIDER_URL, url);
return new InitialContext(env);
}when i run the main method with args[0] = "t3://localhost:7001", i get the following errors:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at QueueSend.getInitialContext(QueueSend.java:122)
at QueueSend.main(QueueSend.java:91)
Could someone please help. thanks.when i run the main method with args[0] = "t3://localhost:7001", i get the following errors:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at QueueSend.getInitialContext(QueueSend.java:122)
at QueueSend.main(QueueSend.java:91)
Could someone please help. thanks.This is Java 101:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rtrb_classload_viewer.html
You've got to have the WebLogic JAR that contains the necessary .class files in your CLASSPATH when you run.
Don't use a CLASSPATH environment variable; use the -classpath option when you run.
% -
Exception in thread "JMF thread???
I try to write a very simple project which just play a local media in an Applet, although this example can be found in a lot of places, I met an Exception which kind of strange, Can anyone met this before? My Code is very simple.
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.*;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URL;
import javax.media.*;
import javax.swing.*;
public class test1 extends Applet{
URL url;
Player player=null;
public void init(){
setLayout( new BorderLayout() );
try {
URL mediaURL = new URL(getDocumentBase(), "A Perfect Indian.mp3");
System.out.println(mediaURL);
player = Manager.createRealizedPlayer(mediaURL);
}catch(Exception e){
System.out.println("problems here 1");
e.printStackTrace();
Exception in thread "JMF thread: com.sun.media.amovie.AMController@7c6768[ com.sun.media.amovie.AMController@7c6768 ] ( realizeThread)" java.lang.UnsatisfiedLinkError: com.sun.media.amovie.ActiveMovie.openFile(Ljava/lang/String;)Z
at com.sun.media.amovie.ActiveMovie.openFile(Native Method)
at com.sun.media.amovie.ActiveMovie.<init>(ActiveMovie.java:47)
at com.sun.media.amovie.AMController.createActiveMovie(AMController.java:293)
at com.sun.media.amovie.AMController.doRealize(AMController.java:416)
at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)An unsatisfied link error occurs when the JVM cannot find a class in a library that it was expecting to be able to find.
In this instance, it sounds like you (1) didn't include JMF.jar in your applet's classpath, and/or (2) didn't include the MP3 plugin to your applet's classpath... -
Hi,
I am trying to solve some issues and strange behaviour with an important workflow hooked up with an InfoPath 2010 list in SharePoint 2010. Everything worked fine until now.
One workflow item has ended prematurely with the workflow history messages "An error has occurred in workflowname" followed by some init text message I added, and finally "Could not start workflowname"
(not sure of the exact translation but something like that). Status is still "On Going" (again not sure of translation).
The workflows after this has gotten the status "Canceled" with no further error messages. However the first init text I added is visible in their workflow history but no other messages are displayed, neither my custom ones nor
the built in.
Please help me out, any hints or pointers to help debug this is very appreciated! I do not have other than "view" access so I will have to tell the IT-department to check logs and perform changes if needed.
/Jesper Wilfing
Edit: The IT guys sent me the error message from the log file:
Workflow Infrastructure 72fq
Unexpected Start Workflow: System.Threading.ThreadAbortException: Thread was being aborted.Hi,
Thank you for sharing and it will help others who meet the same issue.
Best regards,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Thread Problem - (Thread Blocking Problems?)
Hi Friends
In my program while using thread i found a problem in this code .
In this whlie running the 'msg' was printen only after all 5 inputs are given .
why i was not getting output after one input.why the thread out was waiting for remaining threads input.
my code is
import java.io.*;
class MyThread extends Thread
BufferedReader bin;
MyThread()
super();
start();
public void run()
try
bin=new BufferedReader(new InputStreamReader(System.in));
String msg=bin.readLine();
System.out.println(msg);
catch(IOException e)
System.out.println(e);
public class Threads
public static void main(String args[])
for(int i=0;i<5;i++)
new MyThread();
}Hi Friends
In my program while using thread i found a problem
em in this code .
In this whlie running the 'msg' was printen only
after all 5 inputs are given .
why i was not getting output after one input.why
hy the thread out was waiting for remaining threads
input.Probably because of how the scheduler was rotating among the threads while waiting for input and queueing up output.
When you call readLine, that thread blocks until a line is available. So it probably goes to the next thread's readLine, and so on. All threads are probably blocked waiting for input before you enter a single character.
Something inside the VM has to coordinate the interaction with the console, and between that and your threads, the out stuff just doesn't get a chance to display right away.
In general, you can't predict the order of execution of separate threads. -
Hi,
I have an application jar file which is run from a .sh file.
The application uses ridc api to checkin a document on UCM.
I have placed jars for supporting the application on the folder where we have kept the application jar
also we have mentioned the supporting jar file names in the Manifest.mf file of the application jar.
The necessary jar files which we have placed are:
com.lnt.ucm.integrationutility.ucm.Client
log4j-1.2.16.jar
oracle.ucm.ridc-11.1.1.jar
poi-2.5.1.jar
commons-codec-1.2.jar
commons-httpclient-3.1.jar
commons-logging-1.0.4.jar
mail.jar
jxl-2.6.10.jar
com.bea.core.antlr.runtime_2.7.7.jar
com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar
jrf.jar
org.eclipse.persistence_1.1.0.0_2-1.jar
weblogic.jar
wlfullclient.jar
wseeclient.jar
jaxws-rt-2.1.4.jar
we are getting below exception when we run the jar from the .sh file.
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/diagnostics/instrumentation/JoinPoint
at weblogic.wsee.jaxws.spi.WLSProvider.<clinit>(WLSProvider.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:31)
at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:90)
at javax.xml.ws.spi.Provider.provider(Provider.java:83)
at javax.xml.ws.Service.<init>(Service.java:56)
at com.abc.ucm.proxy.JDEUCMManagerService.<init>(JDEUCMManagerService.java:66)
at com.abc.ucm.integrationutility.ucm.Client.executeUtilty(Client.java:50)
at com.abc.ucm.integrationutility.ucm.Client.main(Client.java:540)
I'm not able to find any jar for weblogic/diagnostics/instrumentation/JoinPoint can you please tell me which jar needs to be added.
Regards,
Tejaswini L914897 wrote:
I encounter the similar error. Anyone knows how to fix it?By providing a configuration file which validates with the corresponding XSDs found in coherence.jar. Sorry, but can't point you to the specific issue without seeing the erroneous configuration file.
Best regards,
Robert
Maybe you are looking for
-
Driver program for Pallet label or Handling unit
Hi Friends, Could any one give me The standard driver program for Pallet label for Handling unit
-
Virus on ipad and iphone when i was abroad how to delete it
while i was abroad i have picked up what i think is a virus on my ipad mini and iphone 5 also another person in my hotel had same problem . When we are usinf safari it send us to a link ultrafiles.net ( linkbucks.com )everytime when try and open a n
-
Is it possible to display the size of a folder in a cell??
Hi, i would like to know if there is any way or function to assign to a cell for display for example the size of a folder on the hard drive..... so whenever the folder size is changing, the cell is updated...... another example, is to display the num
-
Basic Problem... Help PLZ!
hey ppl! hope yall doing alrite. im having trouble creating a movie clip, i gathered some pictures i edited in PS and imported them to flash CS3 Pro, created a frame by frame animation that runs on the stage when i hit "enter" but when i do the CTRL
-
iPhoto just froze so I Force Quit the iPhoto app and now I have lost half my (hundreds) of photos. How do I restore them?