Larry Mills-Gahl | 27 Oct 20:29 2014
Picon

Question on ERXJDBCConnectionAnalyzer

I have a new and (so far) unexplained db connection failure and I’m hoping someone has suggestions about
where to look.

I know the usual culprit is bad connection dictionary or db-side connection configuration. To rule those
out I logged out the connection dictionary just before
targetAdaptor().assertConnectionDictionaryIsValid() in ERXJDBCConnectionAnalyzer. The output
of the connection dictionary was what I expected to see.

To check the database permissions/configuration, I inserted a raw JDBC connection and dummy query in the
static method of the framework that I use for models.  I used ERXProperties to grab all of the same values
used for the connection dictionaries (url, user, pass)

The jdbc connection gives me a connection and a result set so I’m pretty confident that I can connect from
the app.
Since I’m using the properties that make up the connection dictionary to make that jdbc connection,
I’m pretty confident that those values are right too.

Still when I get to targetAdaptor().assertConnectionDictionaryIsValid(), I get “No Connection."

I’m still digging but does anybody have any thoughts on where I might look next?

Larry Mills-Gahl
elemgee <at> gmail.com

------------------------------------------------------------------------------
_______________________________________________
(Continue reading)

Larry Mills-Gahl | 5 Oct 17:50 2014
Picon

ERXMigraton and er.migration.skipModelNames

I am removing a model from the defaultModelGroup in the principal class of my model framework because I’m
using that model for multi-tennant data.

I’ve confirmed that modelNames and skipModelNames is getting passed to ...
	protected Map<IERXMigration, ERXModelVersion>
_buildDependenciesForModelsNamed(NSArray<String> modelNames, NSArray<String> skipModelNames) 

... as expected but it keeps trying to migrate the model in skipModelNames. 

Can I use migrations if I have the models separated like this or do I need to do this in a more manual fashion?
ERXMigrator is using EOModelGroup.defaultGroup() but it appears it’s getting the default group
before the principal class is initialized.

Does anybody have any insight about what is going wrong here (and why that model just can’t wait for it’s
own migration)?

Larry Mills-Gahl
elemgee <at> gmail.com

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Wonder-disc mailing list
(Continue reading)

Catalin Simioana | 12 Jun 22:56 2014
Picon

is anybody using D2W assistant

Hi, 
Is anybody using D2W assistant? If yes, on which platform? Is there any documentation about how to make it work?
Thank you, 
Catalin

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
Ramsey Gurley | 9 Jun 23:50 2014

Six bounces

I sent a message to webobjects-dev <at> lists.apple.com and got six bounces from various senders. Is this list
as bad? If not, I’ll use this one from now on.
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
Catalin Simioana | 7 Jun 03:00 2014
Picon

problem launching D2W assistant on Windows

Hi, 

I am not able to start the D2W assitant in a D2W Web application.

Here is what I am getting in the console:

NullPointerException
  at com.webobjects._eoproject._WBInterfaceContext.initWithProject(_WBInterfaceContext.java:142)
  at com.webobjects._eoproject._WBInterfaceContext.<init>(_WBInterfaceContext.java:84)
  at com.webobjects.directtoweb.D2W.activateWebAssistantServer(D2W.java:356)
  at com.webobjects.directtoweb.D2WActions.openWebAssistantAction(D2WActions.java:26)
     ... skipped 4 stack elements
  at com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
  ... skipped 9 stack elements

and in the error page:

Re-enter
TaskManagement	Exception Description
Application:	 TaskManagement
Error:	 java.lang.NullPointerException
Reason:	
Stack trace:	
File	Line#	Method	Package
_WBInterfaceContext.java	142	initWithProject	com.webobjects._eoproject
_WBInterfaceContext.java	84	<init>	com.webobjects._eoproject
D2W.java	356	activateWebAssistantServer	com.webobjects.directtoweb
D2WActions.java	26	openWebAssistantAction	com.webobjects.directtoweb
NativeMethodAccessorImpl.java	NA	invoke0	sun.reflect
NativeMethodAccessorImpl.java	NA	invoke	sun.reflect
(Continue reading)

