|
They both have curly brackets?
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
This is the wrong forum. use the Java forum.
|
|
|
|
|
I'm working on C#, not in Java.
My application is C#, which is accessing Java webservice
|
|
|
|
|
You have no mentions of C# in your original question, and the only error you show is a Java error. Thus your question has nothing to do with C#.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
As this is C# forum, I didn't mention specifically about my project platform. Because it is by default C# platform.
Anyways, for your understanding, I'm writting my problem again.
I'm working on C# project which is accessing Java webservice. I'm calling a webmethod which sends a file of 250MB size in response.
I changed the config section as mentioned in my original message.
Exception called "Java Heap Space" thrown.
|
|
|
|
|
NarVish wrote: Exception called "Java Heap Space" thrown.
Where in C# does this exception occur?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Exception occured at the line where I called that service method.
|
|
|
|
|
You are missing the point. The exception you are getting is thrown from the Java side. I'd have thought the fact it said Java in the exception would have been a big clue that the problem was at the Java side, but that's just me; picking up on these subtle clues.
Bottom line - you can tweak your client side config all you like, but if the problem is at the server end, you ain't going to solve squat.
|
|
|
|
|
You are right. Its the problem at server side. Thank you for your reply
|
|
|
|
|
Just to clarfy, if you are seeing this error at the client:
- It is being sent by the web service to the client.
- The error is happening at the service.
- Changing the client config will have no effect in this case
Finally, as this is a Java service error you will be better off asking for help in a Java forum.
Possibly, the whole file is being loaded into memory and this is causing the heap to fill, the service needs to stream or chunk it. As a non-Java dev I couldn't be certain though.
|
|
|
|
|
Whoever set the web server up needs to read this[^].
|
|
|
|
|
How do Merge cell in excel of xml?
|
|
|
|
|
Is this a C# question? If so it is far from clear.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
yes.
this question have resolved.
solution :
writer.Write("<Cell ss:MergeAcross=\"1\">");
thank you. 
|
|
|
|
|
Hi,
I dont know the references for this code . please some one copy the code to VS2008 and check for the reference.
Thanks!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SqlServer.Management.Smo;
using System.Diagnostics;
using System.Collections.Specialized;
namespace Transfer2008To2005
{
class Program
{
static void Main(string[] args)
{
string sourceserver = "SourceServerName";
string destinationserver = "DestinationServerName";
Server src = new Server(sourceserver);
Server dest = new Server(destinationserver);
string[] myarray = new string[] { "databasename", "otherdbname" };
foreach (Database db in src.Databases)
{
if (db.IsSystemObject == false && db.Status == DatabaseStatus.Normal)
{
Debug.WriteLine("Now moving " + db.Name);
if (dest.Databases.Contains(db.Name))
dest.KillDatabase(db.Name);
Transfer t = new Transfer(db);
t.DestinationServer = destinationserver;
t.DestinationDatabase = db.Name;
t.CreateTargetDatabase = true;
t.PreserveDbo = true;
t.TargetDatabaseFilePath = "D:\\SQLDATA\\";
t.TargetLogFilePath = "F:\\SQLLOGS\\";
t.CopyAllDefaults = true;
t.CopyAllFullTextCatalogs = true;
t.CopyAllRoles = true;
t.CopyAllRules = true;
t.CopyAllSchemas = true;
t.CopyAllStoredProcedures = true;
t.CopyAllSynonyms = true;
t.CopyAllTables = true;
t.CopyAllUserDefinedDataTypes = true;
t.CopyAllUserDefinedFunctions = true;
t.CopyAllUserDefinedTypes = true;
t.CopyAllUsers = true;
t.CopyData = true;
t.CopySchema = true;
t.CopyAllObjects = false;
t.DropDestinationObjectsFirst = true;
t.Options.WithDependencies = true;
t.Options.IncludeDatabaseRoleMemberships = true;
t.Options.Indexes = true;
t.Options.DriAll = true;
t.Options.Permissions = true;
t.Options.SchemaQualify = true;
t.Options.SchemaQualifyForeignKeysReferences = true;
t.Options.Statistics = true;
t.Options.TargetServerVersion = SqlServerVersion.Version90;
t.Options.WithDependencies = true;
t.Options.IncludeIfNotExists = true;
t.Options.FullTextIndexes = true;
t.Options.ExtendedProperties = true;
t.TransferData();
t = new Transfer(db);
t.DestinationServer = destinationserver;
t.DestinationDatabase = db.Name;
t.DestinationLogin = "schemalogin";
t.DestinationPassword = "schemapassword";
t.DestinationLoginSecure = false;
t.CopyAllViews = true;
t.CopyAllTables = true;
t.CopyAllObjects = false;
t.CopyAllDatabaseTriggers = true;
t.Options.Triggers = true;
t.CopyData = false;
t.CopySchema = true;
t.Options.IncludeIfNotExists = true;
t.TransferData();
}
}
}
}
}
|
|
|
|
|
What do you mean by references in this context? If you have compile errors then post the text here and people will try to explain what is wrong.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
If you want to know what assemblies to reference, simply compile the code. The IDE will complain about the types that it cannot find. Most of these types will have a page on MSDN, and that page includes the name of the assembly that the type is located in. Add reference, compile again, find the next one.
Bastard Programmer from Hell
|
|
|
|
|
in .Net 3.5 versiyon i added those to references and i took buil succeeded.
Microsoft.SqlServer.Management.Smo
Microsoft.SqlServer.Management.Sdk.Sfc
Microsoft.SqlServer.Smo
Microsoft.SqlServer.SmoExtended
Microsoft.SqlServer.SqlEnum
it will work. but check clearly version when you add reference.
|
|
|
|
|
|
I have created a bool User Setting called ShowRecent with a value of True. I created it in the designer, and in app.config it shows as True.
I created a bool property:
public bool ShowRecent { get; set; }
I also created these two methods:
public void loadSettings()
{
ShowRecent = Properties.Settings.Default.ShowRecent;
}
public void saveSettings()
{
Properties.Settings.Default.ShowRecent = ShowRecent;
Properties.Settings.Default.Save();
}
I then run
engine.loadSettings();
engine.ShowRecent = true;
engine.saveSettings();
when the loadSettings is run the property is False. Even when I set it to True and called saveSettings, the propety is still False. app.config still has True.
What am I doing wrong here?
Everything makes sense in someone's mind
|
|
|
|
|
Settings aren't stored in app.config. They are stored in the user settings directory.
|
|
|
|
|
Mine is.
Opened app.config, there it is.
Remove the setting, reopen app.config - it's gone
Everything makes sense in someone's mind
|
|
|
|
|
No. App.config is what it says it is: application configuration info. That's what the designer uses and that's what the compiler generates your settings class from.
When you save user settings, the actual values get written out to:
C:\<username>\AppData\Local\<company name>\<app.exe>_url_<hash>\<version>\user.config
Go look there 
|
|
|
|
|
Hi,
Below is the declaration at class level.
<pre lang="c#">int[] PossibleValues = new int[6];
int[][] JaggedArray = new int[50][];
int JaggedVar = 0;</pre>
Then in a function, I am assigning PossibleValues array to Jaggedarray like this.
[PossibleNumbers is a function that returns an array of possible numbers for a cell in a grid.]
<pre lang="c#">PossibleValues = PossibleNumbers();
JaggedArray[jaggedVar] = PossibleValues;
jaggedVar++;</pre>
The number of elements in PossibleValues in each iteration may vary,but it will never exceed 6.I dont want Jaggedarray to store zeros of PossibleValues so I changed the code to:
<pre lang="c#">PossibleValues = PossibleNumbers();
for (int i = 0; i < PossibleValues.Length; i++)
{
if (PossibleValues[i] != 0)
{
JaggedArray[jaggedVar][i] = new PossibleValues[i];
}
}
jaggedVar++;</pre>
But this gives null reference exception at
JaggedArray[jaggedVar][i] = new PossibleValues[i];
I searched it over the internet and came to know that JaggedArray remains null hence values cannot be assigned this way.How to resolve this?
Any help would be appreciated.
Thanks in advance!
|
|
|
|
|
There seems to be some inconsistencies in your code (and the formatting needs to be fixed). I cannot get the above to compile cleanly as your variable names are not all correct: you have JaggedVar defined at the top. but use jaggedVar (case change) later. You are also incrementing jaggedVar outside your for loop.
Also the statement
JaggedArray[jaggedVar][i] = new PossibleValues[i];
does not make sense.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|