Maximum number of joins in OpenSQL (java framework)
Hi,
I have a question on the restriction of the number of joins a OpenSQL can support??
I have searched in alot of places.. but the question remains unanswered....
Open SQL statements will work in any SAP R/3 System, regardless of the database system in use.... but does OpenSQl itself have any restrictions / maximum number of joins that it supports.
kindly need help on this ..
Regards,
Sana javeed
Edited by: Sana Javeed on Dec 6, 2011 5:02 AM
i found a link which refers to the maximum number of tables after the FROM clause of the OpenSQL Query ....
where it mentions : To ensure program portability, specify no more than 15 tables in a query, including the tables in the from list and tables in subqueries. (Individual host database management systems may allow more than 15 tables.)
[http://docs.actian.com/ingres/9.2/opensql-reference-guide/3802-osql-from-clause|http://docs.actian.com/ingres/9.2/opensql-reference-guide/3802-osql-from-clause]
Similar Messages
-
Maximum number of concurrent connections using java sockets
How can we find out the maximum number of concurrent connections that can be handled by a pooled connection server?
I have a pooled server which creates a predefined number of handlers. Upon receiving a new request it accepts the connection and sends it to one of the handler.
The solution works well for low number of concurrent connections - < 50 or 100
But as the number increases there seems to be an issue
1. Ignoring request even if i increase the handlers
2. Increase in delay. [I feel that the listening thread is not getting the time slice to go read the socket for new requests]
Any idea as to how i can solve this?
Would an NIO socket help [am using the conventional java.io Serversocket, because my clients may not be non-blocking]??
Any help would be appreciated.
AnpThere is no set maximum, but it is in the thousands on most platforms. I have a production server that handles tens of thousands of connections simultaneously. Most likely you have a bug in your code.
-
Maximum number of joins in SELECT statement
Dear friends,
Can you tell me, how many max number of joins (inner & outer) we can make in ABAP.
For eg:
table 1: A B C fields
table 2: C D E fields
table 3: E F G fileds..............
Thanks in advance for your valuable time.
Best regards,
Satishhi,
no limit for joins[inner or outer ] in a table , when we consider performance issue joins will reduce the performance of our program so go views instead of joins.
with cheers,
suresh babu aluri. -
When i run my web-application with the embedded OC4J server, the following error message is prompted:
java.lang.Exception: ORA-00020: maximum number of processes (150) exceeded
void MyFolder.objects.MyObject.<init>(oracle.jbo.ApplicationModule, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
void MyFolder.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
Question:
- What is the cause of this error message? How to avoid?
- I intended to deploy my application to 9IAS server. Will the same problem occurs too?
Thanks for your reply!Hi Pig,
When i run my web-application with the embedded OC4J server, the following error message is prompted:
java.lang.Exception: ORA-00020: maximum number of processes (150) exceeded
void MyFolder.objects.MyObject.<init>(oracle.jbo.ApplicationModule, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
void MyFolder.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
Question:
- What is the cause of this error message? How to avoid?.
From the Oracle error message documentation:
ORA-00020 maximum number of processes (string) exceeded
Cause: All process state objects are in use.
Action: Increase the value of the PROCESSES initialization parameter.
Another alternative approach may be to configure your Connection pool and/or your ApplicationModule pool to optimize the use of
database connections and/or restrict the number of database connections used by the application. For example, if your application
has declared many root ApplicationModules (i.e. more than one ApplicationModule pool is in use) then it may help to enable the
jbo.doconnectionpooling switch so that each ApplicationModule instance in the pools does not maintain a dedicated database
connection while not in use. Another alternative if you are using the BC4J connection pool (not a JDBC datasource) may be to
restrict the number of connections the pool can create to < 150 with the jbo.maxpoolsize switch. However, please note that this
may have an impact on throughput.
- I intended to deploy my application to 9IAS server. Will the same problem occurs too?.
This is a database issue. So, yes.
Hope this helps.
JR -
Java.lang.IllegalStateException: Exceeded maximum number of waiting threads
Hi all,
I use coherence3.3.1,coherence work as hibernate L2 cache and meet following problem,could you help me check the problem?thanks.
java.lang.IllegalStateException: Exceeded maximum number of waiting threads (Status=2)
at com.tangosol.net.cache.OverflowMap$Status.waitForAvailable(OverflowMap.java:4029)
at com.tangosol.net.cache.OverflowMap.prepareStatus(OverflowMap.java:2152)
at com.tangosol.net.cache.OverflowMap.beginKeyProcess(OverflowMap.java:1873)
at com.tangosol.net.cache.OverflowMap.getInternal(OverflowMap.java:580)
at com.tangosol.net.cache.OverflowMap.get(OverflowMap.java:330)
at com.tangosol.coherence.component.util.CacheHandler.getLease(CacheHandler.CDB:3)
at com.tangosol.coherence.component.util.CacheHandler.getCachedResource(CacheHandler.CDB:10)
at com.tangosol.coherence.component.util.CacheHandler.get(CacheHandler.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
at com.tangosol.coherence.hibernate.CoherenceCache.get(CoherenceCache.java:65)
at org.hibernate.cache.StandardQueryCache.get(StandardQueryCache.java:105)
at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2152)
at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2117)
at org.hibernate.loader.Loader.list(Loader.java:2087)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:289)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:150)
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:804)
jHi,
Can you please provide the relevant coherence config files?
thanks,
-Rob -
Maximum number of tables that can be outer joined with one table in a query
Hi All,
Iam new to sql, so can you please let me know What is the maximum number of tables that can be outer joined with one table in a query?
Thanks,
Srinisrinu2 wrote:
Iam new to sql, so can you please let me know What is the maximum number of tables that can be outer joined with one table in a query?
There is no limit to the number of tables you can outer join as long as you join them correctly.
SQL> with a as
2 (
3 select 1 id, 2 b_key, 3 c_key from dual union all
4 select 2 id, 1 b_key, 4 c_key from dual union all
5 select 3 id, 3 b_key, 1 c_key from dual union all
6 select 4 id, 4 b_key, 2 c_key from dual
7 ),
8 b as
9 (
10 select 1 id, 1 c_key2 from dual union all
11 select 2 id, 5 c_key2 from dual union all
12 select 3 id, 3 c_key2 from dual union all
13 select 4 id, 2 c_key2 from dual
14 ),
15 c as
16 (
17 select 1 key1, 1 key2, '1-1' dta from dual union all
18 select 1 key1, 2 key2, '1-2' dta from dual union all
19 select 1 key1, 3 key2, '1-3' dta from dual union all
20 select 1 key1, 4 key2, '1-4' dta from dual union all
21 select 2 key1, 1 key2, '2-1' dta from dual union all
22 select 2 key1, 2 key2, '2-2' dta from dual union all
23 select 2 key1, 3 key2, '2-3' dta from dual union all
24 select 2 key1, 4 key2, '2-4' dta from dual union all
25 select 3 key1, 1 key2, '3-1' dta from dual union all
26 select 3 key1, 2 key2, '3-2' dta from dual union all
27 select 3 key1, 3 key2, '3-3' dta from dual union all
28 select 3 key1, 4 key2, '3-4' dta from dual union all
29 select 4 key1, 1 key2, '4-1' dta from dual union all
30 select 4 key1, 2 key2, '4-2' dta from dual union all
31 select 4 key1, 3 key2, '4-3' dta from dual union all
32 select 4 key1, 4 key2, '4-4' dta from dual
33 )
34 select d.a_id, d.b_id, c.key1 as c_key1, c.key2 as c_key3, c.dta
35 from
36 c,
37 (
38 select
39 a.id as a_id, b.id as b_id, a.c_key, b.c_key2
40 from a, b
41 where a.b_key = b.id
42 ) d
43 where d.c_key = c.key1 (+)
44 and d.c_key2 = c.key2 (+);
A_ID B_ID C_KEY1 C_KEY3 DTA
3 3 1 3 1-3
4 4 2 2 2-2
2 1 4 1 4-1
1 2
SQL> -
Maximum number of AP supported has already joined cisco
Dear all,
We have vWLC, AP connected through MPLS network, we also have ap base license for 15 AP, the problem is that AP cant joint to WLC because of
this error:
Maximum number of AP supported has already joined cisco
WLC shows that all 15 licenses are used, but we have only 3 AP
What is that? bug or not?, everything worked fine before we put new 4 AP into the network
thank you
I attached outputs in photos:This license is evaluate and it works fine, but when it is our license it shows no AP in summary
(Cisco Controller) >show sysinfo
Manufacturer's Name.............................. Cisco Systems Inc.
Product Name..................................... Cisco Controller
Product Version.................................. 7.4.100.60
RTOS Version..................................... 7.4.100.60
Bootloader Version............................... 7.4.100.60
Emergency Image Version.......................... 7.4.100.60
Build Type....................................... DATA + WPS
System Name...................................... Cisco VWLC
System Location.................................. ESXI
System Contact...................................
System ObjectID.................................. 1.3.6.1.4.1.9.1.1631
IP Address....................................... 192.168.6.1
System Up Time................................... 0 days 17 hrs 29 mins 9 secs
System Timezone Location......................... (GMT +4:00) Muscat, Abu Dhabi
System Stats Realtime Interval................... 5
System Stats Normal Interval..................... 180
Configured Country............................... Multiple Countries:BY,MX,US
--More-- or (q)uit
State of 802.11b Network......................... Enabled
State of 802.11a Network......................... Enabled
Number of WLANs.................................. 7
Number of Active Clients......................... 41
Memory Current Usage............................. Unknown
Memory Average Usage............................. Unknown
CPU Current Usage................................ Unknown
CPU Average Usage................................ Unknown
Burned-in MAC Address............................ 00:50:56:9F:68:43
Maximum number of APs supported.................. 200
(Cisco Controller) >show ap summary
Number of APs.................................... 3
Global AP User Name.............................. Not Configured
Global AP Dot1x User Name........................ Not Configured
AP Name Slots AP Model Ethernet MAC Location Port Country Priority
Meeting_Room 2 AIR-LAP1142N-E-K9 54:75:d0:f5:3a:e4 default location 1 BY 1
Fttb 2 AIR-CAP3602I-A-K9 30:f7:0d:29:03:42 default location 1 MX 1
Technical 2 AIR-LAP1142N-E-K9 c8:9c:1d:f4:72:8a default location 1 BY 1 -
Hello there, i just had implemented a small program to send emails via Java mail, and i have a question:
- What is the maximum number of e-mails that i can send once i run my servlet?
(I mean how many senders i can have in the same time)
Thank you for any response,
Regards ThomasHi and Welcome to the Community!
Apologies for the delay in reply...hopefully you already have solved this, but just in case...
Please refer to this KB:
KB10305 Unable to receive email messages from an associated IMAP email account
Cause 7 may be useful!
I also tried searching for KBs that discuss mailbox size limits...yours is quite large, and may well exceed those limits. Unfortunately, my searching was not successful...but you may be more lucky:
http://btsc.webapps.blackberry.com/btsc/microsites/microsite.do
If you can find no values for this, you might try reducing the total number of emails in that mailbox to see if you can discover what the limit is. GMail accounts are tricky as they technically use just one big mailbox and no folders or anything, but rather flags to identify sorting and segregation of messages...but technically they all are in one place, just displayed differently. Hence, having so many messages there may be the cause of your issues.
Good luck and let us know!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How to set up the maximum number of messages on a queue programmatically
Hi,
I am using IMQ 3.5 to implement a message layer for one of my projects. I created a "Job Status Queue", which receives job status report from a java application every minute. But I just want to keep the most current status report instead of all the job running history. How can I restrict the maximum number of messages to 1 programmatically?
Any suggestion or help will be appreciated.
Xiaoyun TangYou can't limit the destination size programmatically, but you can do it administratively and associate a behavior to occur when the limit is reached. In your case it sounds like you want a queue, 1 message deep, and to discard the oldest message when the queue is full. When you create the physical queue on the broker you can specify these attributes (you can also update them on an existing queue). For example:
imqcmd create dst -t q -n StatusQ -o maxNumMsgs=1 -o limitBehavior=REMOVE_OLDESTFor more information see Chapter 6 of the Message Queue Administration Guide. In particular the "Managing Destinations" section:
http://docs.sun.com/app/docs/coll/MessageQueue_35_SP1
Joe -
To fill in the material number with item category u201CBu201D for Framework Order.
The use of framework orders (also referred to as blanket purchase orders) enables you to procure a variety of materials or services from a vendor up to a predefined maximum value (the value limit).
Instead of a specific delivery date, you specify a validity period for the order.
Goods receipts or the entry and acceptance of services performed are not necessary in the case of a framework PO and limit items.
The invoices are posted directly with reference to the purchase order, provided that the specified value limit is not exceeded. When the value limit of the PO is reached, or the validity period is exceeded, the system issues a warning message. It is possible to book the invoices, but these are blocked for payment.
During the phase of service performance, the cumulative u201Cactual" values (for the services actually performed) are continually updated in the underlying purchase. This enables you to monitor the progress of a procurement project on an ongoing basis. By comparing the "actual" value with the total value, you can always obtain an overview of the degree to which a budget for unplanned services or materials has been exhausted (i.e. see whether predefined limits have been reached or nearly reached).
So with the Framework Order type (FO) and item category u201CBu201D you get the error that it is not allowed to fill in the material number with item category u201CBu201D.
Please suggest me the possible solution to fill in the material number with item category u201CBu201D for Framework Order.
Best Regards,
HarishaThe Framework order type is specialy defined for lesser value procurements (ex: stationeries, cleaning services ....) which are all not worthy to create Material Master at all.
If you are very sure to fill the Material number, then proceed with some other document type.
In what circumstances you want to put material number in FO order?
Karthi. -
Can the maximum number of Logical Processors allowed in a Processor Group be increased by Bcdedit command or registry key to a number greater than the default (64) to allow non-group-aware applications to seamlessly scale via multithreading across more cores
MSDN documents methods to reduce the max number of LP's in a Processor Group to 1 or any power of 2 less than 64 in order to increase the number of Processor Groups. But there is no discussion of how to increase the maximum number of Logical Processors
allowed in a Processor Group to a number greater than the default (64), e.g. to 128 or 256.
Since a non-group-aware application/process can only run on 1 Processor Group, increasing this limit is needed to allow non-group-aware multithreaded applications to scale seamlessly for parallel computation across more than 64 cores simultaneously on systems
with more than 64 cores (for example, a quad-socket Intel Xeon system with 24 cores per socket, including true and hyper cores). If that limit can be set via registry key or command line, or if there is another way to force all the cores on
all 4 sockets (4 NUMA nodes in this case) to join in 1 Processor Group, then non-group-aware applications will not need to be rewritten using group-aware thread-affinity APIs.Hi John,
Are you trying to specify a static NUMA-node-to-group assignment, rather than letting Windows dynamically assign NUMA nodes to groups at boot time? If yes, You can refer the
following related KB:
How to manually configure K-Group assignment on multiprocessor machines
http://support.microsoft.com/kb/2506384
Systems with fewer than 64 logical processors always have a single group, Group 0. On systems with 64 or fewer processors, existing applications will operate correctly without
modification. Applications that do not call any functions that use processor affinity masks or processor numbers will operate correctly on all systems, regardless of the number of processors. To operate correctly on systems with more than 64 logical processors,
the following kinds of applications might require modification:
•Applications that manage, maintain, or display per-processor information for the entire system must be modified to support more than 64 logical processors. An example of
such an application is Windows Task Manager, which displays the workload of each processor in the system.
•Applications for which performance is critical and that can scale efficiently beyond 64 logical processors must be modified to run on such systems. For example, database
applications might benefit from modifications.
•If an application uses a DLL that has per-processor data structures, and the DLL has not been modified to support more than 64 logical processors, all threads in the application
that call functions exported by the DLL must be assigned to the same group.
By design, a non-NUMA computer is considered to have one NUMA node. Because NUMA nodes cannot span groups, the system creates a node for each group after you restart the computer.
The related KB:
Processor Groups
http://msdn.microsoft.com/en-us/library/windows/desktop/dd405503(v=vs.85).aspx
More information:
Uneven Windows Processor Groups
http://blogs.msdn.com/b/saponsqlserver/archive/2011/10/08/uneven-windows-processor-groups.aspx
Boot Parameters to Test Drivers for Multiple Processor Group Support
http://msdn.microsoft.com/en-us/library/windows/hardware/ff542298(v=vs.85).aspx
I’m glad to be of help to you!
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Plsql dynamic region with more than the maximum number of items
Hi,
I need suggestions! :)
I have to make a page with many many items. We have a table storing the content of a SQL script, each statement is an individual row in the table. The page I'm trying to make must display each statement in an individual textbox/textarea (and two others items for different attributes).
In a dynamic plsql region, the maximum number of items seems to be 1990, after that, a "Page not found" is launched. So, after 643 statements, I reach the limit...! :(
A solution could be to generate "custom" textfield or textarea (htp.p('<input type=text name="stmt1" value="StmtText">');), but, is it possible to access their values when the page is submitted ?
Second solution is to make a pagination every 600 statements, but I don't like it!
Anything else ?
Thank you!
JonathanAnton,
at least to my knowledge there you will have the same limitation. Because the limitation is that the f procedure of APEX doesn't have more parameters to support more fields. It's not a limitation of the APEX Builder.
It would only work if you assign all your items to the same name, so that they are transfered in an array, like the tabular form.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/ -
RuntimeException: Maximum number of gradient stops exceeded (paint uses 17
I run into this exception occasionally
java.lang.RuntimeException: Maximum number of gradient stops exceeded (paint uses 17 stops, but max is 12)
at com.sun.prism.impl.ps.PaintHelper.stopsToImage(PaintHelper.java:94)
at com.sun.prism.impl.ps.PaintHelper.initGradient(PaintHelper.java:137)
at com.sun.prism.impl.ps.PaintHelper.setMultiGradient(PaintHelper.java:164)
at com.sun.prism.impl.ps.PaintHelper.setLinearGradient(PaintHelper.java:271)
at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:208)
at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:378)
at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:325)
at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:284)
at com.sun.prism.impl.BaseContext.validateClearOp(BaseContext.java:78)
at com.sun.prism.d3d.D3DGraphics.clear(D3DGraphics.java:64)
at com.sun.javafx.tk.quantum.PaintRunnable.doPaint(PaintRunnable.java:206)
at com.sun.javafx.tk.quantum.PaintRunnable.paintImpl(PaintRunnable.java:145)
at com.sun.javafx.tk.quantum.PaintRunnable.run(PaintRunnable.java:349)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at com.sun.prism.render.RenderJob.run(RenderJob.java:29)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:101)
at java.lang.Thread.run(Unknown Source)
Running javafx 2.0.2 with java 1.7.02 on windows 7
Anyone else encountered this and is there a workaround?
In the system there is are rectangles with fill to something similar to
-fx-fill: linear-gradient(from 0% 0% to 100% 0%, rgb(177,177,177) 0%, rgb(255,128,255) 7%, rgb(210,59,54) 12%, rgb(248,100,100) 22%, rgb(252,180,180) 43%, rgb(250,200,200) 44%, rgb(170,170,170) 45%, rgb(248,248,248) 46%, rgb(248,248,248) 59%, rgb(200,200,200) 62%, rgb(180,180,180) 64%, rgb(167,167,167) 65%, rgb(200,200,200) 67%, rgb(248,248,248) 70%, rgb(248,248,248) 90%, rgb(200,200,200) 95%, rgb(166,185,238) 100%);In this case, there are 17 stops to this linear-gradient. If the number of stops is lowered, the exception occurs less often. Based on the exception, it looks like if there is a gradient with more than 12 stops, it is possible to run into this exception.
Thanks
Edited by: 907429 on Jan 12, 2012 10:18 AMPlease post a short reproducible test case surrounded with markers and/or log a bug with a reproducible test case at http://javafx-jira.kenai.com
-
Finding maximum number using methods
Hello, I am trying to calculate the maximum number given by the user using methods. Basically, i am learning the implementation of the methods.
Unfortunately, this code got some errors. Could you please help me to identify this?
import java.awt.*;
import javax.swing.*;
public class MaxNumber extends JApplet{
public static Double main (String args[]){
JTextArea outPutArea = new JTextArea ();
String num1 = JOptionPane.showInputDialog("Enter the first number");
String num2 = JOptionPane.showIputDialog("Enter the second number");
String num3 = JOptionPane.showInputDialog("Enter the second number");
double number1 = Double.parseDouble (num1);
double number2 = Double.parseDouble (num2);
double number3 = Double.parseDouble (num3);
//varianle storing maximum number.
double maxResult = maximum(number1, number2, number3);
//Displaying output
outPutArea.setText("First number is: "+number1+"Second number is: "+number2
+"Third number is: "+ number3+ "/n Maximum number: "+ maxResult);
// Get the components GUI display area
Container c = getContentPane();
// Attach outputArea to container c
c.add (outPutArea);
//maximum class definition
Double maximum(double x,double y,double z)
return Math.maxResult( x,Math.maxResult( y, z ) );
}Thank you,Do you have compilation errors or are you getting the wrong output? I could guess, but you need to learn to describe your problem better than "It's getting errors. What do I do?"
Your maximum(...) method should return a primitive double, not a Double, but that's not your problem (autoboxing will occur, which you probably don't even realize). -
MSEG - Recommended maximum number of records?
Hi all,
This is probably an oldie but a goodie.... does anyone know if SAP has a recommended maximum number of entries for table MSEG?
I've got around 43 million entries and have terrible performance on MB51 reports and custom reports hitting this table.
Thanks,
MarkHi,
> This is probably an oldie but a goodie....
yes, well known in support...
> does anyone know if SAP has a recommended maximum number of entries for table MSEG?
> I've got around 43 million entries and have terrible performance
generally speaking no, at least i'm not aware of such a maximum. The biggest MSEG i have seen has 17 times
more entries (760 million).
>on MB51 reports and custom reports hitting this table.
You are probably talking about MKPF / MSEG Joins. In some cases index design, and sql statement changes can
help to reduce the i/O (depends on many things). A general advice is: ARCHIVING.
Kind regards,
Hermann
Maybe you are looking for
-
How do I connect multiple displays to a Lenovo 405
how do I connect multiple displays to a Lenovo 405 running windows 7? I tried a video card but the built in amd video port would not function with the video card plugged in. Moderator Note; subject edit, post moved to here
-
How to pass many variables to servlet using a URL? Ajax related.
I have 100 text boxes in my JSP and want to pass the values stored in these text boxes to a servlet with out the need for submitting the entire page using AJAX frame work. I know how to peform the above in ajax if I have only 1 textbox. But how can I
-
Plese help me. anyone who knows ' crm ' extension tag
HI. there is something that I can't understand while analyzing SAP standard page <crm:resultList id = "RL" gt_datatable = "//GR_DATA_CONTEXT/gr_table" gt_rowfgt = "<%= gt_rowfgt
-
I propose a programming method for a better native GUI.
Basically the change is that in almost all cases the compiler/gui is in complete control over the layout of a window. This means that instead of an application declaring where every window element would be, it would have a file that would declare eve
-
Android-BB10 runtime: Get Android gallery crash log from Q10
Hi, I have a Blackberry Q10 running Blackberry 10.2.0.474. I installed ES File explorer, an Android app converted to a .bar file. It works fine, I can traverse my media directories. However but when opening one of my PNG files using ES explorer and s