Giancarlo Dessena | 12 May 17:52 2014

AjaxTree usage

Hello everybody :)

I’m trying to figure out how to use the AjaxTree Component.
Can someone give me an example? I already looked at the one in the wonder repository but I still not quite get
how it is supposed to work.

Greetings Carlo
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
Anil Bajaj | 10 May 00:19 2014

_rewriteURL with query parameter

Hi,

I've setup a mod_rewrite rule to rewrite a simple URL to a WebObjects direct action, like

mydomain.com/<username>		to 	mydomain.com/cgi-bin/WebObjects/MyApp.woa/wa/profile?uid=<username>

This works fine except the browser displays the long URL, instead of the short URL, as expected.

Is there anyway, using either ERXApplication._rewriteURL or ERXApplication.replaceApplicationPath
properties, to display the short URL that includes the username param that was originally passed into the
direct action query and display something like mydomain.com/<username>.

All the documentation/examples I've seen are of the type where replaced URL is always static i.e the App name.

Thanks,

Anil Bajaj
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
René Bock | 5 May 14:22 2014
Picon

Isn't ERXActiveImage obsolete?

Hi,


we have an issue that for our application that WOActive image generates no alt tag.

The the culprit is ERXActiveImage, that generates a 'title' attribute instead of in 'alt' attribute.  


To solve this issue im our application,  I've overwritten in Application the method installPatches:

public void installPatches() { super.installPatches(); ERXPatcher.setClassForName(ActiveImage.class, "WOActiveImage"); }


If there are no objections, I would submit a bug report, suggesting to remove the class ERXActiveImage completely.






Mit freundlichem Gruß,

René Bock
Software Engineering

--
salient doremus salient GmbH Kontorhaus -  Lindleystraße 12 60314 Frankfurt Main

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Wonder-disc mailing list
Wonder-disc <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wonder-disc
Matt Ness | 2 May 09:51 2014
Picon

Re: Slow with direct action on mavericks 10.9.2

Hi again,

1) I would still recommend it - at least some multiple of your block size, and at the very least a power of 2 value.

2) terminal: > stat -f "%k" [some file]

eg.

> cd
> stat -f "%k" .bash_history

for me the result would mostly be :
4096

I believe that's the way to do it ;)

3) Just out of interest, is there a defined reason to use octet-string? Looks like you are presenting a
Tagged Image as a download. I've not seen octet-string used for tif(f)s before, I've always used octet-stream.

Regards,

Matt
--
http://logicsquad.net

On 02/05/2014, at 4:24 PM, Jürgen Rohrbach <juergen.rohrbach <at> xs-solutions.de> wrote:

