Problem when applet going to load local machine jar files
hi all,
I have an applet that contains a 'core' module(jar) and 'core dependency' modules(jars).To reduce the applet download time i decided to load some heavy weight and lesser use 'core dependency' jars from local machine and core jar module and other low weight and highly use 'core dependency' jar modules from applet archives. I use the same class loader that used to load the applet archives for load local machine 'core dependency' modules.
eg- this.getClass().getClassLoader().loadClass("class")
When applet starts, Local machine 'core dependency' jar modules start loading but it couldn’t find classes in the core module (that download from archives) and stop the loading applet . But when i run that applet using IDE it is work fine. Please someone help me to solve this problem.
Exception in thread "thread applet-com.dfn.pro.ui.UIContext-1" java.lang.NoClassDefFoundError: com/dfn/pro/plugins/dataupdate/UpdatableTable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(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 java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.dfn.pro.plugins.JarClassLoader.invokeClass(Unknown Source)
at com.dfn.pro.plugins.PluginContext.loadPlugins(Unknown Source)
at com.dfn.pro.plugins.PluginContext.analyzeDependancies(Unknown Source)
at com.dfn.pro.plugins.PluginContext.<init>(Unknown Source)
at com.dfn.pro.plugins.PluginContext.getPluginContext(Unknown Source)
at com.dfn.pro.ui.UIContext.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.dfn.pro.plugins.dataupdate.UpdatableTable
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
eg- this.getClass().getClassLoader().loadClass("class")Try using Thread.currentThread().getContextClassLoader() instead of this.getClass().getClassLoader().
Similar Messages
-
Since yesterday I am facing problem,when it goes in sleep mode it actually turn off and does not come up after pressing start button but every time I have to hard reset it to turn it on .It is 4 gen running on 4.3.3.Please help
so I have called HP tech support 12 times over the last 6 weeks and still my HP Officejet 4620 loses connection overnight. Of course becasue it was a birthday present I spent more time than I normally would have on this issue. While the tech are very polite they have not fixed my problem and now it is too late to return printer to store. This is a lot of money wasted and I think they need to admit this is a bug in this printer and resolve the problem!!!!!
-
Problem loading image from jar file referenced by jar file
First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
When JarB goes to load an image the following happens:
java.lang.NullPointerException
at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
The code from JarB that loads the image looks like this:
URL[] oSearch = {Main.class.getResource("images/")};
URLClassLoader oLoader = new URLClassLoader(oSearch);
imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
Any help very appreciated!Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
If you want to read somthing inside the jar-file you need to encode it first.
Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file. -
Hi all,
My question is can we load library from jar file using System.load() method.
ex:
myJar.jar
|
|----com.test.common.Util
which conatins a method to load library from jar file itself, before that i used to load from File
|---libraries/MozillaParser/......
Iam able load from Local system,
File parserLibraryFile = new File("libraries/MozillaParser" + EnviromentController.getSharedLibraryExtension());
File mozillaDistBinDirectory = new File("libraries/mozilla.dist.bin."+EnviromentController.getOperatingSystemName());
MozillaParser.init(parserLibraryFile.getAbsolutePath() , mozillaDistBinDirectory.getAbsolutePath());
but i am unable to load from jar file
URL url = ClassLoader.getSystemClassLoader().getResource("libraries/MozillaParser" + EnviromentController.getSharedLibraryExtension());
URL url1 = ClassLoader.getSystemClassLoader().getResource("libraries/mozilla.dist.bin."+EnviromentController.getOperatingSystemName());
MozillaParser.init(url.toString(), url1.toString());
Thanks in advance.That's a really confusing post.
The easiest way to make sure you can use the classes in a jar file is to copy the jar file to the "/jre/lib/ext" subfolder of your JDK. These classes will be visible to all applications. -
i use the instruction below to load image contained in my jar file for distribution application but the image doesn't appear
icon = new ImageIcon("images/logo_tunisiana.GIF");
the jar file contain the image under a subdirectory called images.
Witch code sample have i to use ?
thanks in advanceI have an applet that is packaged in a jar file with images. I can access the images using:
aIcon = new ImageIcon(KeyboardApplet.class.getResource("images/keyimages/a.jpg")); -
HTMLLoader loading local content (SWF files) problem
Hello guys,
I'm just finishing my application but I facing a problem.
I'm currently developing a desktop application using AIR.
I'm using HTMLLoader to load local SWF files when te user tries to access specific content on the application.
I successfully accomplished this, but the loaded SWF also loads other files (assets and xml files with translations) and that is not working.
When a SWF is loaded he just stops on his own loading screen (when loading the XML files).
All this stuff is happening on my CustomNativeWindow:
(my CustomNativeWindow "overlays" the main application)
public function CustomNativeWindow()
var nativeWindowInitOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
nativeWindowInitOptions.systemChrome = NativeWindowSystemChrome.NONE;
nativeWindowInitOptions.renderMode = NativeWindowRenderMode.DIRECT;
nativeWindowInitOptions.resizable = false;
nativeWindowInitOptions.maximizable = false;
nativeWindowInitOptions.minimizable = false;
super(nativeWindowInitOptions);
alwaysInFront = true;
this.activate();
public function setProperties(contentName:String, contentURL:String, posX:Number, posY:Number, stageWidth:Number, stageHeight:Number):void
this.stageHeight = stageHeight;
this.stageWidth = stageWidth;
this.contentURL = contentURL;
this.contentName = contentName;
this.x = posX;
this.y = posY;
this.width = stageWidth;
this.height = stageHeight;
this.title = contentName;
this.addEventListener(Event.RESIZE, onWindowResize);
SWFHTMLLoader();
private function SWFHTMLLoader():void
//REQUEST LOAD URL
var request:URLRequest = new URLRequest(contentURL);
//HTML LOADER SWF
htmlLoader = new HTMLLoader();
htmlLoader.width = stageWidth;
htmlLoader.height = stageHeight;
htmlLoader.addEventListener(Event.COMPLETE, onHtmlLoaderComplete);
htmlLoader.load(request);
stage.addChild(htmlLoader);
private function onHtmlLoaderComplete(e:Event):void
trace("NATIVE WINDOW HTMLLoader complete");
onWindowResize();
private function onWindowResize(e:Event = null):void
if (htmlLoader)
htmlLoader.width = stage.stageWidth;
htmlLoader.height = stage.stageHeight;
Probably something related to security?
How can I fix this?
Is kinda urgente... deadline is coming...
Thank you!Thank you kglad for your fast response...
The reference to the content comes from a XML loaded on the main application.
var xml:XML = <Content en="game" >
<ImageSource>assets/images/gallery/resources/gameone.png</ImageSource>
<ContentSource>content/gameone/gameone.swf</ContentSource>
</Content>;
contentURL = xml.ContentSource;
So contentURL is: content/gameone/gameone.swf
Am I in trouble? -
HT201412 why when it goes to load a app start loading but then kick it back to home page
why when we go to load a app/game it will start to load but then will kick us back to home screen
First I would
See:
iOS: Troubleshooting applications purchased from the App Store
Contact the developer/go to their support site -
Store documents in local machine of file system not in sap dms
Hi,
Can i store documents in local machine not in sap Database . Client will not use content server for storing document.
so how to store document in local file system n how to configure ?
please help.
Dipak.Hello Sir,
When I try to check in in storage as 'VAULT' it send error 'Attempt to set up connection to failed'
attaching screen shot of error
I customize in DC20 for Vault:
For: "Define data carrier type "vault""
Data carr. type = ZD
For: "Define vault"
Data carr.name = ZDC_TEST
Data carr. type= ZD
Desprition = Test
Vault path = \\10.181.210.10\_SAP Practice\SAP DMS\DMS_Data_carrier -> this is the network path.
For: "Define data carrier type "server, front end"
Type (data carr. type) = DC
Description = Frontend test
Path = c:\temp\
For: "Define mount ponts/logical drive"
Data carr. = Default/ZDC
Prefix for access path = c:\temp\
Please tell me if have configured any wrong configuration or need to add any additional configuration
Thanks.
Dipak. -
Problem While Loading mp3 From Jar File?
Hello There
I've Made a jar File That Contains mp3 file That Should be Played When the jar is opened
but the file doesn't play?
and my code snippet to load from the jar
URL url=getClass().getResource("/file.mp3");
MediaLocator ml=new MediaLocator(url);
final Player player = Manager.createRealizedPlayer(url);
I don't Know where's The Error
Could any one Help?First_knight wrote:
Hello
-Yes I Use NetBeans 6.1 To create The Jar With The Following Steps:
First I've Add The Sound File To a Package In NetBeans 6.1
And Then Called The Sound From The Package And The Program Runs Okay Then I Made The jar
and after making the jar now i have to call the sound file from the jar by the code mentioned above
i used it and run the program it run okay but when i try to open the jar i hear no sound????????????
I Don't know whyyyyyyyyy This seems to indicate that your app is finding the mp3 file. You would probably get a null pointer exception if the file wasn't found. Something else seems to be going on.
-How are you launching the jar outside of NetBeans?...By Double Click On It
I suggest trying to launch the jar using the command promptjava -cp YourJarFile.jar YourMainClassAnd if that works, try java -jar YourJarFile.jarAnd if that works, your computer's file association is not set up correctly. -
Error when executing interface which load data from csv file which has 320
Hi,
Can some one provide a resolution for below error:
I have created an interface which load data from csv file which has 320 columns, to a Synonym which has 320 columns in it
using LKM File to SQL, IKM Sql Control Append.
I am getting below error when executing the interface :
com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation. Task: 6 java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: java.lang.StringIndexOutOf . . . '' Token Parsing Error: Lexical error at line 2, column 42. Encountered: "\\" (92), after : "": <at unknown location> BSF info: Create external table at line: 0 column: columnNo
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)
at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: java.lang.StringIndexOutOf . . . '' Token Parsing Error: Lexical error at line 2, column 42. Encountered: "\\" (92), after : "": <at unknown location>
BSF info: Create external table at line: 0 column: columnNo
at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
at bsh.util.BeanShellBSFEngine.exec(Unknown Source)
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)
... 11 more
Text: The application script threw an exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 2 BSF info: Create external table at line: 0 column: columnNo
out.print("createTblCmd = r\"\"\"\ncreate table ") ;
out.print(odiRef.getTable("L", "COLL_NAME", "W")) ;
out.print("<?=(extTabColFormat.getUseView())?\"_ET\":\"\"?>\n(\n\t") ;
out.print(odiRef.getColList("", "[CX_COL_NAME]\\t"+
"<?=extTabColFormat.getExtTabDataType(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]\\u0022, \\u0022[DEST_WRI_DT]\\u0022, \\u0022[COL_FORMAT]\\u0022, \\u0022[BYTES]\\u0022, \\u0022[LONGC]\\u0022, \\u0022[SCALE]\\u0022)?>"
, ",\\n\\t", "","")) ;
out.print("\n)\nORGANIZATION EXTERNAL\n(\n\tTYPE ORACLE_LOADER\n\tDEFAULT DIRECTORY dat_dir\n\tACCESS PARAMETERS\n\t(\n\t\tRECORDS DELIMITED BY 0x'") ;
out.print(odiRef.getSrcTablesList("[XFILE_SEP_ROW]","")) ;
out.print("'\n\t\t") ;
out.print(odiRef.getUserExit("EXT_CHARACTERSET")) ;
out.print("\n\t\t") ;
out.print(odiRef.getUserExit("EXT_STRING_SIZE")) ;
out.print("\n\t\tBADFILE\t\t'") ;
out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
out.print("_%a.bad'\n\t\tLOGFILE\t\t'") ;
out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
out.print("_%a.log'\n\t\tDISCARDFILE\t'") ;
out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
out.print("_%a.dsc'\n\t\tSKIP \t\t") ;
out.print(odiRef.getSrcTablesList("", "[FILE_FIRST_ROW]", "", "")) ;
out.print("\n") ;
if (odiRef.getSrcTablesList("", "[FILE_FORMAT]", "", "").equals("F")) {out.print("\n\t\tFIELDS\n\t\t") ;
out.print(odiRef.getUserExit("EXT_MISSING_FIELD")) ;
out.print("\n\t\t(\n\t\t\t") ;
out.print(odiRef.getColList("", "[CX_COL_NAME]\\tPOSITION([FILE_POS]:[FILE_END_POS])\\t"+
"<?=extTabColFormat.getExtTabFormat(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]\\u0022, \\u0022DEST_WRI_DT\\u0022, \\u0022[COL_FORMAT]\\u0022, \\u0022[BYTES]\\u0022, \\u0022[LONGC]\\u0022, \\u0022[SCALE]\\u0022)?>"
, ",\\n\\t\\t\\t", "","")) ;
out.print("\t\t\n\t\t)\n\t)\n") ;
} else {out.print("\n\t\tFIELDS TERMINATED BY x'") ;
out.print(odiRef.getSrcTablesList("", "[XFILE_SEP_FIELD]", "", "")) ;
out.print("'\n\t\t") ;
if(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").equals("")){out.print("\n\t\t") ;
} else {out.print("OPTIONALLY ENCLOSED BY '") ;
out.print(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(0,1)) ;
out.print("' AND '") ;
out.print(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(1,2)) ;
out.print("' ") ;
}out.print("\n\t\t") ;
out.print(odiRef.getUserExit("EXT_MISSING_FIELD")) ;
out.print("\n\t\t(\n\t\t\t") ;
out.print(odiRef.getColList("", "[CX_COL_NAME]\\t"+
"<?=extTabColFormat.getExtTabFormat(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]\\u0022, \\u0022DEST_WRI_DT\\u0022, \\u0022[COL_FORMAT]\\u0022, \\u0022[BYTES]\\u0022, \\u0022[LONGC]\\u0022, \\u0022[SCALE]\\u0022)?>"
, ",\\n\\t\\t\\t", "","")) ;
out.print("\t\t\n\t\t)\n\t)\n") ;
}out.print("\tLOCATION (") ;
out.print(odiRef.getSrcTablesList("", "'[RES_NAME]'", "", "")) ;
out.print(")\n)\n") ;
out.print(odiRef.getUserExit("EXT_PARALLEL")) ;
out.print("\nREJECT LIMIT ") ;
out.print(odiRef.getUserExit("EXT_REJECT_LIMIT")) ;
out.print("\n\"\"\"\n \n# Create the statement\nmyStmt = myCon.createStatement()\n \n# Execute the trigger creation\nmyStmt.execute(createTblCmd)\n \nmyStmt.close()\nmyStmt = None\n \n# Commit, just in case\nmyCon.commit()") ;
****** ORIGINAL TEXT ******
createTblCmd = r"""
create table <%=odiRef.getTable("L", "COLL_NAME", "W")%><?=(extTabColFormat.getUseView())?"_ET":""?>
<%=odiRef.getColList("", "[CX_COL_NAME]\t"+
"<?=extTabColFormat.getExtTabDataType(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022[DEST_WRI_DT]\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
, ",\n\t", "","")%>
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY dat_dir
ACCESS PARAMETERS
RECORDS DELIMITED BY 0x'<%=odiRef.getSrcTablesList("[XFILE_SEP_ROW]","")%>'
<%=odiRef.getUserExit("EXT_CHARACTERSET")%>
<%=odiRef.getUserExit("EXT_STRING_SIZE")%>
BADFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.bad'
LOGFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.log'
DISCARDFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.dsc'
SKIP <%=odiRef.getSrcTablesList("", "[FILE_FIRST_ROW]", "", "")%>
<% if (odiRef.getSrcTablesList("", "[FILE_FORMAT]", "", "").equals("F")) {%>
FIELDS
<%=odiRef.getUserExit("EXT_MISSING_FIELD")%>
<%=odiRef.getColList("", "[CX_COL_NAME]\tPOSITION([FILE_POS]:[FILE_END_POS])\t"+
"<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
, ",\n\t\t\t", "","")%>
<%} else {%>
FIELDS TERMINATED BY x'<%=odiRef.getSrcTablesList("", "[XFILE_SEP_FIELD]", "", "")%>'
<% if(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").equals("")){%>
<%} else {%>OPTIONALLY ENCLOSED BY '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(0,1)%>' AND '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(1,2)%>' <%}%>
<%=odiRef.getUserExit("EXT_MISSING_FIELD")%>
<%=odiRef.getColList("", "[CX_COL_NAME]\t"+
"<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
, ",\n\t\t\t", "","")%>
<%}%> LOCATION (<%=odiRef.getSrcTablesList("", "'[RES_NAME]'", "", "")%>)
<%=odiRef.getUserExit("EXT_PARALLEL")%>
REJECT LIMIT <%=odiRef.getUserExit("EXT_REJECT_LIMIT")%>
# Create the statement
myStmt = myCon.createStatement()
# Execute the trigger creation
myStmt.execute(createTblCmd)
myStmt.close()
myStmt = None
# Commit, just in case
myCon.commit().
at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)The issue is encountered because the text delimiter used in the source file did not consist of a pair of delimiters.
Please see support Note [ID 1469977.1] for details. -
Problem loading URL from .jar file
I encounter problems while loading a MsAccess DB contains within a .jar file. This is the following codes I used,
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
java.net.URL url=getClass().getResource("MSAccessDB\\SavingApp DB.mdb");
DBURL+=url.getFile();
catch(Exception e)
{ System.err.println(e.toString()); }Could I ask that, if I stored the MsAccess or any other DBs, will the DB able to do basic operations (Create Update Retrieve Display)?
As the DB is not like a normal Text file.
What I did is that, I didn't include the MsAccess into the .jar file. I just put it beside. The disadvantage is that user ables to open the DB and might do some changes. ;-( -
Hello,
i am trying to load ALL imagefiles from my jar file. i do the following:
Class clazz = Class.forName("com.xxx.IconSelectionDialog");
String me = clazz.getName().replace(".", "/") + ".class";
dirURL = clazz.getClassLoader().getResource(me);
if (dirURL.getProtocol().equals("jar")) {
String jarPath = dirURL.getPath().substring(6, dirURL.getPath().indexOf("!")); //strip out only the JAR file
JarFile jar = new JarFile(jarPath );
Enumeration<JarEntry> entries = jar.entries(); //gives ALL entries in jar
while (entries.hasMoreElements()) {
JarEntry nextEntry = entries.nextElement();
String jarEntryName = nextEntry.getName();
this works fine with my debug local jws installation. when i try to run it online starting i get an error:
java.io.FileNotFoundException: xentis.jar (Das System kann die angegebene Datei nicht finden)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:70)
how can i load ALL icons from a jar (without knowing the filename) ?
is there a generic way to iterate over all entries of a jarfile ?
thank you
michaelLook at "Loading Images Using getResource" on this page
http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html
It should provide some ideas. -
Coldfusion having trouble while loading classes in Jar file
Hi everybody.
I have some weird problem with Coldfusion.
I try to use a Jar file, that i put in the Coldfusion classpath. It works well (i can call some classes in the Jar file using the createObject() function ), but not every classes.
For example,
<cfset ServiceObject = createObject("java", "com.google.api.ads.dfp.v201204.NetworkServiceInterface")>
<cfdump var="#ServiceObject#">
this call works well, and i can the see the dump file.
<cfset dfpServiceObject2 = createObject("java", "com.google.api.ads.dfp.v201204.NetworkServiceSoapBindingStub")>
<cfdump var="#ServiceObject2#">
This call fails, and i got a 500 error :
ROOT CAUSE:
java.lang.NoClassDefFoundError: Could not initialize class com.google.api.ads.dfp.v201204.NetworkServiceSoapBindingStub
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at coldfusion.runtime.java.JavaProxy.createObjectWithDefaultConstructor(JavaProxy.java:191)
If i check in the Jar file, i can see the NetworkServiceSoapBindingStub class. Moreover, when i do the same thing directly in a java application, it works well. Nevertheless, Coldfusion is not able to load this class. How can this be possible? Do you have any idea to help me?I have not been able to resolve this to date. Does anyone have half a clue as to what I might be doing wrong?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alison Stohrer ([email protected]):
Were you able to resolve this? I am having the same problem.<HR></BLOCKQUOTE>
null -
Errors generated while loading classes in jar file
Hello all,
I am attempting to install the xml parser using the loadjava utility. Here is my commandline call:
loadjava -user user/password -r -v xmlparserv2.jar
where user and password are the appropriate.
I made sure my CLASSPATH was not set to anything.
When I run this against Oracle 8.1.5 I get the following for quite a few of the classes in the JAR file.
resolving: oracle/xml/parser/v2/XMLExternalReader
Errors in oracle/xml/parser/v2/XMLExternalReader:
ORA-29534: referenced object XCOM.oracle/xml/parser/v2/XMLNode could not be resolved
ORA-29545: badly formed class: java.lang.NullPointerException
Some the classes compile without problems, but the majority report this error. Also it takes some time to compile and reach this conclusion.
On my first run loadjava reported 227 errors.
What am I doing wrong. Any and all feedback would be highly appreciated.
Thanks,
Bediako George
nullI have not been able to resolve this to date. Does anyone have half a clue as to what I might be doing wrong?
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alison Stohrer ([email protected]):
Were you able to resolve this? I am having the same problem.<HR></BLOCKQUOTE>
null -
Applet : How to use Images in Jar file
I want to put all images into a jar file to improve speed of loading.
But how to invoke images from Jar file?
Thanks.@Op. It's very important for a developer to know how to find information, and that skill usually comes with experience. Google is one of the best ways to find information and solutions to the most common problems.
Kaj
Maybe you are looking for
-
Message not displying in Service Desk ( solman as satellite System)
Hi all, We have implemented Solution 4.0 with service desk configured and working fine from my development system. i.e if i raise a message from development i am able to see in CRM_DNO_MONITOR But i have one more requirement in which my Solution mana
-
Condition type not appearing in Sales order
Hi All, Iam using TAXINN, Copied ZINFAC to KINFAC, I have created JIVP and JIVC for VAT and CST, I have maintained Condition Records for JIVP and JIVC. Both these condition records are not reflecting in my sales order, i.e. the records are not coming
-
My ipod shows a sign like a cross with a circle, what do that mean?
my ipod shows a sign like a cross with a circle, what do that mean?
-
LSMW Batch Input Recording for Create BOM
Dear All, I want to do LSMW for Creating BOM using Batch Input Recording, I know that i have to make 2 time Recording, first for the BOM Header and second for the BOM item For the BOM header i have done it, but for the BOM item i got some trouble wit
-
I want to make a continuous movement in turbulent displace option?
Hi, i'm trying to do a 'heat' effect, but i want to make a continuous movement of it (not a loop, but a almost linear movement) by choosing the options i only get distortions that advance in time but does not keep the same continuous movement, which