Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

how to remove dependency problem of cachechonix?  RSS feed

 
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I HAD added 2.3.1 all dependencies of cacheonix still the error of this package import com.cacheonix.examples.cache.file.cache.data.grid.TextFile doesnt resolved .
 
Bartender
Posts: 9494
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what dependencies did you add, how did you add them, and how do you know about the existence of the missing class definition?

I don't think it's a good idea to be using example classes I production code.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as i had added in lib in netbeans and the jars are cacheonix-core  2.3.1 ,cacheonix ,cacheonix-agent and cacheonix-src
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this isruntime error.
 
Stephan van Hulst
Bartender
Posts: 9494
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class you're using is from an example code snippet. It's not part of those libraries, and since its just an example, it's probably not part of any library.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what does it mean its just an example its probably not part of library.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i had added file name to test firsti will test than only i can make my code?
 
Stephan van Hulst
Bartender
Posts: 9494
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to get rid of TextFile. It's an example class. Not something for you to use.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as i had made this textfilenow i got this error
 
Stephan van Hulst
Bartender
Posts: 9494
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The exception stack trace tells you exactly what's wrong: Line 231 of ApplicationFileCacheExample attempts to create a StringBuilder with enough capacity to hold the entire file, and the exception message says that you're out of memory.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is string builder class only on line231

 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
application.file.cache can anyone explain what is this file and what it should contain.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does javafx has any cache method .
 
Stephan van Hulst
Bartender
Posts: 9494
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like I said, creating the StringBuilder causes your application to run out of memory, probably because the size of the file you're trying to put into the string builder is too large.

What are you trying to cache and why?
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to cache the webpages with image why because i need to access the epaper images everyday.
 
Stephan van Hulst
Bartender
Posts: 9494
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So first of all, the thing you're trying to cache is not actually a text file. Then why is the class named TextFile? Secondly, if it's an HTML page, it won't actually contain the images. You have to cache multiple files. Cacheonix might have a cache available that is specialized for caching web pages.
 
Niti Kapoor
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont want  to use cacheonix i need to use javafxcache method if any because my complete application is in javafx.
 
Stephan van Hulst
Bartender
Posts: 9494
184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't make sense. Java FX is a display framework. It doesn't have anything to do with file caching.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!