> Hello Matt,
> 
> thanks for your response.
> 
> 1) changing the buffer size to smaller values does not solve the problem.
> 
> 2) it is a new mac pro with a ssd hd. where can i get/set the system block size?
> 
> 3) no, same speed.
> 
> 
>> Hi Jürgen,
>> 
>> What happens when you set your buffer size to a smaller value, 4096, 8192, or at least a power of 2 value?
>> 
>> What is the file system block size for the system you are serving from?
>> 
>> Is there a speed difference when you use "application/octet-stream"?
>> 
>> 
>> Regards,
>> 
>> Matt
>> --
>> http://logicsquad.net
>> 
>> 
>> 
>> On 29/04/2014, at 9:59 PM, Jürgen Rohrbach <juergen.rohrbach <at> xs-solutions.de> wrote:
>> 
>>> hello,
>>> 
>>> i have a empty erxapplication with only on direct action.
>>> the direct action streams a large file.
>>> the problem is that i only get about 120kB/s download speed.
>>> does anybody have a solutions for this problem?
>>> this problem does not exits perior to mavericks!
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 	public WOActionResults downloadAction() throws Exception {
>>> 		WOResponse aResponse = WOApplication.application
>>> ().createResponseInContext(null);
>>> 		
>>> 		// contentTyp
>>> 		String contentType = "application/octet-string";
>>> 		String filepath = "large.tif";
>>> 		
>>> 		aResponse.setHeader(contentType, "Content-type");
>>> 		File f = new File(filepath);
>>> 		int bufferSize = 10000000;
>>> 		aResponse.setContentStream(new FileInputStream(f), bufferSize,
>>> (long) f.length());
>>> 		String fileName = NSPathUtilities.lastPathComponent( filepath );
>>> 		aResponse.setHeader("inline; filename="+fileName, "Content-
>>> disposition");
>>> 		return aResponse;
>>> 	}
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
>>> unparalleled scalability from the best Selenium testing platform available.
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Wonder-disc mailing list
>>> Wonder-disc <at> lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>> 
> 

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
Sankar R | 2 May 08:42 2014
Picon

JDK 9 support for WebObjects

Hi All,

  https://blogs.oracle.com/java-platform-group/entry/closing_the_closed_apis

  I am using WebObject 4.3 and when I execute Jdeps i am seeing few WebObjects modules uses Java closed APIs. Is there any plan to release new version to support JDK 9?

 

Snapshot of the result :

ERExtensions.jar -> javawebobjects.jar
   er.extensions.components.ERXGracefulShutdown (ERExtensions.jar)
      -> sun.misc.Signal                                    JDK internal API (rt.jar)
      -> sun.misc.SignalHandler                             JDK internal API (rt.jar)
   er.extensions.eof.ERXEC (ERExtensions.jar)
      -> sun.misc.SignalHandler                             JDK internal API (rt.jar)
   er.extensions.eof.ERXEC$DumpLocksSignalHandler (ERExtensions.jar)
      -> sun.misc.Signal                                    JDK internal API (rt.jar)
      -> sun.misc.SignalHandler                             JDK internal API (rt.jar)
   er.extensions.eof.ERXObjectStoreCoordinator$DumpLocksSignalHandler (ERExtensions.jar)
      -> sun.misc.Signal                                    JDK internal API (rt.jar)
      -> sun.misc.SignalHandler                             JDK internal API (rt.jar)
   er.extensions.foundation.ERXSignalHandler (ERExtensions.jar)
      -> sun.misc.Signal                                    JDK internal API (rt.jar)
      -> sun.misc.SignalHandler                             JDK internal API (rt.jar)
   er.extensions.jdbc.ERXJDBCUtilities (ERExtensions.jar)
      -> com.sun.rowset.CachedRowSetImpl                    JDK internal API (rt.jar)
   er.extensions.jdbc.ERXJDBCUtilities$3 (ERExtensions.jar)
      -> com.sun.rowset.CachedRowSetImpl                    JDK internal API (rt.jar)

 

Thanks

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Wonder-disc mailing list
Wonder-disc <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wonder-disc
Jürgen Rohrbach | 29 Apr 13:59 2014
Picon

Slow with direct action on mavericks 10.9.2

hello,

i have a empty erxapplication with only on direct action.
the direct action streams a large file.
the problem is that i only get about 120kB/s download speed.
does anybody have a solutions for this problem?
this problem does not exits perior to mavericks!

	public WOActionResults downloadAction() throws Exception {
		WOResponse aResponse = WOApplication.application 
().createResponseInContext(null);
		
		// contentTyp
		String contentType = "application/octet-string";
		String filepath = "large.tif";
		
		aResponse.setHeader(contentType, "Content-type");
		File f = new File(filepath);
		int bufferSize = 10000000;
		aResponse.setContentStream(new FileInputStream(f), bufferSize,  
(long) f.length());
		String fileName = NSPathUtilities.lastPathComponent( filepath );
		aResponse.setHeader("inline; filename="+fileName, "Content- 
disposition");
		return aResponse;
	}

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs

Gmane