Invalid Alias Format : Table_name.Column_name required
Hi All,
I am new to the OBIEE 11g and I am trying to get used to the a lot it in one shot. I was hoping that someone could help me answer this question.
I am trying to replace a value from the database and replace it with another value if a condition is met. I am using the below SQL statement to get there however, when I select ok I get an error message:Invalid Alias Format : Table_name.Column_name required.
Can anyone tell me how I can accomplish my taskl? I am currently using OBIEE 11g and I am modifying the column measure by editing the formula with the below code. Let me know. Thanks.
select
CASE
WHEN Cmplt Claim - Process Time.Claim Date< 10/30/2010 THEN '10/30/2010'
END
From Cmplt Claim - Process Time.Claim Date;
Thank you so much. The error no longer shows up. I did however, get a diffrent error message. Not sure what that all means but if you can explain to me for a better understanding that would be super helpful. Or should I post under a diffrent subject?
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. Please have your System Administrator look at the log for more details on this error. (HY000)
SQL Issued: SELECT 0 s_0, "VETSNET Operations Reports"."CLOV - End Product"."End Product Code" s_1, "VETSNET Operations Reports"."CLOV - End Product"."Rating Description" s_2, "VETSNET Operations Reports"."CLOV - File Date"."File Date" s_3, "VETSNET Operations Reports"."CLOV - Geography"."Station Name and Number" s_4, "VETSNET Operations Reports"."Cmplt Claim - Report Filter Flag"."Completed Brokered Flag" s_5, "VETSNET Operations Reports"."Cmplt Claim - Report Filter Flag"."Completed Detail Flag" s_6, CASE when "VETSNET Operations Reports"."Cmplt Claim - Process Time"."Claim Date"<('2012-10-15') then ('2012-10-15') else "Cmplt Claim - Process Time"."Claim Date" end s_7 FROM "VETSNET Operations Reports" WHERE (("CLOV - File Date"."File Date" = date '2012-10-09') AND ("CLOV - End Product"."End Product Code" IN ('681', '687')) AND ("Cmplt Claim - Report Filter Flag"."Completed Detail Flag" = 'Y') AND ("CLOV - End Product"."Rating Description" IN ('Control End Products', 'Other C&P End Products', 'Rating-Related End Products'))
Edited by: Hangten4881 on Oct 15, 2012 9:41 AM
Similar Messages
-
Invalid Alias Format : Table_name.Column_name required error
Hi,
Below is the query I am using in one of my columns in a report. The ELSE part is working fine. but as soon as I put in the first 2 WHEN conditions, it gives me the invalid alias format error. tried changing the column names,single quotes on numbers, but error does not seem to go.
Please help.
Thanks,
Dan
CASE
WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD}) IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12)
WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12) IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD})
ELSE
FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD}) - FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12)
END
Edited by: Danny on Jun 4, 2013 12:44 PM
Edited by: Danny on Jun 4, 2013 12:44 PMNO luck :(
CASE
WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}') IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12')
WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12') IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}')
ELSE
FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}') - FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12')
END
Can I try making null to 0 by doing IFNULL(measure,0). IN this case how do I do it since measure column is being generated at runtime with filter function like above.
Edited by: Danny on Jun 4, 2013 1:11 PM -
we need to configure an SSO from SAP portal and a third party website by passing encrypted userid as url parameters.
To configure the SSO I have received the public key of the third party and able to access it from server location. Now I have to access priavte key of the SAP Portal certificate and sign the UserId and pass it as url parameter. I have gone through many blogs and written code as below which is giving Invalid Keystore Format error.
My question is
1. What should be passed to FileInputStream?
As of now we are passing the .cer file which is stored as part of project.
Below code is throwing error at ks.load() method.
String fielPath1 = request.getPublicResourcePath()+"/SAPLogonTicketKeypair-cert1.cer";
FileInputStream ksfis = new FileInputStream(fielPath1);
KeyStore ks = KeyStore.getInstance("JKS");
ks.load(null, sPass.toCharArray());
BufferedInputStream ksbufin = new BufferedInputStream(ksfis);
ks.load(ksbufin, sPass.toCharArray());
PrivateKey priv = (PrivateKey) ks.getKey(alias, kPass.toCharArray());
Error is:
Invalid keystore formatsun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633)sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)java.security.KeyStore.load(KeyStore.java:1185)am_sso_apc.doContent(am_sso_apc.java:132)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
Please let me know how to pass the filepath to extract the priavte key .
Regards,
SatishI found the solution. As follows:
keytool -list -keytool keytoolfile -storetype jceks -
AD 11g Trusted Recon is failing due to invalid Date format for Start Date
We are using OIM 11g with AD 11g connector.
we have mapped "whenCreated" attribute of AD to "Start Date" in OIM. We ran Trusted Recon, the recon failed due to invalid date format.
we got the following error :
Caused By: oracle.iam.reconciliation.exception.InvalidDataFormatException: Invalid data - 10/19/2012 10:33:30 AM against Date format yyyy/MM/dd HH:mm:ss z for key Start Date
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.convertReconFieldsToOIMFields(ReconOperationsServiceImpl.java:1610)
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEvent(ReconOperationsServiceImpl.java:548)
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEvent(ReconOperationsServiceImpl.java:535)
at sun.reflect.GeneratedMethodAccessor9326.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
Thanks.Caused By: oracle.iam.reconciliation.exception.InvalidDataFormatException: Invalid data - *10/19/2012 10:33:30 AM* against Date format yyyy/MM/dd HH:mm:ss z for key Start Date
Error is because of invalid date format.
You need to bring data in required format. As I remember you can configured it in one of the AD configuration lookup. -
Default SSL context init failed: Invalid keystore format
Hi, I can't connect to my ldap server. The problem is ssl. I'm trying to do this:
import java.io.IOException;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import javax.naming.ldap.LdapContext;
public class TestAuthentifikation {
public static void main (String [] args) throws IOException {
try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldaps://subdomain.dyndns.org:636/");
env.put(Context.SECURITY_PRINCIPAL, "uid=user,ou=users,dc=subdomain,dc=dyndns,dc=org");
env.put(Context.SECURITY_CREDENTIALS, "passwd");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PROTOCOL, "ssl");
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("javax.net.ssl.keyStore", "/usr/lib/j2se/1.4/jre/lib/security/cacerts");
System.setProperty("javax.net.ssl.trustStore","/usr/lib/j2se/1.4/jre/lib/security/cacerts");
env.put(LdapContext.CONTROL_FACTORIES, "com.sun.jndi.ldap.ControlFactory");
DirContext ctx = new InitialDirContext(env);
//use ctx....
// Close the context when we're done
ctx.close();
catch(NamingException ne) {
System.err.println(ne);
ne.printStackTrace();
}The exception is this:
javax.naming.CommunicationException: subdomain.dyndns.org:636 [Root exception is java.net.SocketException: Default SSL context init failed: Invalid keystore format]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:194)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:119)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1668)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2599)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)On the server I have created this ldap_crt.pem file:
openssl req -x509 -days 3650 -newkey rsa:2048 -nodes -keyout ldap_key.pem -keyform PEM -out ldap_crt.pem -outform PEMwhich sits on the clients /etc/ssl/certs directory. Like this I can connect with a ldap browser to the server.
I should do something like this:
keytool -import -alias AUTH_CA -file rootcert.crt -keystore /usr/lib/j2se/1.4/jre/lib/security/cacertsHow do I get this rootcert.crt file?
I did this and changed the keystore from cacerts to mycacerts in the java class file:
sudo keytool -import -alias AUTH_CA -file /etc/ssl/certs/ldap_crt.pem -keystore /usr/lib/j2se/1.4/jre/lib/security/mycacertsThen I get this:
javax.naming.CommunicationException: simple bind failed: subdomain.dyndns.org:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: *No trusted certificate found*]
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:198)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
Edited by: borobudur on May 18, 2008 7:09 AMJust a permission problem! Take care that your process can write on the keystore/truststore.
-
Invalid number format for portnumber
I am trying to install Oracle 10G Lite
During this process it requires a password.
Leaving the 1st line unchanged (system) I fill in the 2nd line "Manager" (Which is supposed to be the password)
After this, I get the message
i/o uitzondering: invalid number format for portnumber
Who knows how I can correct this
Thanks in advance
HeinFor repository information, if you have already Oracle 10g server installed and running database. Then you should supply system/password/1521/<sid> information to generate repository. Otherwise no reason to select repository from wizard
Check this installation document for verify that your system are passing pre-requisite to install Lite.
http://download.oracle.com/docs/cd/E12095_01/doc.10302/e12080/preinstall.htm#CBHBEDBC
Oracle Database Lite Standalone using OC4J Standalone JDK 5.0
Edited by: OrionNet on Dec 20, 2008 4:51 PM -
Invalid method declaration; return type required
The code:
public Reminder(int seconds) {
timer = new Timer();
timer.schedule(new RemindTask(), seconds*1000);
class RemindTask extends TimerTask {
public void run() {
System.out.format("Time's up!%n");
timer.cancel(); //Terminate the timer thread
public static void main(String[] args)
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
try
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
catch (Exception ex)
System.out.println("Failed loading L&F: ");
System.out.println(ex);
new superball();
new Reminder(5);
System.out.format("Task scheduled.%n");
//= End of Testing =
}Gives:
"invalid method declaration; return type required"
If i add void to public Reminder(int seconds) {It prints:
cannot find symbol
symbol : class Reminder
location: class superball
new Reminder(5);
Is it because of the public class?
public class superball extends JFrameHere is the FULL code:
/* superball */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.regex.Pattern;
import java.util.Timer;
import java.util.TimerTask;
import java.util.*;
import java.io.*;
* Summary description for superball
public class superball extends JFrame
// Variables declaration
int ballx;
int bally;
int jumpstop;
int stopper;
int coin;
int coinx;
int coiny;
int coinvaluex;
int coinvaluey;
Timer timer;
private int value = 0;
private static Random r = new Random();
private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel4;
private JLabel jLabel5;
private JLabel jLabel7;
private JLabel jLabel9;
private JLabel jLabel10;
private JPanel contentPane;
private JPanel jPanel1;
// End of variables declaration
public superball()
super();
initializeComponent();
// TODO: Add any constructor code after initializeComponent call
this.setVisible(true);
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always regenerated
* by the Windows Form Designer. Otherwise, retrieving design might not work properly.
* Tip: If you must revise this method, please backup this GUI file for JFrameBuilder
* to retrieve your design properly in future, before revising this method.
private void initializeComponent()
jLabel1 = new JLabel();
jLabel2 = new JLabel();
jLabel4 = new JLabel();
jLabel5 = new JLabel();
jLabel7 = new JLabel();
jLabel9 = new JLabel();
jLabel10 = new JLabel();
coin = 1;
coinx = Math.abs(r.nextInt()) % 460 + 100;
coiny = Math.abs(r.nextInt()) % 200 + 100;
ballx = 342;
bally = 338;
jumpstop = 0;
stopper = 13;
contentPane = (JPanel)this.getContentPane();
jPanel1 = new JPanel();
// jLabel1
jLabel1.setIcon(new ImageIcon("IMG\\coin.gif"));
jLabel1.setText("0");
// jLabel2
jLabel2.setIcon(new ImageIcon("IMG\\logo.PNG"));
// jLabel4
jLabel4.setIcon(new ImageIcon("IMG\\black.GIF"));
// jLabel5
jLabel5.setIcon(new ImageIcon("IMG\\ballstanding2.gif"));
// jLabel7
jLabel7.setIcon(new ImageIcon("IMG\\star-heart.gif"));
jLabel7.setText(" 100");
// jLabel9
jLabel9.setIcon(new ImageIcon("IMG\\coin.gif"));
// jLabel10
jLabel10.setIcon(new ImageIcon("IMG\\stage1.GIF"));
// contentPane
contentPane.setLayout(null);
contentPane.setBackground(new Color(255, 254, 254));
addComponent(contentPane, jLabel5, 342,338,60,18);
addComponent(contentPane, jLabel1, 561,4,100,18);
addComponent(contentPane, jLabel2, 2,3,208,24);
addComponent(contentPane, jLabel7, 495,4,60,18);
addComponent(contentPane, jLabel9, coinx,coiny,19,18);
addComponent(contentPane, jLabel2, 2,3,208,24);
addComponent(contentPane, jLabel10, -2,29,738,412);
addComponent(contentPane, jPanel1, 79,209,200,100);
// jPanel1
jPanel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
jPanel1.setFocusable(true);
jPanel1.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e)
jPanel1_keyPressed(e);
public void keyReleased(KeyEvent e)
jPanel1_keyReleased(e);
public void keyTyped(KeyEvent e)
jPanel1_keyTyped(e);
// superball
this.setTitle("Superball created by Hannes Karlsson");
this.setLocation(new Point(0, 0));
this.setSize(new Dimension(617, 450));
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
this.setResizable(false);
/** Add Component Without a Layout Manager (Absolute Positioning) */
private void addComponent(Container container,Component c,int x,int y,int width,int height)
c.setBounds(x,y,width,height);
container.add(c);
// TODO: Add any appropriate code in the following Event Handling Methods
private void jPanel1_keyPressed(KeyEvent e)
System.out.println("\njPanel1_keyPressed(KeyEvent e) called.");
// TODO: Add any handling code here
if(e.getKeyCode()==e.VK_LEFT) // when the user enters left
jLabel5.setLocation(new Point(ballx--, bally));
jLabel5.setLocation(new Point(ballx--, bally));
jLabel5.setLocation(new Point(ballx--, bally));
jLabel5.setLocation(new Point(ballx--, bally));
jLabel5.setIcon(new ImageIcon("IMG\\ballroll.gif"));
} // equalling PLAIN_SPEED
if(e.getKeyCode()==e.VK_RIGHT) // when the user enters right
jLabel5.setLocation(new Point(ballx++, bally));
jLabel5.setLocation(new Point(ballx++, bally));
jLabel5.setLocation(new Point(ballx++, bally));
jLabel5.setLocation(new Point(ballx++, bally));
jLabel5.setIcon(new ImageIcon("IMG\\ballroll.gif"));
} // equalling PLAIN_SPEED
if(e.getKeyCode()==e.VK_UP) // when the user enters up
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setIcon(new ImageIcon("IMG\\balljetpack.gif"));
} // equalling PLAIN_SPEED
if(e.getKeyCode()==e.VK_DOWN) // when the user enters up
jLabel5.setLocation(new Point(ballx, bally++));
jLabel5.setLocation(new Point(ballx, bally++));
jLabel5.setLocation(new Point(ballx, bally++));
jLabel5.setLocation(new Point(ballx, bally++));
jLabel5.setIcon(new ImageIcon("IMG\\ballroll.gif"));
} // equalling PLAIN_SPEED
if(bally>=340)
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
System.out.println("LOW!!!");
if(bally<=-2)
jLabel5.setLocation(new Point(ballx, bally++));
jLabel5.setLocation(new Point(ballx, bally++));
jLabel5.setLocation(new Point(ballx, bally++));
jLabel5.setLocation(new Point(ballx, bally++));
System.out.println("HIGH!!!");
if(ballx>=594)
jLabel5.setLocation(new Point(ballx--, bally));
jLabel5.setLocation(new Point(ballx--, bally));
jLabel5.setLocation(new Point(ballx--, bally));
jLabel5.setLocation(new Point(ballx--, bally));
System.out.println("RIGHT!!!");
if(ballx<=-3)
jLabel5.setLocation(new Point(ballx++, bally));
jLabel5.setLocation(new Point(ballx++, bally));
jLabel5.setLocation(new Point(ballx++, bally));
jLabel5.setLocation(new Point(ballx++, bally));
System.out.println("LEFT!!!");
if (bally==294 && (ballx > 218 && ballx < 274))
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
if (bally==262 && (ballx > 246 && ballx < 306))
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
if (bally==230 && (ballx > 486 && ballx < 562))
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
if (bally==310 && (ballx > 486 && ballx < 594))
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
if (bally==262 && (ballx > 442 && ballx < 514))
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
if (bally==294 && (ballx > 378 && ballx < 466))
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
jLabel5.setLocation(new Point(ballx, bally--));
// COIN
if ((bally > coiny-10 && bally < coiny+10) && (ballx > coinx-10 && ballx < coinx+10))
coinx = Math.abs(r.nextInt()) % 617 + 1;
coiny = Math.abs(r.nextInt()) % 300 + 1;
jLabel9.setLocation(new Point(coinx, coiny));
System.out.println("Coinx:"+coinx+"");
System.out.println("Coiny:"+coiny+"");
jLabel1.setText(""+ coin++ +"");
System.out.println("Ballx:"+ballx+"");
System.out.println("Bally:"+bally+"");
private void jPanel1_keyReleased(KeyEvent e)
System.out.println("\njPanel1_keyReleased(KeyEvent e) called.");
// TODO: Add any handling code here
jLabel5.setIcon(new ImageIcon("IMG\\ballstanding2.gif"));
private void jPanel1_keyTyped(KeyEvent e)
System.out.println("\njPanel1_keyTyped(KeyEvent e) called.");
// TODO: Add any handling code here
// TODO: Add any method code to meet your needs in the following area
//============================= Testing ================================//
//= =//
//= The following main method is just for testing this class you built.=//
//= After testing,you may simply delete it. =//
//======================================================================//
public void Reminder(int seconds) {
timer = new Timer();
timer.schedule(new RemindTask(), seconds*1000);
class RemindTask extends TimerTask {
public void run() {
System.out.format("Time's up!%n");
timer.cancel(); //Terminate the timer thread
public static void main(String[] args)
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
try
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
catch (Exception ex)
System.out.println("Failed loading L&F: ");
System.out.println(ex);
new superball();
new Reminder(5);
System.out.format("Task scheduled.%n");
//= End of Testing =
}No, it's because you can't have a constructor called Reminder if you don't have a class named Reminder.
-
We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
Error: 2014-01-28 15:52:05.19
Code: 0x80004005
Source: xxxxxxxx SSIS.Pipeline
Description: Unspecified error
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC0202009
Source: Process xxxxxx Load TableName [48]
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid date format".
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC020901C
Source: Process xxxxxxxx Load TableName [48]
Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
the specified type.".
End Error
But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
This looks like bug to me, Any suggestion?Hi Mohideen,
Based on my research, the issue might be related to one of the following factors:
Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
Hope this helps.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
The backup disk is not in Mac OS Extended (Journaled) format, which is required.
Kappy's extensive hard drive formatting post - http://discussions.apple.com/thread.jspa?messageID=8340551 - note that instructions at end are for zeroing data.
BDAqua's Formatting instructions - http://discussions.apple.com/message.jspa?messageID=8901255
Pondini: Formatting, Partitioning, Verifying, and Repairing Disks... - http://pondini.org/OSX/Home.html -
Data services with SQL Server 2008 and Invalid time format variable
Hi all
Recently we have switched from DI on SQL Server 2005, to DS(Date Services) on SQL Server 2008. However I have faced an odd error on the query that I was running successfully in DI.
I validate my query output using a validation object to fill either Target table (if it passes), or the Target_Fail table (if it fails). Before sending data to the Target_Fail table, I map the columns using a query to the Target_Fail table. As I have a column called 'ETL_Load_Date' in that table, which I should fill it with a global variable called 'Load_Date'. I have set this global variable in the script at the very first beginning of the job. It is a data variable type:
$Load_Date = to_char(sysdate(),'YYYY.MM.DD');
When I assign this global variable to a datetime data type cloumn in my table and run the job using Data Services, I get this error:
error message for operation <SQLExecute>: <[Microsoft][ODBC SQL Server Driver]Invalid time format>.
However I didn't have this problem when I was running my job on the SQL Server 2005 using Data Integrator. The strange thing is that, when I debug this job, it runs completely successfully!!
Could you please help me to fix this problem?
Thanks for your help in advance.Thanks for your reply.
The ETL_Date is a datetime column and the global variable is date data type. I have to use the to_char() function to be able to get just the date part of the current system datetime. Earlier I had tried date_part function but it returns int, which didn't work for me.
I found what the issue was. I don't know why there were some little squares next to the name of the global variable which I had mapped to the ETL_Date in the query object!!! The format and everything was OK, as I had the same mapping in other tables that had worked successfully.
When I deleted the column in the query object and added it again, my problem solved. -
[v4l-dvb] xc5000 driver won't load, invalid module format
Hi, I recently got a Piccacle PCTV HD Pro Stick for christmas, and have been trying to get it to work. I followed this page, and everything worked, but when I try to load the module xc5000, it gives me the error:
FATAL: Error inserting xc5000 (/lib/modules/2.6.28-ARCH/kernel/drivers/media/common/tuners/xc5000.ko): Invalid module format
Can anyone help?
Thanks,
SmartboyHi Mike,
something looks a bit strange for me. On my OEL 5.4 x64 system i have just the following 3 packages:
$ rpm -qa | grep asm
oracleasm-2.6.18-164.el5-2.0.5-1.el5
oracleasm-support-2.1.3-1.el5
oracleasmlib-2.0.4-1.el5 Your packages should be I think the following:
http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel5/amd64/2.1.3/oracleasm-support-2.1.3-1.el5.x86_64.rpm
http://otn.oracle.com/software/tech/linux/asmlib/files/RPMS/rhel5/amd64/2.0.4/oracleasmlib-2.0.4-1.el5.x86_64.rpm
http://oss.oracle.com/projects/oracleasm/dist/files/RPMS/rhel5/amd64/2.0.5/2.6.18-92.el5/oracleasm-2.6.18-92.el5-2.0.5-1.el5.x86_64.rpm
Uninstall all asm packages and retry with just those three.
Good luck!
Cheers,
David
OCP 9i / 10g
http://www.oratoolkit.ch/knowledge/howto/installation/otn.php -
Time Machine error!
The backup disk is not in Mac OS Extended (Journaled) format, which is required.
And what's Time Capsule?If you're trying to use Time Machine with an external hard drive the drive must be formatted OS X Extended (journaled);
So use Disk Utility to reformat the EHD and then open Time Machine and select the drive again.
OT -
Tables lines/borders – although all formatted to the required weight in MS Word 2003, once pdfd show up as different weights and the 'heavier' line varies depending on which magnification the page is in. These lines are coloured, not automatic colour. Hope someone can help. Thanks
Close the form so you are looking at the "My Forms" tab, the view that shows you all of your forms. In the "My Forms" tab you can right click on a form and choose "Duplicate" from the context menu or you can select a form and click on the "Duplicate" button in the toolbar above the list of forms.
Thanks,
Josh -
Ava.io.IOException: Invalid keystore format
Hi;
I am getting the following error while launching my applet through browser.
I have modified my java version from 1.4.2_08 to 1.5.0.10.
java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)Please help me.what should be a problem for that.I think that I am on to something. I deleted all the files in this directory:
C:\Users\<username>\AppData\LocalLow\Sun\Java\Deployment\security
This seems to resolve the problem with the invalid keystore (is a new one created?). Do not know yet if it has some unwanted side effects, but jeg jvm seems to start normally. -
whenever i try to execute this statement it gives this error msg
Invalid no format
select to_char(salary,'$10,000') from emp;desc of table is
Name Type Nullable Default Comments
EMPNO NUMBER(4)
NAME VARCHAR2(10) Y
SALARY NUMBER(7,2) Y
JOB VARCHAR2(10) Y
HIREDATE DATE Y
COMM NUMBER(7,2) Y
DEPTNO NUMBER(4) YDo you want something like this ?
SQL> SELECT TO_CHAR(sal,'$9,999,99') FROM emp;
TO_CHAR(SA
$50,00
$28,50
$24,50
$29,75
$30,00
$30,00
$8,00
$16,00
$12,50
$12,50
$15,00
TO_CHAR(SA
$11,00
$9,50
$13,00
14 rows selected.
SQL> http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#BABIGFBA
The above link will give you the complete information about number format models.
URL added: Saubhik on Nov 23, 2010 1:20 PM
Maybe you are looking for
-
Can anyone tell me where I get an adaptor for my griffin iTrip so that my iPhone 4 sits in the cradle comfortably? Thanks
-
Execution Time & Explain Plan Variations
I have a scenario here. I have 2 schemas; schema1 & schema2. I executed a lengthy SELECT statement of 5 TABLE JOIN in these 2 schemas. I am getting totally different execution time (one runs at 0.3 seconds & the other at 4 seconds) and a different Ex
-
FirePartialAction event parameter
Hi, I'm a newbie, Thanks for your patience ... I have a custom create rec page, there is an Item (SupplierCode) poplist with a firePartialAction, event name is "hoho", parameters I have defined "parm1" with value ${oa.CreateDetailVO1.SupplierCode} In
-
i just got photoshop cs5 student teacher edition and it says i need to have proof of a university/college im attending, and i need a transcrip, i dont have tht, im only in high school hgow do i fix it. and my other problem is i go to put in my produc
-
Flash-builder-4 is constantly "Publishing Target Flash Professional File..."
Hi, When working on Flash project in Flash-Builder-4 and Flash-Pro-CS5, FB4 is constantly performing a "Publishing Target Flash Professional File..." as can be seen in the progress window. I sometimes get 10 simultanious lines in the progress bar try