ERROR:The applet Tennisball does not have a public constructor Tennisball()
hi all...sorry...i encountered this java error msg with the following code.....n the error msg tat was generated is that i do not have a public constructor which i already have...can some1 please enlighten me..??
import java.applet.*;
import java.awt.*;
public class Tennisball
double x, y, oldx, oldy, xinc, yinc, v=2.0;
int i,e,west,north,east,south,ry,rs,score,rx;
int choice, zone;
AudioClip ballout;
boolean running,toggle,enough;
Color ballcolor;
Tennis t;
Color bgColor = Color.black;
public Tennisball(int w, int n, int e, int s, AudioClip bo)
west=w;
east=e;
south=s;
north=n;
ballout = bo;
//this.t = t;
xinc=1.7*v;
yinc=0.7*v;
public void getRacketPosition(int racket_y)
ry=racket_y;
rs=ry;
public void newBall()
ballcolor=Color.yellow;
x=20;
y=(int)(Math.random()*100+50);
int angle=(int)(Math.random()*8+1);
if(angle==1)yinc=-0.7*v;
if(angle==2)yinc=-0.5*v;
if(angle==3)yinc=-0.4*v;
if(angle==4)yinc=-0.3*v;
if(angle==5)yinc=0.3*v;
if(angle==6)yinc=0.4*v;
if(angle==7)yinc=0.5*v;
if(angle==8)yinc=0.7*v;
toggle=false;
running=true;
enough=false;
e=0;
public void move()
if(running)
if(!toggle)
oldx=x;
oldy=y;
x+=xinc*v;
y+=yinc*v;
if(x<west && xinc<0)
int angle=(int)(Math.random()*8+1);
if(angle==1)yinc=-0.7*v;
if(angle==2)yinc=-0.5*v;
if(angle==3)yinc=-0.4*v;
if(angle==4)yinc=-0.3*v;
if(angle==5)yinc=0.3*v;
if(angle==6)yinc=0.4*v;
if(angle==7)yinc=0.5*v;
if(angle==8)yinc=0.7*v;
xinc=-xinc;
t.playClick();
else if(x>east-10)
x=east-10;
toggle=true;
running=false;
score++;
t.playBallout();
else if(y<north || y>south)
if(y<north&&yinc<0)
yinc=-yinc;
if(y>south&&yinc>0)
yinc=-yinc;
t.playClick();
else if(x>425 && xinc>0 && y>ry && y<rs+25)
if(y<ry+3)zone=1;
else if(y>=ry+3&&y<ry+6)zone=2;
else if(y>=ry+6&&y<ry+9)zone=3;
else if(y>=ry+9&&y<ry+12)zone=4;
else if(y>=ry+12&&y<ry+15)zone=5;
else if(y>=ry+15&&y<ry+18)zone=6;
else if(y>=ry+18&&y<ry+21)zone=7;
else if(y>=ry+21)zone=8;
if(zone==1)yinc=-0.7*v;
if(zone==2)yinc=-0.5*v;
if(zone==3)yinc=-0.4*v;
if(zone==4)yinc=-0.3*v;
if(zone==5)yinc=0.3*v;
if(zone==6)yinc=0.4*v;
if(zone==7)yinc=0.5*v;
if(zone==8)yinc=0.7*v;
xinc=-xinc;
t.playClick();
public void toggle()
int i=t.j;
if(!enough)
if(i>-1&&i<11)ballcolor=Color.yellow;
if(i>10&&i<20){ballcolor=bgColor;e++;}
if (e>35){ballcolor=bgColor;enough=true;}
public void paint(Graphics g)
if(toggle)toggle();
g.setColor(ballcolor);
g.fillOval((int)x,(int)y,10,10);
}
I thought I should point out a few things
The rule is that every class should have a no
argument constructor that you need to specify
explicitly if you have overloaded the default one.
One of the reaons for that is the following:This is not true, there are many classes that do not have a no argument constructor (For example Integer). Integer is a perfect example of why you would not want a no argument constructor, having an Integer with no value is pointless (theres nothing you can do with it).
public class A {
private final int a ;
public A(int b) {
this.a = b ;
}Now you realize that the variable
n
is getting initialized in the constructor. I see no variable n in the constructor but I take it you mean a
Now if you
refer to
n
somewhere else in you code you get a compile error because
n
might not have been initialized.This is not true, only local variables can cause a
variable (a variable) might not have been initialized
this is because all member fields are initialised with their default valuse. For example all pointers are intitialised to null, ints are intitialised to 0, booleans to false and so on.
>
So you need this:
public class A {
private final int a ;
public A(int b) {
this.a = b ;
public A() {
this(0) ; /* Calls the above constructor with some
default parameter. */
/* You can add some more code below but not above
this(0) */
Of course you know you are never calling the default
constructor but it's still there so you need to
ensure that the variables get initialized if some one
calls it!
As above classes can have no argument constructors
Just add this to your code for example:
public Tennisball() {
this(0, 0, 0, 0, null) ;
} Hope that helped you out!
Thanks,
Nikolas.
PS any duke dollars would be much appreciated as i'm
very poor at the moment :-)I dont mean to be offensive just thought I should clarify these points
Michael
Similar Messages
-
The applet FtpExample does not have a public constructor FtpExample()
Hi
Get this from my Jbuilder, but I got an constructor. What's the problem ?
import ftp.*;
import java.io.*;
import java.applet.*;
class FtpExample implements FtpObserver, Runnable
Thread thread;
FtpBean ftp;
long num_of_bytes = 0;
public FtpExample()
// Create a new FtpBean object.
ftp = new FtpBean();
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
// Connect to a ftp server.
public void connect()
try
ftp.ftpConnect("xxxxxxxxxxxx", "xxxxxxx", "xxxxxxx");
} catch(Exception e)
System.out.println(e);
and more...
.I thought I should point out a few things
The rule is that every class should have a no
argument constructor that you need to specify
explicitly if you have overloaded the default one.
One of the reaons for that is the following:This is not true, there are many classes that do not have a no argument constructor (For example Integer). Integer is a perfect example of why you would not want a no argument constructor, having an Integer with no value is pointless (theres nothing you can do with it).
public class A {
private final int a ;
public A(int b) {
this.a = b ;
}Now you realize that the variable
n
is getting initialized in the constructor. I see no variable n in the constructor but I take it you mean a
Now if you
refer to
n
somewhere else in you code you get a compile error because
n
might not have been initialized.This is not true, only local variables can cause a
variable (a variable) might not have been initialized
this is because all member fields are initialised with their default valuse. For example all pointers are intitialised to null, ints are intitialised to 0, booleans to false and so on.
>
So you need this:
public class A {
private final int a ;
public A(int b) {
this.a = b ;
public A() {
this(0) ; /* Calls the above constructor with some
default parameter. */
/* You can add some more code below but not above
this(0) */
Of course you know you are never calling the default
constructor but it's still there so you need to
ensure that the variables get initialized if some one
calls it!
As above classes can have no argument constructors
Just add this to your code for example:
public Tennisball() {
this(0, 0, 0, 0, null) ;
} Hope that helped you out!
Thanks,
Nikolas.
PS any duke dollars would be much appreciated as i'm
very poor at the moment :-)I dont mean to be offensive just thought I should clarify these points
Michael -
Applet - JavaPurse does not have a public constructor
Hello,
I'm starting playing with Javacard and I tried to compile a demo of Java purse Applet.
I can compile it withou problem but once I try to start it with JBuilder 2006 I get the following error :
The applet com.sun.javacard.samples.JavaPurse.JavaPurse does not have a public constructor com.sun.javacard.samples.JavaPurse.JavaPurse()
Here is a part of my code
public class JavaPurse extends javacard.framework.Applet {
protected JavaPurse(byte[] bArray, short bOffset, byte bLength) {
public static void install(byte[] bArray, short bOffset, byte bLength) {
new JavaPurse(bArray, bOffset, bLength);
Does anyone of you know why JBuilder is displaying this error message?
Thanks in advance fo you reply.
Alain.I don't think that's the error message; there is no class "java.awt.Applet". Are you sure it doesn't say "java.applet.Applet"?
In any event, I don't know about javacard, but I suspect that javacard applets are not interchangeable with browser applets. My guess is that when JBuilder tries to build an applet, it's thinking about browser applets. Therefore it expects your applet to be a subclass of java.applet.Applet.
I don't know how JBuilder works, but perhaps you can try using normal compilation instead of whatever JBuilder provides for applets. -
GetCodeBase() generates "does not have a public constructor"
I've been searching the net for days, and I seem to be the only guy with this problem. Here's the simple code:
public class testapplet extends JApplet {
public testapplet() {
URL url = getCodeBase();
I get the error message:
The applet testapplet does not have a public constructor testapplet()
I once had the same error message, but it was an entirely different problem. At that time, I made an JMenu[2] and somewhere in the code addressed JMenu[3];
As I said, this has nothing to do with my current problem, but I get VERY frustrated when I get such an error.
I'm running JBuilder6 on Win XP. Please help! desperate cryDamn, it helped. O_O Thanks a lot! As you can tell, I'm new to this. I was surprised since in my other program, I wrote a lot of stuff without that init procedure and it worked...
Thanks again! -
On windows, while cloning error The destination file does not have write pe
Hi,
I am cloning in windows 2003, 11.5.10.2. After copying files while runnig
adcfgclone.pl dbTier it is hanging at 13% and throwing error "The Destination file does not have write permissions ......\9.2.0\OPatch\perl_modules\Command.pm"
i am not using MKS perl.
i changed directory to $ORACLE_HOME\Apache\perl\5.*\MS*\
perl .....\appsutil\clone\bin\adcfgclone.pl dbTierPlease any pointers will be helpful.
Regards
TaherHi Taher;
Please check:
perl setting windows:
Re: cloning oracle applications 11i on windows
Also check:
Setting the Perl Environment PERL5LIB [ID 395294.1]
Common Perl Setup Issues and Solutions for E-Business Suite 11i [ID 404055.1]
Regard
Helios -
I changed job owner to sa and it worked well, But now it fails saying job owner does not have sever access and shows job owner as previous owner Name even after it changed to sa?
Help......EXEC msdb.dbo.sp_update_job @job_id=N'7d4d4040-b79c-4022-9d19-e449497ab60e',
@owner_login_name=N'sa'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
I get this error message when I want to compile paneltreeview on the mac.
What do I wrong?
Alois BlaimerI found the solution:
I have to use the suffix "*.sdk" when I insert the project name during import.
Alois Blaimer -
"The startup disk does not have enough space to be partitioned?" WHY!??
I"m trying to intall windows 7 on my Macbook air OS X 10.6. When i enter bootCam i get this error "The startup disk does not have enough space to be partitioned" . It says I need 10GBs of free space, even though I have 500GBs of free space on my drive external hardriver.
I did my research, and a lot of people are saying to use idefrag and defrag the hardrive, which i did. I also verifed disk permissions and repaired disk permission and all the other stuff.
What should i do? Apple hass the shittiest service. I spend $1100 bucks for something and i don't even get support without paying? to me, that's BS. so if anyone could help i would greatly appreciate it.Thanks Bob.
And now to close this thrilling episode we will sing the "Dragnet Theme Song". All together now.....
“Dum De Dum Dum…”
“Dum De Dum Dum Dum” -
am tTying to install itunes and I get error message "This file does not have a program associated with it for performing this action. Please install a program, or if one is already installed, create an association in the Default Programs control panel. Can anyone help me?
Hi,
Here is a similar thread for your reference:
There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel
http://social.technet.microsoft.com/Forums/en/w7itproappcompat/thread/036e3cf6-bff7-4ef2-bd0a-555cd2399ad4
Hope this helps
Vincent Wang
TechNet Community Support -
I'm getting this error with bootcamp "The startup disk does not have enough space to be partitioned"
Here's the story...
I had a dual boot configuration on my mac with Mac OS X Lion and Windows XP (made with bootcamp).
I decided to reinstall windows.
I deleted the windows partition using BootCamp.
Tried to recreate the Windows partition with Boot Camp and got: "The startup disk does not have enough space to be partitioned You must have at least 10 GB of free space available"
After reading several posts on this forum I decided to defrag the hard drive and try again.
The defrag did not work and I'm still getting the error, I have 22 gb of free space on my drive.
Any suggestions?
Also, I tried repair disk and repair permissions
Hmm, my external harddrive says on the box "OS X 10.5.8 or higher (32-bit kernel only)" Could the 32-bit requirement be an issue? Is lion 64-bit?Boot Camp must be able to allocate a contiguous block of space on the drive. If it cannot find 10 GBs of contiguous space, then you cannot create the Windows partition.
You will have to backup your OS X partition to an external drive, boot from the external drive, use Disk Utility to repartition and reformat your hard drive back to a single volume, then restore your backup to the internal hard drive.
Get an empty external hard drive and clone your internal drive to the external one.
Boot from the external hard drive.
Erase the internal hard drive.
Restore the external clone to the internal hard drive.
Clone the internal drive to the external drive
Open Disk Utility from the Utilities folder.
Select the destination volume from the left side list.
Click on the Restore tab in the DU main window.
Check the box labeled Erase destination.
Select the destination volume from the left side list and drag it to the Destination entry field.
Select the source volume from the left side list and drag it to the Source entry field.
Double-check you got it right, then click on the Restore button.
Destination means the external backup drive. Source means the internal startup drive.
Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears. Select the icon for the external drive and click on the downward pointing arrow button.
After startup do the following:
Erase internal hard drive
Open Disk Utility in your Utilities folder.
After DU loads select your internal hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed. Do not quit Disk Utility.
Restore the clone to the internal hard drive
Select the destination volume from the left side list.
Click on the Restore tab in the DU main window.
Check the box labeled Erase destination.
Select the destination volume from the left side list and drag it to the Destination entry field.
Select the source volume from the left side list and drag it to the Source entry field.
Double-check you got it right, then click on the Restore button.
Destination means the internal hard drive. Source means the external startup drive.
Note that the Source and Destination drives are swapped for this last procedure. -
Question:
I try to log into my itunes connect acct and I I still keep getting the error message
Apple ID does not have permission to access iTunes Connect.
please explain why?PS I have also read all of the old postings in regards to this and nothing is working.
-
Build Error : The name "LocalizedStrings" does not exist in the namespace
I have localised my app to 5 languages, it builds and runs perfectly in Silverlight, but when i open the project in Blend to make changes
it shows the following error
The name "LocalizedStrings" does not exist in the namespace "clr-namespace:appname".
Since it is bound, i need to build it, only then the text is visible :(
Any suggestions?
Alfah
AlfahishamThis is the declaration for the LocalizedStrings.cs
namespace LoveCycles_Free
public class LocalizedStrings
public LocalizedStrings()
private static LoveCycles_Free.AppResources localizedResources = new LoveCycles_Free.AppResources();
public LoveCycles_Free.AppResources LocalizedResources
get
return localizedResources;
And this is my App.xaml
<Application
x:Class="LoveCycles_Free.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" >
<!--Application Resources-->
<Application.Resources>
<local:LocalizedStrings xmlns:local="clr-namespace:LoveCycles_Free" x:Key="LocalizedStrings" />
<FontFamily x:Key="CicleSemi">C:/Users/PT3560003/AppData/Local/Microsoft/Expression/Blend/Font Cache/pj1jeoqe.v1v/Cicle Semi.ttf#Cicle Semi</FontFamily>
<FontFamily x:Key="PeaSnow">CustomFonts/peasnow.ttf#Pea Snow</FontFamily>
<FontFamily x:Key="CicleFina">CustomFonts/CicleFina.ttf#Cicle</FontFamily>
<Style x:Key="AnimatedButtons" TargetType="Button">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
<Setter Property="Padding" Value="10,3,10,5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="Transparent">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="0:0:0.2"/>
</VisualStateGroup.Transitions>
<VisualState x:Name="Normal"/>
<VisualState x:Name="MouseOver"/>
<VisualState x:Name="Pressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation Duration="0" To="0.812" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="ButtonBackground" />
<DoubleAnimation Duration="0" To="0.694" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="ButtonBackground" />
</Storyboard>
</VisualState>
<VisualState x:Name="Disabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation Duration="0" To="0.245" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonBackground" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0" RenderTransformOrigin="0.5,0.5">
<Border.RenderTransform>
<CompositeTransform/>
</Border.RenderTransform>
<Border.Background>
<ImageBrush Stretch="Fill" ImageSource="Images/02/but_bg_settings.png"/>
</Border.Background>
<ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" FontSize="20"/>
</Border>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="AddButton" TargetType="Button">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
<Setter Property="Padding" Value="10,3,10,5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="Transparent">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="0:0:0.2"/>
</VisualStateGroup.Transitions>
<VisualState x:Name="Normal"/>
<VisualState x:Name="MouseOver"/>
<VisualState x:Name="Pressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation Duration="0" To="0.812" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="ButtonBackground" />
<DoubleAnimation Duration="0" To="0.694" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="ButtonBackground" />
</Storyboard>
</VisualState>
<VisualState x:Name="Disabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation Duration="0" To="0.245" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonBackground" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0" RenderTransformOrigin="0.5,0.5">
<Border.RenderTransform>
<CompositeTransform/>
</Border.RenderTransform>
<Border.Background>
<ImageBrush Stretch="Fill" ImageSource="Images/02/but_bg_password.png"/>
</Border.Background>
<ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" FontSize="20"/>
</Border>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Application.Resources>
<Application.ApplicationLifetimeObjects>
<!--Required object that handles lifetime events for the application-->
<shell:PhoneApplicationService
Launching="Application_Launching" Closing="Application_Closing"
Activated="Application_Activated" Deactivated="Application_Deactivated"/>
</Application.ApplicationLifetimeObjects>
</Application>
Alfahisham -
Error: The preference path does not exist
Subject:
Error: The preference path does not exist:
Oracle.Portal.Page(WWC-51000)]
I can not resolve this error.
Have you already experienced this error?
I'm sending more information below.
Regards, Dime
DETAILS:
========
ORACLE Product: iAS 9i EE, v1.0.2
Platform: RedHat Linox 6.2, kernel 2.2.18
HW Platform:
IBM Intellistation 6889, Intel P2 350MHz, 384MB
Problem:
After successful installation of the Application Server and data base creation, the installation of ORACLE Portal 3.0.6 is successful too, but the following message
appears when we try to access the URL http://servername:port/pls/portal30:
Error: The preference path does not exist:
Oracle.Portal.Page (WWC-51000)
About the Attachments:
- init.ora.original (the original init.ora file)
- init.ora.try1 (the file modified as described in the configuration guide)
- init.ora.try2 (according suggestions in the discussion group on
the ORACLE Metal Partners Site)
- install.log (install.log generated with init.ora.try2)
Regards,
Dimitar Indovski,
GORD Systems
ATTACHMENT-1 (init.ora.original)
db_name=DEFAULT
db_files= 80 # SMALL
db_file_multiblock_read_count = 8 # SMALL
db_block_buffers = 100 # SMALL
shared_pool_size = 3500000 # SMALL
log_checkpoint_interval = 10000
processes = 50 # SMALL
parallel_max_servers = 5 # SMALL
log_buffer = 32768 # SMALL
max_dump_file_size = 10240 # limit trace file size to 5 Meg each
global_names = TRUE
control_files = (ora_control1, ora_control2)
ATTACHMENT-2 (init.ora.try1)
db_name=DEFAULT
db_files = 80 # SMALL
db_file_multiblock_read_count = 8 # SMALL
db_block_buffers = 100 # SMALL
shared_pool_size = 3500000 # SMALL
log_checkpoint_interval = 10000
processes = 50 # SMALL
parallel_max_servers = 5 # SMALL
log_buffer = 32768 # SMALL
max_dump_file_size = 10240 # limit trace file size to 5 Meg each
global_names = TRUE
control_files = (ora_control1, ora_control2)
max_enabled_roles = 25
open_cursors = 50
compatible = 8.1.0
java_pool_size = 20
ATTACHMENT-3 (init.ora.try2)
db_name=DEFAULT
db_file_multiblock_read_count = 16
db_block_buffers = 550
shared_pool_size = 31457280
log_checkpoint_interval = 10000
processes = 100
parallel_max_servers = 5
log_buffer = 32768
max_dump_file_size = 10240
global_names = TRUE
control_files = (ora_control1, ora_control2)
open_cursors = 300
large_pool_size = 45000000
java_pool_size = 32768000
db_block_size = 8192
ATTACHMENT-4 (install.log.gz)
-----------------------------Dennis
A general shared_pool_size Q&A is part of the Troubleshooting Guide on OTN: http://technet.oracle.com/products/iportal/htdocs/portal_troubleshooting.htm
The Configuration Assistant determines the shared pool size from the view v$parameter,
which lists information about the initialization parameters (populated from init.ora file). If the shared_pool_size value is more than 15728640 (for a default installation), you pass the minimal requirements set by the Portal Installer. Make sure you actually write out all the digits (i.e. 1000000000) and don't use abbreviations (1000M). Currently, the Configuration Assistant does a numeric check against the values that are set and cannot resolve the abbreviate syntax.
Also try running the sql [select value from v$parameter where name like 'shared_pool_size';] to check if the changes you are making in the init.ora is really getting populated in the v$parameter view. As long as you restart the database once you make the change in init.ora, it should take effect.
null -
Import Error: The root directory does not exist
Hi,
I have some isuuses with importing the extended page. When I try to Import it throws an error.
Root Directory does not exist.
I am using the following command.
import c:\jdev\jdevhome\jdev\myprojects\oracle\apps\asn\opportunity\webui\EMCOpptyDetPG.xml -includeSubpackages -validate -rootdir c:\prabhat\Jdev\jdevhome\jdev\myprojects -mmddir C:\prabhat\Jdev\jdevhome\jdev\myhtml\OA_HTML\jrad -userId 1 -username apps -password apps -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp)(host =xxxx)(port =xxx)))(connect_data = (sid = xxxx)))" -jdk13
Importing /oracle/apps/asn/opportunity/webui/EMCOpptyDetPG
Validation warnings in document "/oracle/apps/asn/opportunity/webui/EMCOpptyDetP
G":
Importing /oracle/apps/asn/opportunity/webui/EMCOpptyDetPG
Validation warnings in document "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG":
Invalid value "/oracle/apps/pv/opportunity/webui/PvOpptyPartnerRN" for property
"Extends" on component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubt
abPrmRN". Component "/oracle/apps/pv/opportunity/webui/PvOpptyPartnerRN" cannot
be referenced from "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabPr
mRN" because it violates scope restrictions.
Invalid value "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN" for property "Exte
nds" on component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTas
kRN". Component "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN" cannot be refere
nced from "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTaskRN" bec
ause it violates scope restrictions.
The component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTaskRN"
cannot contain "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN.CacSmrTable" of t
able style because it is inside "tableLayout".
The component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTaskRN"
cannot contain "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN.CacSmrTaskButtonR
N" of stackLayout style because it is inside "tableLayout".
Invalid value "/oracle/apps/pv/opportunity/webui/PvAbandonOpptyRN" for property
"Extends" on component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNPrmS
tack". Component "/oracle/apps/pv/opportunity/webui/PvAbandonOpptyRN" cannot be
referenced from "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNPrmStack" b
ecause it violates scope restrictions.
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Error: The root directory does not exist
Import completed.
But After this when I try to see from the server there is no file with name EMCOpptyDetPG.xml exist. So I think this file is not imported.
Could suggest how to solve this problem.
Thanks
PrabhatHi Tapash
while deploying a page to mds Repository i m getting the same error that root Directory does not exist but it also says that import completed successfully.
when i see the same using jdr_utils.listDocuments('xxxx/oracle/apps/ak/server/webui/xxxPG')
it says printing /xxxx/oracle/apps/ak/server/webui/xxxPG thus page is available in the mds repository and i m able to access the page at run time
my concern is why i m getting this error
my import command looks like this
java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/xxxx/oracle/apps/ak/server/webui/xxxxPG.xml -jdk13 -mmddir $OA_HTML/jrad -username apps -password apps -rootdir $JAVA_TOP -validate -dbconnection " (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xyxyxyxyxy)(PORT = xyxyx)) (CONNECT_DATA = (SID =yyy)))"
could u pls suggest some solution. -
Error : Sales Org.Unit does not have these attributes -- Urgent
Hi, Team,
I am unable to create a service order with serivce material ( Only installation visit charges ) for w/o warranty product .
I am getting error : " Sales Org.Unit does not have these attributes "
I had checked the related Org data of respective sales org , already the sales area combination is also maintained from R/3 with required attributes "
Pls revert with possible solution .
Regards,
VCSPePe :
Thanks for reversion !!
Basically it is a product Service Material (Servicing Charges), where in I had checked in the transaction , Though the required sales area is well maintained in the R/3 System and is being replicated to the CRM .
When I checked the product Service material , the required comination is missing and could find other sales area combinations .
Pls guide , how to go to get this resolved .
Regards,
VCS
Maybe you are looking for
-
Problem in inbound JDBC Adapter
My scenario is like sending data from SAP to database through JDBC adapter. but when i tried to excute my program it is giving follwing message: Error processing request in sax parser: Error when executing statement for table/stored proc. java.sql.S
-
Here's my problem. When I want to create a new application, all works but when I create a project, the JDeveloper program closes at once. And I can't open this project... so I can't do anything! Who could help me?
-
Setting Date as YYYY-QX?
I've done some Googling for this with very limited success. I am just getting started in Form Design and one field I am having trouble with is the Date Field in Acrobat Pro 9. I'm trying to set the Date Field to be entered as YYYY-QX, where YYYY is t
-
ODBC Destination with DSN to MySQL db
I am trying to create a simple package that reads from a SqlServer table and tries to export that data into MySQL Table. I have tried the following two ways to achieve this, without any luck. 1. I have created an ADO.Net destination to use a ".Net Pr
-
Leaving on Officejet 6500A printer
I used to turn my Epson inkjet printer on and off, and just got an Officejet 6500A. Read on a few sites that you should leave your printer on all the time - is that what you have experienced? Concerned that if you leave it on all the time the ink w